Prechádzať zdrojové kódy

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.
Dawid Wolosowicz 4 rokov pred
rodič
commit
f7184e967e

+ 2 - 2
Userland/Services/WindowServer/AppletManager.cpp

@@ -168,7 +168,7 @@ void AppletManager::repaint()
 
 
     if (!rect.is_empty()) {
     if (!rect.is_empty()) {
         Gfx::Painter painter(*m_window->backing_store());
         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::Painter painter(*m_window->backing_store());
     Gfx::PainterStateSaver saver(painter);
     Gfx::PainterStateSaver saver(painter);
     painter.add_clip_rect(applet.rect_in_applet_area());
     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());
     painter.blit(applet.rect_in_applet_area().location(), *applet.backing_store(), applet.backing_store()->rect());
 }
 }