diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-16 12:40:44 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-16 12:40:44 +0200 |
| commit | 5272d840e27a0316f8cc312b96c18bb780a3b161 (patch) | |
| tree | 7bcaf30bdf76aaed82b0690fb9614f7a00f1eb7f /appearance/IdleTab.qml | |
| parent | 89047e7de22d367133e15a4d2112d11144ac7cb1 (diff) | |
| download | quickshell-5272d840e27a0316f8cc312b96c18bb780a3b161.tar.gz quickshell-5272d840e27a0316f8cc312b96c18bb780a3b161.zip | |
fix(appearance): show idle timeouts as m:ss
The spec calls for a seconds field shown as m:ss, but the first pass
rendered the brief's '9m 30s' form. Zero-pad the seconds so 570 reads
9:30 and 600 reads 10:00.
Diffstat (limited to 'appearance/IdleTab.qml')
| -rw-r--r-- | appearance/IdleTab.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appearance/IdleTab.qml b/appearance/IdleTab.qml index be8ad99..f932fac 100644 --- a/appearance/IdleTab.qml +++ b/appearance/IdleTab.qml @@ -66,7 +66,7 @@ Flickable { } Text { anchors.verticalCenter: parent.verticalCenter - text: `${Math.floor(modelData.timeout / 60)}m ${modelData.timeout % 60}s` + text: `${Math.floor(modelData.timeout / 60)}:${String(modelData.timeout % 60).padStart(2, "0")}` color: Theme.subtext font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 4 } } |
