1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 11:55:07 +00:00

FontEditor: Make the application theme-aware

This commit is contained in:
Tibor Nagy 2020-02-20 10:55:00 +01:00 committed by Andreas Kling
parent 59b9e9cd4d
commit e490fc9e35
2 changed files with 9 additions and 8 deletions

View file

@ -89,7 +89,7 @@ void GlyphMapWidget::paint_event(GUI::PaintEvent& event)
painter.add_clip_rect(event.rect());
painter.set_font(font());
painter.fill_rect(frame_inner_rect(), Color::White);
painter.fill_rect(frame_inner_rect(), palette().base());
u8 glyph = 0;
@ -103,9 +103,9 @@ void GlyphMapWidget::paint_event(GUI::PaintEvent& event)
font().glyph_height());
if (glyph == m_selected_glyph) {
painter.fill_rect(outer_rect, palette().selection());
painter.draw_glyph(inner_rect.location(), glyph, Color::White);
painter.draw_glyph(inner_rect.location(), glyph, palette().selection_text());
} else {
painter.draw_glyph(inner_rect.location(), glyph, Color::Black);
painter.draw_glyph(inner_rect.location(), glyph, palette().base_text());
}
}
}