Skip to content

Commit

Permalink
LibGUI: Paint CheckBox background same as widget's if it's not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zlotny authored and awesomekling committed Apr 28, 2020
1 parent b9df3c3 commit 711bcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibGUI/CheckBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void CheckBox::paint_event(PaintEvent& event)
0, height() / 2 - s_box_height / 2 - 1,
s_box_width, s_box_height
};
painter.fill_rect(box_rect, palette().base());
painter.fill_rect(box_rect, is_enabled() ? palette().base() : palette().window());
Gfx::StylePainter::paint_frame(painter, box_rect, palette(), Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 2);

if (is_being_pressed())
Expand Down

0 comments on commit 711bcff

Please sign in to comment.