summaryrefslogtreecommitdiff
path: root/LibGUI/GStatusBar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-28 15:30:29 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-28 15:30:29 +0100
commitcb296ffede47d04c80870d1ccbba41efc03e0a8d (patch)
treeb1780e8dfff685d8f0a788a94e2c780437938fa9 /LibGUI/GStatusBar.cpp
parentb6c5bd3d28436f0e73e7e507750bb0460d2bea2b (diff)
downloadserenity-cb296ffede47d04c80870d1ccbba41efc03e0a8d.zip
LibGUI: Add a GFrame class that can be inherited by framey widgets.
This will gather the code for painting sunken/raised frames etc in a single place and make it easier add a bit of pleasant shading to UI's. :^)
Diffstat (limited to 'LibGUI/GStatusBar.cpp')
-rw-r--r--LibGUI/GStatusBar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/LibGUI/GStatusBar.cpp b/LibGUI/GStatusBar.cpp
index 982e2d565b..a1d6d7e1bd 100644
--- a/LibGUI/GStatusBar.cpp
+++ b/LibGUI/GStatusBar.cpp
@@ -12,6 +12,9 @@ GStatusBar::GStatusBar(GWidget* parent)
set_layout(make<GBoxLayout>(Orientation::Horizontal));
layout()->set_margins({ 4, 2, 4, 2 });
m_label = new GLabel(this);
+ m_label->set_frame_shadow(GFrame::Shadow::Sunken);
+ m_label->set_frame_shape(GFrame::Shape::Panel);
+ m_label->set_frame_thickness(1);
m_label->set_text_alignment(TextAlignment::CenterLeft);
}