diff --git a/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml b/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml index 1bad2824b..a1a33c472 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml @@ -109,6 +109,7 @@ Item { // Second hand Loader { + id: secondHandLoader active: Config.options.time.secondPrecision && Config.options.background.clock.cookie.secondHandStyle !== "none" anchors.fill: parent sourceComponent: SecondHand { diff --git a/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml b/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml index 671433a48..6efc6cb0e 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml @@ -12,6 +12,7 @@ Item { property string style: "rotating" property color colOnBackground: Appearance.colors.colOnSecondaryContainer property color colOnSecondary: Appearance.colors.colOnSecondaryContainer + Canvas { z: 0 @@ -19,14 +20,14 @@ Item { height: parent.height rotation: { if (!Config.options.time.secondPrecision) return 0; - return secondHand.rotation + 45 // +45 degrees to align with minute hand + return secondHandLoader.item.rotation + 45 // +45 degrees to align with minute hand } opacity: root.style === "rotating" ? 1.0 : 0 Behavior on opacity { animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) } - + onPaint: { var ctx = getContext("2d"); ctx.clearRect(0, 0, width, height);