make MinuteHand not rely on cascading

This commit is contained in:
end-4
2025-10-07 17:31:07 +02:00
parent 945deafa63
commit 737dd01c8d
2 changed files with 3 additions and 1 deletions
@@ -107,6 +107,7 @@ Item {
MinuteHand {
anchors.fill: parent
handWidth: root.minuteHandWidth
handLength: root.minuteHandLength
clockMinute: root.clockMinute
style: Config.options.background.clock.cookie.minuteHandStyle
color: root.colMinuteHand
@@ -13,6 +13,7 @@ Item {
required property int clockMinute
property real handWidth: 16
property real handLength: 95
property string style: "medium"
property color color: Appearance.colors.colSecondary
@@ -34,7 +35,7 @@ Item {
if (root.style === "classic") position -= 15;
return position;
}
width: minuteHandLength
width: root.handLength
height: root.handWidth
radius: root.style === "classic" ? 2 : root.handWidth / 2