add option to not animate digital bg clock (closes #2055)

This commit is contained in:
end-4
2025-10-29 20:31:14 +01:00
parent c550a792b8
commit 727227cf8b
3 changed files with 18 additions and 1 deletions
@@ -445,7 +445,7 @@ Variants {
color: bgRoot.colText
style: Text.Raised
styleColor: Appearance.colors.colShadow
animateChange: true
animateChange: Config.options.background.clock.digital.animateChange
}
component ClockStatusText: Row {
id: statusTextRow
@@ -165,6 +165,9 @@ Singleton {
property bool dateInClock: true
property bool constantlyRotate: false
}
property JsonObject digital: JsonObject {
property bool animateChange: true
}
}
property string wallpaperPath: ""
@@ -55,6 +55,20 @@ ContentPage {
}
}
ContentSubsection {
visible: Config.options.background.clock.style === "digital"
title: Translation.tr("Digital clock settings")
ConfigSwitch {
buttonIcon: "animation"
text: Translation.tr("Animate time change")
checked: Config.options.background.clock.digital.animateChange
onCheckedChanged: {
Config.options.background.clock.digital.animateChange = checked;
}
}
}
ContentSubsection {
visible: Config.options.background.clock.style === "cookie"
title: Translation.tr("Cookie clock settings")