mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 09:05:07 +00:00
LibDraw: Add Button and ButtonText system theme colors
These are now separate from the Window and WindowText colors.
This commit is contained in:
parent
9171aef724
commit
df3a2dba43
21 changed files with 57 additions and 39 deletions
|
@ -25,7 +25,7 @@ void WSButton::paint(Painter& painter)
|
|||
x_location.move_by(-(m_bitmap->width() / 2), -(m_bitmap->height() / 2));
|
||||
if (m_pressed)
|
||||
x_location.move_by(1, 1);
|
||||
painter.draw_bitmap(x_location, *m_bitmap, SystemColor::Text);
|
||||
painter.draw_bitmap(x_location, *m_bitmap, SystemColor::ButtonText);
|
||||
}
|
||||
|
||||
void WSButton::on_mouse_event(const WSMouseEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue