We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7976ef7 commit add93bfCopy full SHA for add93bf
Libraries/LibGUI/Button.cpp
@@ -64,10 +64,14 @@ void Button::paint_event(PaintEvent& event)
64
if (is_being_pressed() || is_checked())
65
painter.translate(1, 1);
66
if (m_icon) {
67
- if (is_enabled())
68
- painter.blit(icon_location, *m_icon, m_icon->rect());
69
- else
+ if (is_enabled()) {
+ if (is_hovered())
+ painter.blit_brightened(icon_location, *m_icon, m_icon->rect());
70
+ else
71
+ painter.blit(icon_location, *m_icon, m_icon->rect());
72
+ } else {
73
painter.blit_dimmed(icon_location, *m_icon, m_icon->rect());
74
+ }
75
}
76
auto& font = is_checked() ? Gfx::Font::default_bold_font() : this->font();
77
if (m_icon && !text().is_empty()) {
0 commit comments