mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
StylePainter: Fix underdraw in new button style.
This commit is contained in:
parent
c77d369b75
commit
2e0f4da1f7
Notes:
sideshowbarker
2024-07-19 14:54:31 +09:00
Author: https://github.com/awesomekling
Commit: 2e0f4da1f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue