mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 18:00:40 +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
Notes:
sideshowbarker
2024-07-18 20:46:04 +09:00
Author: https://github.com/d1823 Commit: https://github.com/SerenityOS/serenity/commit/f7184e967ed Pull-request: https://github.com/SerenityOS/serenity/pull/6140
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…
Reference in a new issue