Browse Source

LibGUI: Get rid of the awkward horizontal line in StatusBar

Just fill StatusBar with button color instead of trying to share paint
code with ToolBar.
Andreas Kling 5 years ago
parent
commit
56c73f03ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibGUI/StatusBar.cpp

+ 1 - 1
Libraries/LibGUI/StatusBar.cpp

@@ -89,7 +89,7 @@ void StatusBar::paint_event(PaintEvent& event)
 {
     Painter painter(*this);
     painter.add_clip_rect(event.rect());
-    Gfx::StylePainter::paint_surface(painter, rect(), palette(), !spans_entire_window_horizontally());
+    painter.fill_rect(rect(), palette().button());
 }
 
 }