forked from Shinonome/dots-hyprland
MinuteMarks: resolve some unqualified access
This commit is contained in:
@@ -49,6 +49,7 @@ Item {
|
|||||||
Repeater {
|
Repeater {
|
||||||
model: 4
|
model: 4
|
||||||
Item {
|
Item {
|
||||||
|
id: numberItem
|
||||||
required property int index
|
required property int index
|
||||||
opacity: root.style === "numbers" ? 1.0 : 0
|
opacity: root.style === "numbers" ? 1.0 : 0
|
||||||
rotation: 360 / 4 * index
|
rotation: 360 / 4 * index
|
||||||
@@ -71,10 +72,10 @@ Item {
|
|||||||
StyledText {
|
StyledText {
|
||||||
color: root.color
|
color: root.color
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: index === 0 ? "9" :
|
text: numberItem.index === 0 ? "9" :
|
||||||
index === 1 ? "12" :
|
numberItem.index === 1 ? "12" :
|
||||||
index === 2 ? "3" : "6"
|
numberItem.index === 2 ? "3" : "6"
|
||||||
rotation: index % 2 === 0 ? index * 90 : -index * 90 //A better way can be found to show texts on right angle
|
rotation: numberItem.index % 2 === 0 ? numberItem.index * 90 : -numberItem.index * 90 //A better way can be found to show texts on right angle
|
||||||
font {
|
font {
|
||||||
family: Appearance.font.family.reading
|
family: Appearance.font.family.reading
|
||||||
pixelSize: 80
|
pixelSize: 80
|
||||||
|
|||||||
Reference in New Issue
Block a user