From 56c73f03cecb8e68e783e2c8ab6663089028873c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 23 Apr 2020 13:53:17 +0200 Subject: [PATCH] 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. --- Libraries/LibGUI/StatusBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGUI/StatusBar.cpp b/Libraries/LibGUI/StatusBar.cpp index 0e05aef4b6..d672fc322f 100644 --- a/Libraries/LibGUI/StatusBar.cpp +++ b/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()); } }