From 698692a500ef6b5c7832bc64864aa6744d51a754 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 24 Mar 2026 17:22:44 +0100 Subject: [PATCH] use tabular numbers for sidebar timers --- .../ii/modules/ii/sidebarRight/pomodoro/PomodoroTimer.qml | 1 + .../ii/modules/ii/sidebarRight/pomodoro/Stopwatch.qml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/PomodoroTimer.qml b/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/PomodoroTimer.qml index b8dce71e1..39b76f5c2 100644 --- a/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/PomodoroTimer.qml +++ b/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/PomodoroTimer.qml @@ -40,6 +40,7 @@ Item { return `${minutes}:${seconds}`; } font.pixelSize: 40 + font.features: { "tnum": 1 } color: Appearance.m3colors.m3onSurface } StyledText { diff --git a/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/Stopwatch.qml b/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/Stopwatch.qml index 8b1dbba13..ca8e9de5c 100644 --- a/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/Stopwatch.qml +++ b/dots/.config/quickshell/ii/modules/ii/sidebarRight/pomodoro/Stopwatch.qml @@ -53,6 +53,7 @@ Item { StyledText { // Layout.preferredWidth: elapsedIndicator.width * 0.6 // Prevent shakiness font.pixelSize: 40 + font.features: { "tnum": 1 } color: Appearance.m3colors.m3onSurface text: { let totalSeconds = Math.floor(TimerService.stopwatchTime) / 100 @@ -64,9 +65,10 @@ Item { StyledText { Layout.fillWidth: true font.pixelSize: 40 + font.features: { "tnum": 1 } color: Appearance.colors.colSubtext text: { - return `:${(Math.floor(TimerService.stopwatchTime) % 100).toString().padStart(2, '0')}` + return `:${(Math.floor(TimerService.stopwatchTime) % 100).toString().padStart(2, '0')}` } } }