1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 10:55:07 +00:00

Themes: Support rubberband selection theming

This commit is contained in:
0xtechnobabble 2020-01-06 01:47:55 +02:00 committed by Andreas Kling
parent 56a2c21e0c
commit 123dcada05
9 changed files with 22 additions and 7 deletions

View file

@ -260,8 +260,8 @@ void GItemView::second_paint_event(GPaintEvent& event)
painter.add_clip_rect(event.rect());
auto rubber_band_rect = Rect::from_two_points(m_rubber_band_origin, m_rubber_band_current);
painter.fill_rect(rubber_band_rect, Color(244, 202, 158, 60));
painter.draw_rect(rubber_band_rect, Color(110, 34, 9));
painter.fill_rect(rubber_band_rect, parent_widget()->palette().rubber_band_fill());
painter.draw_rect(rubber_band_rect, parent_widget()->palette().rubber_band_border());
}
void GItemView::paint_event(GPaintEvent& event)