From f7831f8c765f9f898a8113a8b276b25cbcfde0a2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 10 Feb 2019 07:37:02 +0100 Subject: LibGUI: Draw GScrollBar buttons with a disabled look when appropriate. --- LibGUI/GScrollBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LibGUI/GScrollBar.cpp') 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); -- cgit v1.2.3