cookie clock: fix bubble date's bubbles being the same

This commit is contained in:
end-4
2025-10-14 09:29:41 +02:00
parent 5929533d78
commit 28756860aa
@@ -6,11 +6,12 @@ import qs.modules.common.widgets
import QtQuick
Item {
id: root
property bool isMonth: false
property real targetSize: 0
property alias text: bubbleText.text
text: Qt.locale().toString(DateTime.clock.date, isMonth ? "MM" : "d")
text: Qt.locale().toString(DateTime.clock.date, root.isMonth ? "MM" : "d")
MaterialCookie {
z: 5
@@ -26,14 +27,10 @@ Item {
z: 6
anchors.centerIn: parent
color: root.isMonth ? Appearance.colors.colPrimary : Appearance.colors.colTertiary
opacity: root.style === "bubble" ? 1 : 0
font {
family: Appearance.font.family.expressive
pixelSize: 30
weight: Font.Black
}
Behavior on opacity {
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
}
}
}