summaryrefslogtreecommitdiff
path: root/popups
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-04 18:12:25 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-04 18:12:25 +0800
commitcc70dc5e0e7f9444c4ae1a5c6cd3d9300b2c3ae3 (patch)
treee58e181c580ee4c9a7f01e326e5bf90ed8282fa3 /popups
parent1aed1c0b13fb5a7e3ec2f19b9ef1403623d18123 (diff)
basic stepping stone
Diffstat (limited to 'popups')
-rw-r--r--popups/CC/CC.qml59
1 files changed, 59 insertions, 0 deletions
diff --git a/popups/CC/CC.qml b/popups/CC/CC.qml
new file mode 100644
index 0000000..73cdc80
--- /dev/null
+++ b/popups/CC/CC.qml
@@ -0,0 +1,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
+ }
+ }
+}