add setting to show/hide the clock in background

This commit is contained in:
hoovad 2025-08-27 05:01:42 +02:00
parent bb49747fd9
commit 5cd5a9d7e4
No known key found for this signature in database
GPG key ID: CE5732BDE6583785
3 changed files with 14 additions and 0 deletions

View file

@ -217,6 +217,7 @@ Variants {
// The clock
Item {
id: clock
visible: Config.options.background.show_clock
anchors {
left: wallpaper.left
top: wallpaper.top

View file

@ -119,6 +119,7 @@ Singleton {
property bool fixedClockPosition: false
property real clockX: -500
property real clockY: -500
property bool show_clock: true
property string wallpaperPath: ""
property string thumbnailPath: ""
property JsonObject parallax: JsonObject {

View file

@ -624,4 +624,16 @@ ContentPage {
}
}
}
ContentSection {
title: Translation.tr("Background")
ConfigSwitch {
text: Translation.tr("Show clock")
checked: Config.options.background.show_clock
onCheckedChanged: {
Config.options.background.show_clock = checked;
}
}
}
}