summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Clock.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Clock.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Clock.qml30
1 files changed, 18 insertions, 12 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Clock.qml b/accounts/gkleen@sif/shell/quickshell/Clock.qml
index 55fabd1c..d645cfa7 100644
--- a/accounts/gkleen@sif/shell/quickshell/Clock.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Clock.qml
@@ -7,6 +7,8 @@ import QtQuick.Layouts
7import Quickshell.Widgets 7import Quickshell.Widgets
8 8
9Item { 9Item {
10 id: clockItem
11
10 width: clock.contentWidth 12 width: clock.contentWidth
11 height: parent.height 13 height: parent.height
12 anchors.verticalCenter: parent.verticalCenter 14 anchors.verticalCenter: parent.verticalCenter
@@ -30,22 +32,26 @@ Item {
30 32
31 onWheel: event => scrollYear(event) 33 onWheel: event => scrollYear(event)
32 34
33 Text { 35 Item {
34 id: clock 36 anchors.fill: parent
35 color: "white"
36 37
37 anchors.verticalCenter: parent.verticalCenter 38 Text {
39 id: clock
40 color: "white"
38 41
39 Custom.Chrono { 42 anchors.verticalCenter: parent.verticalCenter
40 id: chrono
41 format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}"
42 }
43 43
44 text: chrono.date 44 Custom.Chrono {
45 id: chrono
46 format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}"
47 }
48
49 text: chrono.date
45 50
46 font.pointSize: 10 51 font.pointSize: 10
47 font.family: "Fira Sans" 52 font.family: "Fira Sans"
48 font.features: { "tnum": 1 } 53 font.features: { "tnum": 1 }
54 }
49 } 55 }
50 } 56 }
51 57