LibGUI: Add a ThemeChange event

This commit is contained in:
Oriko 2020-03-16 13:36:21 +02:00 committed by Andreas Kling
commit 2a32330257
Notes: sideshowbarker 2024-07-19 08:17:06 +09:00
8 changed files with 53 additions and 1 deletions

View file

@ -73,6 +73,9 @@ void WindowServerConnection::handle(const Messages::WindowClient::UpdateSystemTh
{
set_system_theme_from_shbuf_id(message.system_theme_buffer_id());
Window::update_all_windows({});
Window::for_each_window({}, [](auto& window) {
Core::EventLoop::current().post_event(window, make<ThemeChangeEvent>());
});
}
void WindowServerConnection::handle(const Messages::WindowClient::Paint& message)