From 35dadbb7c4ebab240f153ec16b16757ce85d2234 Mon Sep 17 00:00:00 2001 From: darksignal7 Date: Mon, 6 Oct 2025 19:53:17 +0300 Subject: [PATCH] add animation to stroke hour hand --- .../ii/modules/background/cookieClock/HourHand.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/HourHand.qml b/.config/quickshell/ii/modules/background/cookieClock/HourHand.qml index 045a6aee9..da1d8060f 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/HourHand.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/HourHand.qml @@ -16,7 +16,13 @@ Item { property real handWidth: 16 property string style: "fill" property color color: Appearance.colors.colPrimary + + property real fillColorAlpha: root.style === "stroke" ? 0.0 : 1.0 // for animation + Behavior on fillColorAlpha { + animation: Appearance.animation.elementResize.numberAnimation.createObject(this) + } + rotation: -90 + (360 / 12) * (root.clockHour + root.clockMinute / 60) z: root.style === "fill" ? 3 : 1 @@ -36,7 +42,7 @@ Item { height: root.style === "classic" ? 8 : handWidth radius: root.style === "classic" ? 2 : handWidth / 2 - color : root.style === "stroke" ? "transparent" : root.color + color : Qt.rgba(root.color.r, root.color.g, root.color.b, fillColorAlpha) border.color: root.color border.width: 4