1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGUI: Fix small painting glitch in GScrollBar buttons.

This commit is contained in:
Andreas Kling 2019-03-09 21:51:36 +01:00
parent 272a41d02d
commit 76094128e7

View file

@ -39,7 +39,7 @@ void GStyle::paint_button(Painter& painter, const Rect& rect, GButtonStyle butto
painter.draw_line({ 1, rect.height() - 2 }, { rect.width() - 2, rect.height() - 2 }, highlight_color);
} 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({ 1, 1, rect.width() - 2, rect.height() - 2 }, button_color);
// White highlight
painter.draw_line({ 1, 1 }, { rect.width() - 2, 1 }, highlight_color);