mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +00:00
LibGUI: Draw GScrollBar buttons with a disabled look when appropriate.
This commit is contained in:
parent
1e8e4e9af2
commit
f7831f8c76
Notes:
sideshowbarker
2024-07-19 15:48:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f7831f8c765
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
Reference in a new issue