mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
HackStudio: Fill the selection rubber-band with some nice alpha color
Make use of the new alpha support in Painter::fill_rect() to fill the rubber band with some see-through color. :^)
This commit is contained in:
@@ -53,8 +53,10 @@ void FormWidget::second_paint_event(GPaintEvent& event)
|
||||
});
|
||||
}
|
||||
|
||||
if (m_rubber_banding)
|
||||
painter.draw_rect(rubber_band_rect(), Color::MidMagenta);
|
||||
if (m_rubber_banding) {
|
||||
painter.fill_rect(rubber_band_rect(), Color(244, 202, 158, 60));
|
||||
painter.draw_rect(rubber_band_rect(), Color(110, 34, 9));
|
||||
}
|
||||
}
|
||||
|
||||
void FormWidget::mousedown_event(GMouseEvent& event)
|
||||
|
||||
Reference in New Issue
Block a user