From 945deafa63c2a48208708d435f4036bab828fe57 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:30:43 +0200 Subject: [PATCH] MinuteMarks: resolve some unqualified access --- .../ii/modules/background/cookieClock/MinuteMarks.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/MinuteMarks.qml b/.config/quickshell/ii/modules/background/cookieClock/MinuteMarks.qml index 1ecb422e0..6ac1a3e0d 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/MinuteMarks.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/MinuteMarks.qml @@ -49,6 +49,7 @@ Item { Repeater { model: 4 Item { + id: numberItem required property int index opacity: root.style === "numbers" ? 1.0 : 0 rotation: 360 / 4 * index @@ -71,10 +72,10 @@ Item { StyledText { color: root.color anchors.centerIn: parent - text: index === 0 ? "9" : - index === 1 ? "12" : - index === 2 ? "3" : "6" - rotation: index % 2 === 0 ? index * 90 : -index * 90 //A better way can be found to show texts on right angle + text: numberItem.index === 0 ? "9" : + numberItem.index === 1 ? "12" : + numberItem.index === 2 ? "3" : "6" + rotation: numberItem.index % 2 === 0 ? numberItem.index * 90 : -numberItem.index * 90 //A better way can be found to show texts on right angle font { family: Appearance.font.family.reading pixelSize: 80