summaryrefslogtreecommitdiff
path: root/LibGUI/GToolBar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-10 22:58:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-10 22:58:52 +0200
commitdb5341e11db61bccd7bf1fc4170236a6d6ee87b8 (patch)
treecab328fea743186ab5c795a6a4d5833321544b4f /LibGUI/GToolBar.cpp
parentd8ae6c31cee23d2c38b0da7649eca5feb5c0af4f (diff)
downloadserenity-db5341e11db61bccd7bf1fc4170236a6d6ee87b8.zip
GToolBar: Make the framed appearance optional.
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);
}