From 711bcff0da2b558c4ccd8342fd0b9c8165833734 Mon Sep 17 00:00:00 2001 From: Andres Vieira Date: Tue, 28 Apr 2020 13:49:14 +0200 Subject: LibGUI: Paint CheckBox background same as widget's if it's not enabled --- Libraries/LibGUI/CheckBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries') diff --git a/Libraries/LibGUI/CheckBox.cpp b/Libraries/LibGUI/CheckBox.cpp index 57a4df3a5f..ac17312354 100644 --- a/Libraries/LibGUI/CheckBox.cpp +++ b/Libraries/LibGUI/CheckBox.cpp @@ -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()) -- cgit v1.2.3