diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 02:57:33 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 02:57:33 +0100 |
commit | 2e0f4da1f7439baf0acecbe8474e761ecbe857d5 (patch) | |
tree | afe8d6a79d85fa0d07c92387fc2b8334ce5a796e /SharedGraphics | |
parent | c77d369b75dd8e222efe0475a511066cf6211b02 (diff) | |
download | serenity-2e0f4da1f7439baf0acecbe8474e761ecbe857d5.zip |
StylePainter: Fix underdraw in new button style.
Diffstat (limited to 'SharedGraphics')
-rw-r--r-- | SharedGraphics/StylePainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SharedGraphics/StylePainter.cpp b/SharedGraphics/StylePainter.cpp index 5d1cf6e1cc..79cce24bcf 100644 --- a/SharedGraphics/StylePainter.cpp +++ b/SharedGraphics/StylePainter.cpp @@ -35,7 +35,7 @@ static void paint_button_new(Painter& painter, const Rect& rect, bool pressed) painter.draw_line({ 1, 2 }, {1, rect.height() - 2 }, shadow_color1); } else { // Base - painter.fill_rect({ 2, 2, rect.width() - 4, rect.height() - 4 }, button_color); + painter.fill_rect({ 1, 1, rect.width() - 3, rect.height() - 3 }, button_color); // Outer highlight painter.draw_line({ 0, 0 }, { rect.width() - 2, 0 }, highlight_color2); |