From 050ce9e5b8c4bca1a9b9c8d44b9c465064c64c6a Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 7 Oct 2024 20:22:54 -0700 Subject: [PATCH] navigationpanel: Fix disabled buttons from having grey icons --- .../qml/navigationpanel/NavigationPanelButton.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/mobileshell/qml/navigationpanel/NavigationPanelButton.qml b/components/mobileshell/qml/navigationpanel/NavigationPanelButton.qml index 878a12fd..0acc4771 100644 --- a/components/mobileshell/qml/navigationpanel/NavigationPanelButton.qml +++ b/components/mobileshell/qml/navigationpanel/NavigationPanelButton.qml @@ -55,6 +55,7 @@ Controls.AbstractButton { } } } + NumberAnimation on opacity { id: opacityAnimator duration: Kirigami.Units.shortDuration @@ -72,6 +73,11 @@ Controls.AbstractButton { Kirigami.Icon { id: icon + + // Workaround for icon colors being grey when button is disabled + Kirigami.Theme.inherit: false + Kirigami.Theme.colorSet: button.Kirigami.Theme.colorSet + readonly property real side: Math.min(button.width, button.height) anchors { fill: parent