blob: 73cdc8089b3e89ad2abed26774209829d12a7f13 (
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
53
54
55
56
57
58
59
|
import ".."
import "../.."
import qs.components
import qs.config
import Quickshell
import QtQuick
import Quickshell.Hyprland
IPopup {
id: root
anchors.top: true
anchors.left: true
name: "quickshell::CC"
implicitWidth: Global.ccProp.x
implicitHeight: Global.ccProp.y + CC.height * 2 + Bar.topMargin * 2
aboveWindows: true
exclusionMode: ExclusionMode.Ignore
mask: Region {
item: rect
}
IRect {
id: rect
x: Global.ccProp.x - CC.width
y: Bar.height + Bar.topMargin * 2
width: CC.width
height: CC.height
color: Qt.rgba(Colors.background1.r, Colors.background1.g, Colors.background1.b, CC.bgTransparency)
radius: CC.borderRadius
anchors.margins: 560
IRect {
id: container
color: "transparent"
anchors {
fill: parent
margins: CC.innerMargin
}
IText {
text: "hiasdfkjhadslkfasdjkflhj"
}
}
}
HyprlandFocusGrab {
active: true
windows: [root]
onCleared: {
parentLoader.active = false; // or active = true again
}
}
}
|