diff options
author | Andres Vieira <anvieiravazquez@gmail.com> | 2020-04-28 13:49:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-28 15:14:02 +0200 |
commit | 711bcff0da2b558c4ccd8342fd0b9c8165833734 (patch) | |
tree | 2f4e9f53baa4ca891039f4b755cbe12c93d9ee4a /Libraries | |
parent | b9df3c3318dd38d6371d4adb09af368d06fa6ee7 (diff) | |
download | serenity-711bcff0da2b558c4ccd8342fd0b9c8165833734.zip |
LibGUI: Paint CheckBox background same as widget's if it's not enabled
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/CheckBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |