diff --git a/.config/quickshell/ii/modules/common/widgets/StyledText.qml b/.config/quickshell/ii/modules/common/widgets/StyledText.qml index de4e2be96..4f07d67ef 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledText.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledText.qml @@ -25,6 +25,11 @@ Text { easing.bezierCurve: Appearance.animation.elementMoveFast.bezierCurve } + Component.onCompleted: { + textAnimationBehavior.originalX = root.x; + textAnimationBehavior.originalY = root.y; + } + Behavior on text { id: textAnimationBehavior property real originalX: root.x @@ -33,12 +38,6 @@ Text { SequentialAnimation { alwaysRunToEnd: true - ScriptAction { - script: textAnimationBehavior.originalX = root.x; - } - ScriptAction { - script: textAnimationBehavior.originalY = root.y; - } ParallelAnimation { Anim { property: "x"