1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

WindowServer: Change the desktop background colour on theme change

This commit is contained in:
Andres Vieira 2020-04-28 16:56:23 +02:00 committed by Andreas Kling
parent 30fe1b5d58
commit 8a417c311f

View file

@ -1284,6 +1284,7 @@ bool WindowManager::update_theme(String theme_path, String theme_name)
ASSERT(new_theme);
Gfx::set_system_theme(*new_theme);
m_palette = Gfx::PaletteImpl::create_with_shared_buffer(*new_theme);
Compositor::the().set_backgound_color(palette().desktop_background().to_string());
HashTable<ClientConnection*> notified_clients;
for_each_window([&](Window& window) {
if (window.client()) {