From 3f9459a07ef2489ab60985cbf25a2b2acef28c92 Mon Sep 17 00:00:00 2001 From: darksignal7 Date: Sun, 5 Oct 2025 17:19:49 +0300 Subject: [PATCH] fix centerGlow animation --- .../quickshell/ii/modules/background/CookieClock.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/quickshell/ii/modules/background/CookieClock.qml b/.config/quickshell/ii/modules/background/CookieClock.qml index d39877b72..56c812a6b 100644 --- a/.config/quickshell/ii/modules/background/CookieClock.qml +++ b/.config/quickshell/ii/modules/background/CookieClock.qml @@ -270,15 +270,16 @@ Item { color: root.colTimeIndicators anchors.centerIn: parent implicitWidth: Config.options.background.clock.cookie.centerGlow ? centerGlowSize : centerGlowSize * 1.75 - implicitHeight: implicitWidth + implicitHeight: Config.options.background.clock.cookie.centerGlow ? centerGlowSize : centerGlowSize * 1.75 // Not using implicitHeight to allow smooth transition radius: implicitWidth / 2 Behavior on opacity { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } - Behavior on implicitWidth { // Not using two animations (one for width and one for height) because it looks weird - ParallelAnimation { - NumberAnimation { properties: "implicitWidth,implicitHeight"; duration: 100; easing.type: Easing.InOutQuad } - } + Behavior on implicitWidth { + animation: Appearance.animation.elementResize.numberAnimation.createObject(this) + } + Behavior on implicitHeight { + animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } } @@ -307,7 +308,6 @@ Item { Behavior on implicitWidth { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } - anchors { left: parent.left verticalCenter: parent.verticalCenter