mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
GGroupBox: Improve appearance with new FrameShape::Box style.
This commit is contained in:
parent
f0501a0102
commit
93b76628a5
5 changed files with 25 additions and 5 deletions
|
@ -23,7 +23,7 @@ void GGroupBox::paint_event(GPaintEvent& event)
|
|||
0, font().glyph_height() / 2,
|
||||
width(), height() - font().glyph_height() / 2
|
||||
};
|
||||
StylePainter::paint_frame(painter, frame_rect, FrameShape::Panel, FrameShadow::Sunken, 1);
|
||||
StylePainter::paint_frame(painter, frame_rect, FrameShape::Box, FrameShadow::Sunken, 2);
|
||||
|
||||
Rect text_rect { 4, 0, font().width(m_name) + 6, font().glyph_height() };
|
||||
painter.fill_rect(text_rect, background_color());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue