From baa10d6ccfe8ad03a8832c4a43179c21020997ab Mon Sep 17 00:00:00 2001 From: ATMDA Date: Thu, 13 Nov 2025 16:56:49 -0500 Subject: controlcenter: created dev panel for wireless testing --- modules/controlcenter/dev/DevWindowFactory.qml | 62 ++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 modules/controlcenter/dev/DevWindowFactory.qml (limited to 'modules/controlcenter/dev/DevWindowFactory.qml') 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 {} + } + } + } +} + -- cgit v1.2.3-freya