From a67a8d746fb63777bf451d40729ede93c17831fd Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:04:31 +0200 Subject: [PATCH] background: add scale config option for clock --- .../quickshell/ii/modules/background/Background.qml | 1 + .config/quickshell/ii/modules/common/Config.qml | 1 + .../ii/modules/settings/InterfaceConfig.qml | 11 +++++++++++ 3 files changed, 13 insertions(+) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index fd1ee53dd..fec906a3d 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -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 diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 05949c351..05c1eb71c 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -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: "" diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 253fff396..9d66d0c65 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -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 {