mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:25:06 +00:00
LibGUI: Add a ThemeChange event
This commit is contained in:
parent
2b162ef794
commit
2a32330257
8 changed files with 53 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue