mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
navigationpanel: Fix disabled buttons from having grey icons
This commit is contained in:
parent
7e3d230f2e
commit
050ce9e5b8
1 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ Controls.AbstractButton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NumberAnimation on opacity {
|
NumberAnimation on opacity {
|
||||||
id: opacityAnimator
|
id: opacityAnimator
|
||||||
duration: Kirigami.Units.shortDuration
|
duration: Kirigami.Units.shortDuration
|
||||||
|
|
@ -72,6 +73,11 @@ Controls.AbstractButton {
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
id: 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)
|
readonly property real side: Math.min(button.width, button.height)
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue