mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibGUI: Paint CheckBox background same as widget's if it's not enabled
This commit is contained in:
parent
b9df3c3318
commit
711bcff0da
Notes:
sideshowbarker
2024-07-19 07:13:36 +09:00
Author: https://github.com/zlotny
Commit: 711bcff0da
Pull-request: https://github.com/SerenityOS/serenity/pull/1996
Issue: https://github.com/SerenityOS/serenity/issues/1987
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue