mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix: 'bubble' date indicator start animation not working
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user