background: add scale config option for clock

This commit is contained in:
end-4
2025-09-22 21:04:31 +02:00
parent 2237ec135c
commit a67a8d746f
3 changed files with 13 additions and 0 deletions
@@ -257,6 +257,7 @@ Variants {
// The clock
Loader {
id: clockLoader
scale: Config.options.background.clock.scale
active: Config.options.background.clock.show
anchors {
left: wallpaper.left
@@ -128,6 +128,7 @@ Singleton {
property real y: -500
property bool show: true
property string style: "cookie" // Options: "cookie", "digital"
property real scale: 1
}
property string wallpaperPath: ""
property string thumbnailPath: ""
@@ -20,6 +20,17 @@ ContentPage {
}
}
ConfigSpinBox {
text: Translation.tr("Scale (%)")
value: Config.options.background.clock.scale * 100
from: 1
to: 200
stepSize: 2
onValueChanged: {
Config.options.background.clock.scale = value / 100;
}
}
ContentSubsection {
title: Translation.tr("Clock style")
ConfigSelectionArray {