fix: 'bubble' date indicator start animation not working

This commit is contained in:
darksignal7
2025-10-08 22:21:50 +03:00
parent 70f3a25798
commit aa064fb6c5
2 changed files with 6 additions and 4 deletions
@@ -8,17 +8,15 @@ import QtQuick
Item { Item {
property int bubbleIndex: 0 property int bubbleIndex: 0
property real targetSize: 0
MaterialCookie { MaterialCookie {
z: 5 z: 5
sides: bubbleIndex === 0 ? 4 : 1 sides: bubbleIndex === 0 ? 4 : 1
anchors.centerIn: parent anchors.centerIn: parent
color: bubbleIndex === 0.0 ? Appearance.colors.colPrimaryContainer : Appearance.colors.colTertiaryContainer 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 constantlyRotate: Config.options.background.clock.cookie.constantlyRotate
Behavior on implicitSize {
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
}
} }
StyledText { StyledText {
z: 6 z: 6
@@ -47,6 +47,7 @@ Item {
// Date bubble / day // Date bubble / day
Loader { Loader {
id: dayBubbleLoader
property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0 property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0
Behavior on targetSize { Behavior on targetSize {
animation: Appearance.animation.elementResize.numberAnimation.createObject(this) animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
@@ -63,11 +64,13 @@ Item {
} }
sourceComponent: BubbleDate { sourceComponent: BubbleDate {
bubbleIndex: 0 bubbleIndex: 0
targetSize: dayBubbleLoader.targetSize
} }
} }
// Date bubble / month // Date bubble / month
Loader { Loader {
id: monthBubbleLoader
property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0 property real targetSize: root.style === "bubble" ? root.dateSquareSize : 0
Behavior on targetSize { Behavior on targetSize {
animation: Appearance.animation.elementResize.numberAnimation.createObject(this) animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
@@ -84,6 +87,7 @@ Item {
} }
sourceComponent: BubbleDate { sourceComponent: BubbleDate {
bubbleIndex: 1 bubbleIndex: 1
targetSize: monthBubbleLoader.targetSize
} }
} }
} }