LibGfx: Tweak color of checkmark in disabled+checked GUI::CheckBox
This commit is contained in:
parent
93e82e8459
commit
849e2ded24
Notes:
sideshowbarker
2024-07-19 00:14:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/849e2ded24d
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 (!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();
|
||||
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
Reference in a new issue