diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
commit | 20cfd2a6bff8c469970651dd73ffee60ab0e5176 (patch) | |
tree | 4f92b38ae97fb0add184ccae97d679f484ef1a49 /Libraries/LibGUI/GGroupBox.cpp | |
parent | c39d44fc2ef0d2e5435524c5b96b5a367df2438b (diff) | |
download | serenity-20cfd2a6bff8c469970651dd73ffee60ab0e5176.zip |
LibGfx: Unpublish Gfx::Rect from global namespace
Diffstat (limited to 'Libraries/LibGUI/GGroupBox.cpp')
-rw-r--r-- | Libraries/LibGUI/GGroupBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GGroupBox.cpp b/Libraries/LibGUI/GGroupBox.cpp index e5aeff6584..817593d974 100644 --- a/Libraries/LibGUI/GGroupBox.cpp +++ b/Libraries/LibGUI/GGroupBox.cpp @@ -51,13 +51,13 @@ void GroupBox::paint_event(PaintEvent& event) Painter painter(*this); painter.add_clip_rect(event.rect()); - Rect frame_rect { + Gfx::Rect frame_rect { 0, font().glyph_height() / 2, width(), height() - font().glyph_height() / 2 }; Gfx::StylePainter::paint_frame(painter, frame_rect, palette(), Gfx::FrameShape::Box, Gfx::FrameShadow::Sunken, 2); - Rect text_rect { 4, 0, font().width(m_title) + 6, font().glyph_height() }; + Gfx::Rect text_rect { 4, 0, font().width(m_title) + 6, font().glyph_height() }; painter.fill_rect(text_rect, palette().button()); painter.draw_text(text_rect, m_title, Gfx::TextAlignment::Center, palette().button_text()); } |