forked from Shinonome/dots-hyprland
make MinuteHand not rely on cascading
This commit is contained in:
@@ -107,6 +107,7 @@ Item {
|
|||||||
MinuteHand {
|
MinuteHand {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
handWidth: root.minuteHandWidth
|
handWidth: root.minuteHandWidth
|
||||||
|
handLength: root.minuteHandLength
|
||||||
clockMinute: root.clockMinute
|
clockMinute: root.clockMinute
|
||||||
style: Config.options.background.clock.cookie.minuteHandStyle
|
style: Config.options.background.clock.cookie.minuteHandStyle
|
||||||
color: root.colMinuteHand
|
color: root.colMinuteHand
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ Item {
|
|||||||
|
|
||||||
required property int clockMinute
|
required property int clockMinute
|
||||||
property real handWidth: 16
|
property real handWidth: 16
|
||||||
|
property real handLength: 95
|
||||||
property string style: "medium"
|
property string style: "medium"
|
||||||
property color color: Appearance.colors.colSecondary
|
property color color: Appearance.colors.colSecondary
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ Item {
|
|||||||
if (root.style === "classic") position -= 15;
|
if (root.style === "classic") position -= 15;
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
width: minuteHandLength
|
width: root.handLength
|
||||||
height: root.handWidth
|
height: root.handWidth
|
||||||
|
|
||||||
radius: root.style === "classic" ? 2 : root.handWidth / 2
|
radius: root.style === "classic" ? 2 : root.handWidth / 2
|
||||||
|
|||||||
Reference in New Issue
Block a user