mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +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:
parent
ea14c67e29
commit
3ec19ae4b6
5 changed files with 23 additions and 3 deletions
|
@ -153,7 +153,7 @@ void TaskbarButton::paint_event(GUI::PaintEvent& event)
|
|||
else
|
||||
painter.blit(icon_location, icon, icon.rect());
|
||||
} else {
|
||||
painter.blit_dimmed(icon_location, icon, icon.rect());
|
||||
painter.blit_disabled(icon_location, icon, icon.rect(), palette());
|
||||
}
|
||||
|
||||
if (!has_progress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue