1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

clock: make desktop clock not use precision seconds always

This commit is contained in:
bbedward
2025-12-17 21:00:04 -05:00
parent f2b9dc8988
commit 145d2636dd

View File

@@ -78,9 +78,11 @@ Item {
readonly property color subtleTextColor: Theme.onSurfaceVariant readonly property color subtleTextColor: Theme.onSurfaceVariant
readonly property color backgroundColor: Theme.withAlpha(Theme.surface, root.transparency) readonly property color backgroundColor: Theme.withAlpha(Theme.surface, root.transparency)
readonly property bool needsSeconds: clockStyle === "analog" ? SettingsData.desktopClockShowAnalogSeconds : SettingsData.showSeconds
SystemClock { SystemClock {
id: systemClock id: systemClock
precision: SystemClock.Seconds precision: root.needsSeconds ? SystemClock.Seconds : SystemClock.Minutes
} }
Rectangle { Rectangle {