controlcenter: fix desktop clock settings (#1114)

Add missing desktop clock properties to serializeBackground() function:
- desktopClock.scale
- desktopClock.position
- desktopClock.invertColors
- desktopClock.background.enabled
- desktopClock.background.opacity
- desktopClock.background.blur
- desktopClock.shadow.enabled
- desktopClock.shadow.opacity
- desktopClock.shadow.blur

This fixes the issue where the desktop clock background enabled toggle
(and other desktop clock settings) would not persist when the control
center was reloaded.
This commit is contained in:
ATDMA 2026-01-22 04:21:54 -05:00 committed by GitHub
parent 2ddc367e4e
commit 617f7a19f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,20 @@ Singleton {
return {
enabled: background.enabled,
desktopClock: {
enabled: background.desktopClock.enabled
enabled: background.desktopClock.enabled,
scale: background.desktopClock.scale,
position: background.desktopClock.position,
invertColors: background.desktopClock.invertColors,
background: {
enabled: background.desktopClock.background.enabled,
opacity: background.desktopClock.background.opacity,
blur: background.desktopClock.background.blur
},
shadow: {
enabled: background.desktopClock.shadow.enabled,
opacity: background.desktopClock.shadow.opacity,
blur: background.desktopClock.shadow.blur
}
},
visualiser: {
enabled: background.visualiser.enabled,