1
Fork 0
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:
Andreas Kling 2019-04-11 14:27:31 +02:00
parent f0501a0102
commit 93b76628a5
5 changed files with 25 additions and 5 deletions

View file

@ -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());