Commit 39bcddff authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[SwitchIndicator] Only animate border.color when going to normal state

parent 74f14246
......@@ -79,11 +79,12 @@ Item {
color: Kirigami.Theme.backgroundColor
border {
width: Kirigami.Units.smallBorder
color: (control.down || control.highlighted || control.visualFocus || control.hovered) && control.enabled ?
color: control.down || control.visualFocus || control.hovered ?
Kirigami.Theme.focusColor : Kirigami.Theme.separatorColor
}
Behavior on border.color {
enabled: control.down || control.visualFocus || control.hovered
ColorAnimation {
duration: Kirigami.Units.shortDuration
easing.type: Easing.OutCubic
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment