From 5cd5a9d7e49c113ee34ca920020973302392cc45 Mon Sep 17 00:00:00 2001 From: hoovad Date: Wed, 27 Aug 2025 05:01:42 +0200 Subject: [PATCH] add setting to show/hide the clock in background --- .../quickshell/ii/modules/background/Background.qml | 1 + .config/quickshell/ii/modules/common/Config.qml | 1 + .../ii/modules/settings/InterfaceConfig.qml | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 31d7acba..63fe5d7f 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -217,6 +217,7 @@ Variants { // The clock Item { id: clock + visible: Config.options.background.show_clock anchors { left: wallpaper.left top: wallpaper.top diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index d7019955..df8a6262 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -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 { diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 9f753ff7..235ce6f9 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -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; + } + } + } }