mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:28:11 +00:00
LibGUI: Draw GScrollBar buttons with a disabled look when appropriate.
This commit is contained in:
parent
1e8e4e9af2
commit
f7831f8c76
1 changed files with 2 additions and 2 deletions
|
@ -129,10 +129,10 @@ void GScrollBar::paint_event(GPaintEvent&)
|
|||
painter.fill_rect(rect(), Color(164, 164, 164));
|
||||
|
||||
GStyle::the().paint_button(painter, up_button_rect(), false);
|
||||
painter.draw_bitmap(up_button_rect().location().translated(3, 3), *s_up_arrow_bitmap, Color::Black);
|
||||
painter.draw_bitmap(up_button_rect().location().translated(3, 3), *s_up_arrow_bitmap, has_scrubber() ? Color::Black : Color::MidGray);
|
||||
|
||||
GStyle::the().paint_button(painter, down_button_rect(), false);
|
||||
painter.draw_bitmap(down_button_rect().location().translated(3, 3), *s_down_arrow_bitmap, Color::Black);
|
||||
painter.draw_bitmap(down_button_rect().location().translated(3, 3), *s_down_arrow_bitmap, has_scrubber() ? Color::Black : Color::MidGray);
|
||||
|
||||
if (has_scrubber())
|
||||
GStyle::the().paint_button(painter, scrubber_rect(), m_scrubbing);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue