|
@@ -75,6 +75,9 @@ void CheckBox::paint_event(PaintEvent& event)
|
|
if (fill_with_background_color())
|
|
if (fill_with_background_color())
|
|
painter.fill_rect(rect(), palette().window());
|
|
painter.fill_rect(rect(), palette().window());
|
|
|
|
|
|
|
|
+ if (is_enabled() && is_hovered())
|
|
|
|
+ painter.fill_rect(rect(), palette().hover_highlight());
|
|
|
|
+
|
|
Gfx::Rect box_rect {
|
|
Gfx::Rect box_rect {
|
|
0, height() / 2 - s_box_height / 2 - 1,
|
|
0, height() / 2 - s_box_height / 2 - 1,
|
|
s_box_width, s_box_height
|
|
s_box_width, s_box_height
|