diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-26 11:14:07 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-26 11:14:07 +0100 |
commit | 9444ed0117b600cd34a533420264a2f72aba21ec (patch) | |
tree | 703a02d8a0768236275d93d2774412b4c0cf9272 | |
parent | 88e77fe3af871ca9515b7c2c9dd414d5497801ce (diff) | |
download | serenity-9444ed0117b600cd34a533420264a2f72aba21ec.zip |
LibGUI: Remove gradient from the default button style.
Buttons actually look nicer without the gradient. :^)
-rw-r--r-- | LibGUI/GStyle.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/LibGUI/GStyle.cpp b/LibGUI/GStyle.cpp index c9709abf10..e0fac12362 100644 --- a/LibGUI/GStyle.cpp +++ b/LibGUI/GStyle.cpp @@ -39,7 +39,6 @@ void GStyle::paint_button(Painter& painter, const Rect& rect, GButtonStyle butto } else if (button_style == GButtonStyle::Normal || (button_style == GButtonStyle::CoolBar && hovered)) { // Base painter.fill_rect({ 3, 3, rect.width() - 5, rect.height() - 5 }, button_color); - painter.fill_rect_with_gradient({ 2, 2, rect.width() - 3, rect.height() - 3 }, button_color, Color::White); // White highlight painter.draw_line({ 1, 1 }, { rect.width() - 2, 1 }, highlight_color); |