diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-01 15:12:09 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-01 15:12:09 +0200 |
commit | 85bf62eaa2fd71eb15ef401e537457fb9098a540 (patch) | |
tree | 707e7f4ea5b0d55992eae062ad7ed4795c1105c8 /accounts/gkleen@sif/shell/quickshell/Clock.qml | |
parent | c9b4c6834e390f051e3137a6a45882ea8608ee9d (diff) | |
download | nixos-85bf62eaa2fd71eb15ef401e537457fb9098a540.tar nixos-85bf62eaa2fd71eb15ef401e537457fb9098a540.tar.gz nixos-85bf62eaa2fd71eb15ef401e537457fb9098a540.tar.bz2 nixos-85bf62eaa2fd71eb15ef401e537457fb9098a540.tar.xz nixos-85bf62eaa2fd71eb15ef401e537457fb9098a540.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Clock.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Clock.qml | 30 |
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 | |||
7 | import Quickshell.Widgets | 7 | import Quickshell.Widgets |
8 | 8 | ||
9 | Item { | 9 | Item { |
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 | ||