mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibGUI+LibGfx+WindowServer: Auto-generate disabled action icons :^)
This patch adds a simple filter that makes button and menu item icons have that "'90s disabled" look when disabled. It's pretty awesome.
This commit is contained in:
@@ -78,7 +78,7 @@ void Button::paint_event(PaintEvent& event)
|
||||
else
|
||||
painter.blit(icon_location, *m_icon, m_icon->rect());
|
||||
} else {
|
||||
painter.blit_dimmed(icon_location, *m_icon, m_icon->rect());
|
||||
painter.blit_disabled(icon_location, *m_icon, m_icon->rect(), palette());
|
||||
}
|
||||
}
|
||||
auto& font = is_checked() ? Gfx::Font::default_bold_font() : this->font();
|
||||
|
||||
Reference in New Issue
Block a user