From f7184e967ed3ee1defe245876136f9ea84650336 Mon Sep 17 00:00:00 2001 From: Dawid Wolosowicz Date: Mon, 5 Apr 2021 13:48:21 +0200 Subject: [PATCH] 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. --- Userland/Services/WindowServer/AppletManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Services/WindowServer/AppletManager.cpp b/Userland/Services/WindowServer/AppletManager.cpp index 6fef36963e..f70c79021b 100644 --- a/Userland/Services/WindowServer/AppletManager.cpp +++ b/Userland/Services/WindowServer/AppletManager.cpp @@ -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()); }