summaryrefslogtreecommitdiff
path: root/modules/controlcenter/dev/DevWindowFactory.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/dev/DevWindowFactory.qml')
-rw-r--r--modules/controlcenter/dev/DevWindowFactory.qml62
1 files changed, 62 insertions, 0 deletions
diff --git a/modules/controlcenter/dev/DevWindowFactory.qml b/modules/controlcenter/dev/DevWindowFactory.qml
new file mode 100644
index 0000000..5682588
--- /dev/null
+++ b/modules/controlcenter/dev/DevWindowFactory.qml
@@ -0,0 +1,62 @@
+pragma Singleton
+
+import "."
+import qs.components
+import qs.services
+import Quickshell
+import QtQuick
+
+Singleton {
+ id: root
+
+ function create(parent: Item, props: var): void {
+ devControlCenter.createObject(parent ?? dummy, props);
+ }
+
+ QtObject {
+ id: dummy
+ }
+
+ Component {
+ id: devControlCenter
+
+ FloatingWindow {
+ id: win
+
+ property alias active: cc.active
+ property alias navExpanded: cc.navExpanded
+
+ color: Colours.tPalette.m3surface
+
+ onVisibleChanged: {
+ if (!visible)
+ destroy();
+ }
+
+ minimumSize.width: 1000
+ minimumSize.height: 600
+
+ implicitWidth: cc.implicitWidth
+ implicitHeight: cc.implicitHeight
+
+ title: qsTr("Dev Panel - Wireless")
+
+ DevControlCenter {
+ id: cc
+
+ anchors.fill: parent
+ screen: win.screen
+ floating: true
+
+ function close(): void {
+ win.destroy();
+ }
+ }
+
+ Behavior on color {
+ CAnim {}
+ }
+ }
+ }
+}
+