summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
Diffstat (limited to 'bar')
-rw-r--r--bar/TimeDate.qml24
1 files changed, 22 insertions, 2 deletions
diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml
index 1a952c7..6ef8596 100644
--- a/bar/TimeDate.qml
+++ b/bar/TimeDate.qml
@@ -34,8 +34,28 @@ Item {
text: Icons.resource.clock
font.pixelSize: Style.font.size.larger
}
- IText {
- text: Services.TimeDate.time
+ RowLayout {
+ property int h: Services.TimeDate.hours
+ property int m: Services.TimeDate.minutes
+ property int s: Services.TimeDate.seconds
+ spacing: 0
+ IText {
+ text: (parent.h > 10 ? "" : "0") + parent.h
+ }
+ IText {
+ text: ":"
+ }
+ IText {
+ animate: true
+ text: (parent.m > 10 ? "" : "0") + parent.m
+ }
+ IText {
+ text: ":"
+ }
+ IText {
+ animate: true
+ text: (parent.s > 10 ? "" : "0") + parent.s
+ }
}
Item {
Layout.fillWidth: true