mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
WindowServer, LibGUI: RefreshSystemTheme implementation
Adds a mechanism through which windowing clients can re-request an UpdateSystemTheme message. This is currently used in SystemMenu's ShutdownDialog to refresh it's theme when the dialog is instantiated.
This commit is contained in:
parent
fdc9b3c5a0
commit
fcf50af53d
5 changed files with 15 additions and 0 deletions
|
@ -845,6 +845,11 @@ void Window::schedule_relayout()
|
|||
});
|
||||
}
|
||||
|
||||
void Window::refresh_system_theme()
|
||||
{
|
||||
WindowServerConnection::the().post_message(Messages::WindowServer::RefreshSystemTheme());
|
||||
}
|
||||
|
||||
void Window::for_each_window(Badge<WindowServerConnection>, Function<void(Window&)> callback)
|
||||
{
|
||||
for (auto& e : *reified_windows) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue