1
Fork 0
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:
Andreas Kling 2019-01-12 17:17:51 +01:00
parent 0570bbb6cc
commit ecb7e16202
3 changed files with 12 additions and 6 deletions

View file

@ -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);