From 6b08e16222be9ecaba0ab1722ba96fd251bb53d9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:15:50 +0100 Subject: [PATCH] MaterialSymbol: allow customization of fill anim --- .../ii/modules/common/widgets/MaterialSymbol.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/MaterialSymbol.qml b/dots/.config/quickshell/ii/modules/common/widgets/MaterialSymbol.qml index d117bb60b..101c0d424 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/MaterialSymbol.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/MaterialSymbol.qml @@ -20,11 +20,12 @@ StyledText { } } + property Animation fillAnimation: NumberAnimation { + duration: Appearance?.animation.elementMoveFast.duration ?? 200 + easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline + easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1] + } Behavior on fill { // Leaky leaky, no good - NumberAnimation { - duration: Appearance?.animation.elementMoveFast.duration ?? 200 - easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline - easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1] - } + animation: root.fillAnimation } }