From 3652ab8b2a93b3ab79bd6ded0f4fb9ab80f49400 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Jul 2021 20:39:25 +0200 Subject: [PATCH] LibGUI: Tweak GUI::GroupBox title text position --- Userland/Libraries/LibGUI/GroupBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/GroupBox.cpp b/Userland/Libraries/LibGUI/GroupBox.cpp index fc0ce48999..17cfd8842c 100644 --- a/Userland/Libraries/LibGUI/GroupBox.cpp +++ b/Userland/Libraries/LibGUI/GroupBox.cpp @@ -36,7 +36,7 @@ void GroupBox::paint_event(PaintEvent& event) Gfx::StylePainter::paint_frame(painter, frame_rect, palette(), Gfx::FrameShape::Box, Gfx::FrameShadow::Sunken, 2); if (!m_title.is_empty()) { - Gfx::IntRect text_rect { 4, 0, font().width(m_title) + 6, font().glyph_height() }; + Gfx::IntRect text_rect { 6, 1, 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()); }