mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
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:
parent
6902adbb84
commit
f7184e967e
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue