diff options
| author | Unrectified <83581717+Unrectified@users.noreply.github.com> | 2026-02-19 12:34:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-19 22:34:21 +1100 |
| commit | 69adb9208723467014cf21f401f2ba1804f38376 (patch) | |
| tree | 626e199469ed037b89a6665abdb6a7fe2ff905f3 /modules/controlcenter | |
| parent | launcher: add favorite apps (#946) (diff) | |
| download | caelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.tar.gz caelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.tar.bz2 caelestia-shell-69adb9208723467014cf21f401f2ba1804f38376.zip | |
feat: add wallpaperEnabled option (#1187)
* fix: change background color to none allowing other wallpaper engine and background enabled
* feat: add wallpaperEnabled property and toggle in appearance settings
* fix background: Make it "black" if wallpaper is enabled, otherwise "transparent"
* fix: separate Visualiser from Wallpaper (hope I didn't made more shit buh)
* fix: transparency not working & layer position
* fix
---------
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/controlcenter')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 3 | ||||
| -rw-r--r-- | modules/controlcenter/appearance/sections/BackgroundSection.qml | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 4251167..f29f7ab 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -48,6 +48,7 @@ Item { property bool desktopClockBackgroundBlur: Config.background.desktopClock.background.blur ?? false property bool desktopClockInvertColors: Config.background.desktopClock.invertColors ?? false property bool backgroundEnabled: Config.background.enabled ?? true + property bool wallpaperEnabled: Config.background.wallpaperEnabled ?? true property bool visualiserEnabled: Config.background.visualiser.enabled ?? false property bool visualiserAutoHide: Config.background.visualiser.autoHide ?? true property real visualiserRounding: Config.background.visualiser.rounding ?? 1 @@ -83,6 +84,8 @@ Item { Config.background.desktopClock.background.blur = root.desktopClockBackgroundBlur; Config.background.desktopClock.invertColors = root.desktopClockInvertColors; + Config.background.wallpaperEnabled = root.wallpaperEnabled; + Config.background.visualiser.enabled = root.visualiserEnabled; Config.background.visualiser.autoHide = root.visualiserAutoHide; Config.background.visualiser.rounding = root.visualiserRounding; diff --git a/modules/controlcenter/appearance/sections/BackgroundSection.qml b/modules/controlcenter/appearance/sections/BackgroundSection.qml index 2f75c9e..9d6bc6e 100644 --- a/modules/controlcenter/appearance/sections/BackgroundSection.qml +++ b/modules/controlcenter/appearance/sections/BackgroundSection.qml @@ -27,6 +27,15 @@ CollapsibleSection { } } + SwitchRow { + label: qsTr("Wallpaper enabled") + checked: rootPane.wallpaperEnabled + onToggled: checked => { + rootPane.wallpaperEnabled = checked; + rootPane.saveConfig(); + } + } + StyledText { Layout.topMargin: Appearance.spacing.normal text: qsTr("Desktop Clock") |