diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-08-29 23:06:55 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-08-29 23:06:55 +0200 |
commit | c3a8a171734bfeced58f4611365e85a6daed7db9 (patch) | |
tree | 235296a43af10ce96b5dd74e0523e59f4c1a8b12 /accounts/gkleen@sif/shell/quickshell/Bar.qml | |
parent | 218ac55d86ee49d151c0ba2dfbca6da104c66703 (diff) | |
download | nixos-quickshell.tar nixos-quickshell.tar.gz nixos-quickshell.tar.bz2 nixos-quickshell.tar.xz nixos-quickshell.zip |
...quickshell
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Bar.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml new file mode 100644 index 00000000..b7235a61 --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
@@ -0,0 +1,81 @@ | |||
1 | import Quickshell | ||
2 | import Quickshell.Io | ||
3 | import Custom as Custom | ||
4 | import QtQuick | ||
5 | |||
6 | |||
7 | PanelWindow { | ||
8 | property var modelData | ||
9 | |||
10 | anchors { | ||
11 | bottom: true | ||
12 | left: true | ||
13 | right: true | ||
14 | } | ||
15 | margins { | ||
16 | left: 26 + 8 | ||
17 | right: 26 + 8 | ||
18 | } | ||
19 | |||
20 | screen: modelData | ||
21 | implicitHeight: 21 | ||
22 | color: Qt.rgba(0, 0, 0, 0.66) | ||
23 | |||
24 | Row { | ||
25 | id: left | ||
26 | |||
27 | height: parent.height | ||
28 | anchors.left: parent.left | ||
29 | anchors.leftMargin: 8 | ||
30 | anchors.verticalCenter: parent.verticalCenter | ||
31 | spacing: 5 | ||
32 | |||
33 | Text { | ||
34 | color: "white" | ||
35 | anchors.verticalCenter: parent.verticalCenter | ||
36 | text: "left" | ||
37 | } | ||
38 | } | ||
39 | |||
40 | Row { | ||
41 | id: center | ||
42 | |||
43 | height: parent.height | ||
44 | anchors.centerIn: parent | ||
45 | spacing: 5 | ||
46 | |||
47 | Text { | ||
48 | color: "white" | ||
49 | anchors.verticalCenter: parent.verticalCenter | ||
50 | text: "center" | ||
51 | } | ||
52 | } | ||
53 | |||
54 | Row { | ||
55 | id: right | ||
56 | |||
57 | height: parent.height | ||
58 | anchors.right: parent.right | ||
59 | anchors.rightMargin: 8 | ||
60 | anchors.verticalCenter: parent.verticalCenter | ||
61 | spacing: 5 | ||
62 | |||
63 | Text { | ||
64 | id: clock | ||
65 | color: "white" | ||
66 | |||
67 | anchors.verticalCenter: parent.verticalCenter | ||
68 | |||
69 | Custom.Chrono { | ||
70 | id: chrono | ||
71 | format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}" | ||
72 | } | ||
73 | |||
74 | text: chrono.date | ||
75 | |||
76 | font.pointSize: 10 | ||
77 | font.family: "Fira Sans" | ||
78 | font.features: { "tnum": 1 } | ||
79 | } | ||
80 | } | ||
81 | } \ No newline at end of file | ||