diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-10 14:24:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-10 14:24:20 +0200 |
commit | fce0cf18e33078af6adbd1a8b827df579270e19b (patch) | |
tree | f5ed6d868cffbce294e416468f2ab7888b6b1645 /Libraries/LibGfx | |
parent | 5af4ad097ff95053ffd1e2c16cc838712b285fbb (diff) | |
download | serenity-fce0cf18e33078af6adbd1a8b827df579270e19b.zip |
LibGfx: Make buttons slightly chunkier on the top/left side
Diffstat (limited to 'Libraries/LibGfx')
-rw-r--r-- | Libraries/LibGfx/StylePainter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGfx/StylePainter.cpp b/Libraries/LibGfx/StylePainter.cpp index f8de190a19..3408594d8f 100644 --- a/Libraries/LibGfx/StylePainter.cpp +++ b/Libraries/LibGfx/StylePainter.cpp @@ -101,11 +101,11 @@ static void paint_button_new(Painter& painter, const Rect& rect, const Palette& painter.draw_line({ 1, 2 }, { 1, rect.height() - 2 }, shadow_color1); } else { // Base - painter.fill_rect({ 1, 1, rect.width() - 3, rect.height() - 3 }, button_color); + painter.fill_rect({ 0, 0, rect.width(), rect.height() }, button_color); // Outer highlight - painter.draw_line({ 0, 0 }, { rect.width() - 2, 0 }, highlight_color2); - painter.draw_line({ 0, 1 }, { 0, rect.height() - 2 }, highlight_color2); + painter.draw_line({ 1, 1 }, { rect.width() - 3, 1 }, highlight_color2); + painter.draw_line({ 1, 1 }, { 1, rect.height() - 3 }, highlight_color2); // Outer shadow painter.draw_line({ 0, rect.height() - 1 }, { rect.width() - 1, rect.height() - 1 }, shadow_color2); |