put time column in loader, use fewer Behaviors

This commit is contained in:
end-4
2025-10-11 11:47:36 +02:00
parent 872e0762b6
commit 1e7e3a84c6
2 changed files with 23 additions and 20 deletions
@@ -77,7 +77,8 @@ Item {
anchors.fill: parent
color: root.colOnBackground
}
// Stupid extra hour marks in the middle
FadeLoader {
id: hourMarksLoader
anchors.centerIn: parent
@@ -90,11 +91,20 @@ Item {
}
// Number column in the middle
TimeColumn {
FadeLoader {
id: timeColumnLoader
anchors.centerIn: parent
color: root.colOnBackground
clockNumbers: root.clockNumbers
shown: Config.options.background.clock.cookie.timeIndicators
scale: 1.4 - 0.4 * timeColumnLoader.shown
Behavior on scale {
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
}
sourceComponent: TimeColumn {
color: root.colOnBackground
}
}
// Hour hand
HourHand {