File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ void CheckBox::paint_event(PaintEvent& event)
75
75
if (fill_with_background_color ())
76
76
painter.fill_rect (rect (), palette ().window ());
77
77
78
+ if (is_enabled () && is_hovered ())
79
+ painter.fill_rect (rect (), palette ().hover_highlight ());
80
+
78
81
Gfx::Rect box_rect {
79
82
0 , height () / 2 - s_box_height / 2 - 1 ,
80
83
s_box_width, s_box_height
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ void RadioButton::paint_event(PaintEvent& event)
52
52
Painter painter (*this );
53
53
painter.add_clip_rect (event.rect ());
54
54
55
+ if (fill_with_background_color ())
56
+ painter.fill_rect (rect (), palette ().window ());
57
+
58
+ if (is_enabled () && is_hovered ())
59
+ painter.fill_rect (rect (), palette ().hover_highlight ());
60
+
55
61
Gfx::Rect circle_rect { { 2 , 0 }, circle_size () };
56
62
circle_rect.center_vertically_within (rect ());
57
63
You can’t perform that action at this time.
0 commit comments