1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-10 15:52:58 -04:00

clock: add analog seconds option for desktop widget

This commit is contained in:
bbedward
2025-12-17 14:04:14 -05:00
parent 523ccc6bf8
commit 53553c1f62
4 changed files with 15 additions and 0 deletions

View File

@@ -192,6 +192,8 @@ Item {
Rectangle {
id: secondDot
visible: SettingsData.desktopClockShowAnalogSeconds
property real angle: analogRoot.seconds * 6 * Math.PI / 180
property real orbitRadius: analogRoot.faceRadius * 0.92

View File

@@ -87,6 +87,17 @@ Item {
onToggled: checked => SettingsData.set("desktopClockShowAnalogNumbers", checked)
}
SettingsDivider {
visible: SettingsData.desktopClockStyle === "analog"
}
SettingsToggleRow {
visible: SettingsData.desktopClockStyle === "analog"
text: I18n.tr("Show Seconds")
checked: SettingsData.desktopClockShowAnalogSeconds
onToggled: checked => SettingsData.set("desktopClockShowAnalogSeconds", checked)
}
SettingsDivider {}
SettingsToggleRow {