summaryrefslogtreecommitdiff
path: root/LibGUI/GToolBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GToolBar.cpp')
-rw-r--r--LibGUI/GToolBar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/LibGUI/GToolBar.cpp b/LibGUI/GToolBar.cpp
index 18253d7233..00a18e45e4 100644
--- a/LibGUI/GToolBar.cpp
+++ b/LibGUI/GToolBar.cpp
@@ -81,5 +81,9 @@ void GToolBar::paint_event(GPaintEvent& event)
{
GPainter painter(*this);
painter.add_clip_rect(event.rect());
- StylePainter::paint_surface(painter, rect(), x() != 0, y() != 0);
+
+ if (m_has_frame)
+ StylePainter::paint_surface(painter, rect(), x() != 0, y() != 0);
+ else
+ painter.fill_rect(event.rect(), Color::LightGray);
}