diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-27 21:17:50 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-27 21:25:40 +0100 |
commit | 3ec19ae4b6de72a7725668e281b1130d09654959 (patch) | |
tree | abe1d97284bffebfd8f7704ffb4b44d13488f8db /Libraries/LibGUI/Button.cpp | |
parent | ea14c67e29a423b875ef754a1ed503bb0ba09985 (diff) | |
download | serenity-3ec19ae4b6de72a7725668e281b1130d09654959.zip |
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.
Diffstat (limited to 'Libraries/LibGUI/Button.cpp')
-rw-r--r-- | Libraries/LibGUI/Button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/Button.cpp b/Libraries/LibGUI/Button.cpp index 93539907b5..ea57a27c62 100644 --- a/Libraries/LibGUI/Button.cpp +++ b/Libraries/LibGUI/Button.cpp @@ -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(); |