navigationpanel: Fix disabled buttons from having grey icons

This commit is contained in:
Devin Lin 2024-10-07 20:22:54 -07:00
parent 7e3d230f2e
commit 050ce9e5b8

View file

@ -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