forked from Shinonome/dots-hyprland
styledcombobox: use predefined color anim
This commit is contained in:
@@ -22,10 +22,7 @@ ComboBox {
|
|||||||
color: root.down ? root.colBackgroundActive : root.hovered ? root.colBackgroundHover : root.colBackground
|
color: root.down ? root.colBackgroundActive : root.hovered ? root.colBackgroundHover : root.colBackground
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation {
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
||||||
duration: 150
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,10 +78,7 @@ ComboBox {
|
|||||||
color: root.currentIndex === itemDelegate.index ? Appearance.colors.colPrimary : itemDelegate.down ? Appearance.colors.colSecondaryContainerActive : itemDelegate.hovered ? Appearance.colors.colSecondaryContainerHover : "transparent"
|
color: root.currentIndex === itemDelegate.index ? Appearance.colors.colPrimary : itemDelegate.down ? Appearance.colors.colSecondaryContainerActive : itemDelegate.hovered ? Appearance.colors.colSecondaryContainerHover : "transparent"
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation {
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
||||||
duration: 150
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user