1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:55:08 +00:00

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.
This commit is contained in:
Andreas Kling 2020-04-23 13:53:17 +02:00
parent 74cc0560e8
commit 56c73f03ce

View file

@ -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());
}
}