mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Fix more underdraw bugs in Button due to new Rect semantics.
This commit is contained in:
parent
0570bbb6cc
commit
ecb7e16202
3 changed files with 12 additions and 6 deletions
|
@ -38,7 +38,7 @@ void Button::paintEvent(PaintEvent&)
|
|||
|
||||
if (m_beingPressed) {
|
||||
// Base
|
||||
painter.fill_rect({ 1, 1, width() - 1, height() - 1 }, buttonColor);
|
||||
painter.fill_rect({ 1, 1, width() - 2, height() - 2 }, buttonColor);
|
||||
|
||||
// Sunken shadow
|
||||
painter.draw_line({ 1, 1 }, { width() - 2, 1 }, shadowColor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue