diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-10 07:37:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-10 07:37:02 +0100 |
commit | f7831f8c765f9f898a8113a8b276b25cbcfde0a2 (patch) | |
tree | 1918ba3a31e413ce70a2c51401937805e225be84 /LibGUI/GScrollBar.cpp | |
parent | 1e8e4e9af27a63c1add949213f40dd5041d507cf (diff) | |
download | serenity-f7831f8c765f9f898a8113a8b276b25cbcfde0a2.zip |
LibGUI: Draw GScrollBar buttons with a disabled look when appropriate.
Diffstat (limited to 'LibGUI/GScrollBar.cpp')
-rw-r--r-- | LibGUI/GScrollBar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGUI/GScrollBar.cpp b/LibGUI/GScrollBar.cpp index 76691f0df9..281b9a86df 100644 --- a/LibGUI/GScrollBar.cpp +++ b/LibGUI/GScrollBar.cpp @@ -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); |