瀏覽代碼

LibGUI: Draw GScrollBar buttons with a disabled look when appropriate.

Andreas Kling 6 年之前
父節點
當前提交
f7831f8c76
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      LibGUI/GScrollBar.cpp

+ 2 - 2
LibGUI/GScrollBar.cpp

@@ -129,10 +129,10 @@ void GScrollBar::paint_event(GPaintEvent&)
     painter.fill_rect(rect(), Color(164, 164, 164));
     painter.fill_rect(rect(), Color(164, 164, 164));
 
 
     GStyle::the().paint_button(painter, up_button_rect(), false);
     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);
     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())
     if (has_scrubber())
         GStyle::the().paint_button(painter, scrubber_rect(), m_scrubbing);
         GStyle::the().paint_button(painter, scrubber_rect(), m_scrubbing);