mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:54:57 +00:00
LibGUI: Use ColorRole::DisabledText when AbstractView is disabled
And only paint GlyphMapWidget's frame if disabled
This commit is contained in:
parent
ec29d3abae
commit
aaf60053f1
2 changed files with 6 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue