WindowServer: Make applet area use the same color role as the taskbar

So far the taskbar has been using the "Button" as a color role, despite
rest of the applet area using "Window" color role. Although it all
looked alright on most system themes, it broke for the Nord theme.
This commit is contained in:
Dawid Wolosowicz 2021-04-05 13:48:21 +02:00 committed by Andreas Kling
parent 6902adbb84
commit f7184e967e
Notes: sideshowbarker 2024-07-18 20:46:04 +09:00

View file

@ -168,7 +168,7 @@ void AppletManager::repaint()
if (!rect.is_empty()) {
Gfx::Painter painter(*m_window->backing_store());
painter.fill_rect(rect, WindowManager::the().palette().window());
painter.fill_rect(rect, WindowManager::the().palette().button());
}
}
@ -203,7 +203,7 @@ void AppletManager::draw_applet(const Window& applet)
Gfx::Painter painter(*m_window->backing_store());
Gfx::PainterStateSaver saver(painter);
painter.add_clip_rect(applet.rect_in_applet_area());
painter.fill_rect(applet.rect_in_applet_area(), WindowManager::the().palette().window());
painter.fill_rect(applet.rect_in_applet_area(), WindowManager::the().palette().button());
painter.blit(applet.rect_in_applet_area().location(), *applet.backing_store(), applet.backing_store()->rect());
}