From 6f19e1cdd68604d6dae1514f3d3c28611fdf7e83 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 13 Nov 2025 22:21:50 +0100 Subject: [PATCH] styledcombobox: use predefined color anim --- .../ii/modules/common/widgets/StyledComboBox.qml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml index 150dbc249..0c0209295 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledComboBox.qml @@ -22,10 +22,7 @@ ComboBox { color: root.down ? root.colBackgroundActive : root.hovered ? root.colBackgroundHover : root.colBackground Behavior on color { - ColorAnimation { - duration: 150 - easing.type: Easing.OutCubic - } + animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this) } } @@ -81,10 +78,7 @@ ComboBox { color: root.currentIndex === itemDelegate.index ? Appearance.colors.colPrimary : itemDelegate.down ? Appearance.colors.colSecondaryContainerActive : itemDelegate.hovered ? Appearance.colors.colSecondaryContainerHover : "transparent" Behavior on color { - ColorAnimation { - duration: 150 - easing.type: Easing.OutCubic - } + animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this) } }