mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 06:55:07 +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:
parent
b6c5bd3d28
commit
cb296ffede
7 changed files with 110 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue