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