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 } } }