mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
make MinuteHand not rely on cascading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user