-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.qml
More file actions
110 lines (96 loc) · 2.55 KB
/
shell.qml
File metadata and controls
110 lines (96 loc) · 2.55 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//@ pragma UseQApplication
import QtQuick
import QtQuick.Shapes
import Quickshell
import Quickshell.Io
import Quickshell.Services.UPower
import "."
PanelWindow {
id: root
MouseArea {
id: mouseArea
anchors {
top: parent.top
left: parent.left
bottom: parent.bottom
}
width: parent.width / 4
hoverEnabled: true
onEntered: { strataContainer.visible = true }
onExited: { strataContainer.tryExit() }
}
anchors {
top:true
right:true
left:true
}
FontLoader {
id: helldiverRegular
source: "Helldiver_regular.otf"
}
color: "#00000000"
implicitHeight: Etc.factor + Etc.margin * 2
focusable: true
Rectangle {
anchors.fill: parent
color: "transparent"
focus: true
HealthBar {
id: healthBar
length: 8 * Etc.factor
labelColor: "white"
x: playerLabel.width + Etc.factor
}
PlayerLabel {
id: playerLabel
x: Etc.margin
}
Keys.onPressed: (event) => {
strataContainer.keyHandler(event);
}
Stratagems {
id: strataContainer
anchor.window: root
anchor.rect.y: root.height + 1.4 * Etc.factor
anchor.rect.x: 1.72 * Etc.factor
}
Stim {
x: playerLabel.width + healthBar.width + 2 * Etc.factor
}
Button {
x: root.width / 2 - width / 2
labelHeight: workspaces.height
labelWidth: workspaces.width
height: Etc.factor
Workspaces {
id: workspaces
}
}
Button {
x: root.width - width - Etc.margin * 2 - clock.width
labelHeight: tray.height
labelWidth: tray.width
height: Etc.factor
Tray {
rootWindow: root
id: tray
}
}
Button {
id: clock
x: root.width - width - Etc.margin
labelHeight: buttonLabel.height
labelWidth: buttonLabel.width
height: Etc.factor
Text {
id: buttonLabel
text: Time.time
color: "white"
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2 + height * 0.05
font.pointSize: Etc.factor / 2
font.family: helldiverRegular.font.family
}
}
}
}