From ca1009140ec99fc20776d7f9ccf907a8a6179a3a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Jul 2025 10:56:34 +0800 Subject: timedate: fix extra "0" displayed infornt at 10 --- bar/TimeDate.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml index 6ef8596..0a0abb6 100644 --- a/bar/TimeDate.qml +++ b/bar/TimeDate.qml @@ -40,21 +40,22 @@ Item { property int s: Services.TimeDate.seconds spacing: 0 IText { - text: (parent.h > 10 ? "" : "0") + parent.h + animate: true + text: (parent.h >= 10 ? "" : "0") + parent.h } IText { text: ":" } IText { animate: true - text: (parent.m > 10 ? "" : "0") + parent.m + text: (parent.m >= 10 ? "" : "0") + parent.m } IText { text: ":" } IText { animate: true - text: (parent.s > 10 ? "" : "0") + parent.s + text: (parent.s >= 10 ? "" : "0") + parent.s } } Item { -- cgit v1.2.3