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:
parent
59b9e9cd4d
commit
e490fc9e35
2 changed files with 9 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue