From aa064fb6c5829dc102118af903c30710cf63dbed Mon Sep 17 00:00:00 2001 From: darksignal7 Date: Wed, 8 Oct 2025 22:21:50 +0300 Subject: [PATCH] fix: 'bubble' date indicator start animation not working --- .../background/cookieClock/dateIndicators/BubbleDate.qml | 6 ++---- .../background/cookieClock/dateIndicators/DateIndicator.qml | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/BubbleDate.qml b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/BubbleDate.qml index 7479574ac..079c9650a 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/BubbleDate.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/BubbleDate.qml @@ -8,17 +8,15 @@ import QtQuick Item { property int bubbleIndex: 0 + property real targetSize: 0 MaterialCookie { z: 5 sides: bubbleIndex === 0 ? 4 : 1 anchors.centerIn: parent color: bubbleIndex === 0.0 ? Appearance.colors.colPrimaryContainer : Appearance.colors.colTertiaryContainer - implicitSize: root.style === "bubble" ? root.dateSquareSize : 0 + implicitSize: targetSize constantlyRotate: Config.options.background.clock.cookie.constantlyRotate - Behavior on implicitSize { - animation: Appearance.animation.elementResize.numberAnimation.createObject(this) - } } StyledText { z: 6 diff --git a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml index f1977117e..d2626d751 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml @@ -47,6 +47,7 @@ Item { // Date bubble / day Loader { + id: dayBubbleLoader property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0 Behavior on targetSize { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) @@ -63,11 +64,13 @@ Item { } sourceComponent: BubbleDate { bubbleIndex: 0 + targetSize: dayBubbleLoader.targetSize } } // Date bubble / month Loader { + id: monthBubbleLoader property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0 Behavior on targetSize { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) @@ -84,6 +87,7 @@ Item { } sourceComponent: BubbleDate { bubbleIndex: 1 + targetSize: monthBubbleLoader.targetSize } } }