mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibGfx: Tweak color of checkmark in disabled+checked GUI::CheckBox
This commit is contained in:
parent
93e82e8459
commit
849e2ded24
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ void ClassicStylePainter::paint_check_box(Painter& painter, const IntRect& rect,
|
||||||
if (is_checked) {
|
if (is_checked) {
|
||||||
if (!s_checked_bitmap)
|
if (!s_checked_bitmap)
|
||||||
s_checked_bitmap = &Gfx::CharacterBitmap::create_from_ascii(s_checked_bitmap_data, s_checked_bitmap_width, s_checked_bitmap_height).leak_ref();
|
s_checked_bitmap = &Gfx::CharacterBitmap::create_from_ascii(s_checked_bitmap_data, s_checked_bitmap_width, s_checked_bitmap_height).leak_ref();
|
||||||
painter.draw_bitmap(rect.shrunken(4, 4).location(), *s_checked_bitmap, palette.base_text());
|
painter.draw_bitmap(rect.shrunken(4, 4).location(), *s_checked_bitmap, is_enabled ? palette.base_text() : palette.threed_shadow1());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue