mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
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. :^)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user