mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibGUI: Implement content_margins for GroupBox
This commit is contained in:
@@ -24,6 +24,16 @@ GroupBox::~GroupBox()
|
||||
{
|
||||
}
|
||||
|
||||
Margins GroupBox::content_margins() const
|
||||
{
|
||||
return {
|
||||
(!m_title.is_empty() ? font().glyph_height() + 1 /*room for the focus rect*/ : 2),
|
||||
2,
|
||||
2,
|
||||
2
|
||||
};
|
||||
}
|
||||
|
||||
void GroupBox::paint_event(PaintEvent& event)
|
||||
{
|
||||
Painter painter(*this);
|
||||
|
||||
Reference in New Issue
Block a user