LibGUI: Use ColorRole::BaseText for the GCheckBox checkmark

This commit is contained in:
Andreas Kling 2019-12-24 22:33:11 +01:00
parent d8d86ec38d
commit caa5191f74
Notes: sideshowbarker 2024-07-19 10:42:19 +09:00

View file

@ -64,7 +64,7 @@ void GCheckBox::paint_event(GPaintEvent& event)
if (is_checked()) {
if (!s_checked_bitmap)
s_checked_bitmap = &CharacterBitmap::create_from_ascii(s_checked_bitmap_data, s_checked_bitmap_width, s_checked_bitmap_height).leak_ref();
painter.draw_bitmap(box_rect.shrunken(4, 4).location(), *s_checked_bitmap, palette().button_text());
painter.draw_bitmap(box_rect.shrunken(4, 4).location(), *s_checked_bitmap, palette().base_text());
}
paint_text(painter, text_rect, font(), TextAlignment::TopLeft);