mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibGfx: Make top highlight of classic buttons fit to the top left corner
This commit is contained in:
parent
1d343116a9
commit
dfb23babbb
Notes:
sideshowbarker
2024-07-18 19:31:57 +09:00
Author: https://github.com/Lubrsi
Commit: dfb23babbb
Pull-request: https://github.com/SerenityOS/serenity/pull/6393
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ static void paint_button_new(Painter& painter, const IntRect& a_rect, const Pale
|
|||
painter.fill_rect({ 0, 0, rect.width(), rect.height() }, button_color);
|
||||
|
||||
// Top highlight
|
||||
painter.draw_line({ 1, 1 }, { rect.width() - 3, 1 }, highlight_color);
|
||||
painter.draw_line({ 1, 1 }, { 1, rect.height() - 3 }, highlight_color);
|
||||
painter.draw_line({ 0, 0 }, { rect.width() - 2, 0 }, highlight_color);
|
||||
painter.draw_line({ 0, 0 }, { 0, rect.height() - 2 }, highlight_color);
|
||||
|
||||
// Outer shadow
|
||||
painter.draw_line({ 0, rect.height() - 1 }, { rect.width() - 1, rect.height() - 1 }, shadow_color2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue