summaryrefslogtreecommitdiff
path: root/.config/quickshell/Wall.qml
blob: fc47161dd8700851b8b03e8881cc3a55e427cc85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import Quickshell
import QtQuick
import QtQuick.Layouts

Variants {
	model: Quickshell.screens;

	delegate: Component {
		PanelWindow {
			id: root

			required property var modelData
			screen: modelData

			property string fontFamily: "Poppins"
			property int fontSize: 14

			anchors {
				top: true
				bottom: true
				left: true
				right: true
			}
			aboveWindows: false

			color: "transparent"

			ColumnLayout {
				x: 32
				y: 80

				Text {
					text: Qt.formatDateTime(Time.time, "hh:mm")
					color: Flexoki.bg
					font { family: root.fontFamily; weight: 800; pixelSize: root.fontSize * 7 }
				}

				Text {
					text: Qt.formatDateTime(Time.time, "MMMM d, yyyy")
					color: Flexoki.bg
					font { family: root.fontFamily; weight: 300; pixelSize: root.fontSize * 2.25 }
				}

				Text {
					text: Uptime.uptime
					color: Flexoki.bg
					font { family: root.fontFamily; weight: 300; pixelSize: root.fontSize * 1.75 }
				}
			}
		}
	}
}