diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-13 16:56:49 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-13 16:56:49 -0500 |
| commit | baa10d6ccfe8ad03a8832c4a43179c21020997ab (patch) | |
| tree | ba74b57591ccc83e5311e4cb89b3d75f8f27e4c4 /modules/controlcenter/dev/DevWindowFactory.qml | |
| parent | controlcenter: wireless debug removal (preparing for rewrite) (diff) | |
| download | caelestia-shell-baa10d6ccfe8ad03a8832c4a43179c21020997ab.tar.gz caelestia-shell-baa10d6ccfe8ad03a8832c4a43179c21020997ab.tar.bz2 caelestia-shell-baa10d6ccfe8ad03a8832c4a43179c21020997ab.zip | |
controlcenter: created dev panel for wireless testing
Diffstat (limited to 'modules/controlcenter/dev/DevWindowFactory.qml')
| -rw-r--r-- | modules/controlcenter/dev/DevWindowFactory.qml | 62 |
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 {} + } + } + } +} + |