LibGUI: Use ColorRole::DisabledText when AbstractView is disabled

And only paint GlyphMapWidget's frame if disabled
This commit is contained in:
thankyouverycool 2023-05-10 17:01:22 -04:00 committed by Andreas Kling
parent ec29d3abae
commit aaf60053f1
Notes: sideshowbarker 2024-07-17 02:37:08 +09:00
2 changed files with 6 additions and 1 deletions

View file

@ -120,6 +120,9 @@ void GlyphMapWidget::paint_event(PaintEvent& event)
{
Frame::paint_event(event);
if (!is_enabled())
return;
Painter painter(*this);
painter.add_clip_rect(widget_inner_rect());
painter.add_clip_rect(event.rect());