From dfb23babbb131e22fe7035a30bce4e933738a664 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 17 Apr 2021 02:25:04 +0100 Subject: [PATCH] LibGfx: Make top highlight of classic buttons fit to the top left corner --- Userland/Libraries/LibGfx/ClassicStylePainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp index 1806e5f959..aa3167d296 100644 --- a/Userland/Libraries/LibGfx/ClassicStylePainter.cpp +++ b/Userland/Libraries/LibGfx/ClassicStylePainter.cpp @@ -147,8 +147,8 @@ static void paint_button_new(Painter& painter, const IntRect& a_rect, const Pale painter.fill_rect({ 0, 0, rect.width(), rect.height() }, button_color); // Top highlight - painter.draw_line({ 1, 1 }, { rect.width() - 3, 1 }, highlight_color); - painter.draw_line({ 1, 1 }, { 1, rect.height() - 3 }, highlight_color); + painter.draw_line({ 0, 0 }, { rect.width() - 2, 0 }, highlight_color); + painter.draw_line({ 0, 0 }, { 0, rect.height() - 2 }, highlight_color); // Outer shadow painter.draw_line({ 0, rect.height() - 1 }, { rect.width() - 1, rect.height() - 1 }, shadow_color2);