forked from Shinonome/dots-hyprland
Merge branch 'main' of https://github.com/darksignal7/dots-hyprland
This commit is contained in:
@@ -13,6 +13,7 @@ Item {
|
||||
property int minuteLineSize: 4
|
||||
property color color: Appearance.colors.colOnSecondaryContainer
|
||||
property string style: Config.options.background.clock.cookie.dialNumberStyle // "dots", "numbers", "full", "hide"
|
||||
property string dateStyle : Config.options.background.clock.cookie.dateStyle
|
||||
|
||||
Repeater {
|
||||
model: 12
|
||||
@@ -61,7 +62,7 @@ Item {
|
||||
anchors {
|
||||
left: parent.left
|
||||
verticalCenter: parent.verticalCenter
|
||||
leftMargin: root.style === "numbers" ? 32 : 96
|
||||
leftMargin: root.style === "numbers" ? root.dateStyle === "rotating" ? 48 : 32 : 96
|
||||
}
|
||||
Behavior on anchors.leftMargin {
|
||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||
@@ -75,9 +76,12 @@ Item {
|
||||
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
|
||||
pixelSize: root.dateStyle === "rotating" ? 70 : 80
|
||||
weight: 1000
|
||||
}
|
||||
Behavior on font.pixelSize {
|
||||
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user