From bb6717666a669aa81cda28896ed292ca5af55ece Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 16 Mar 2026 17:07:54 -0400 Subject: change things --- modules/controlcenter/WindowFactory.qml | 62 --------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 modules/controlcenter/WindowFactory.qml (limited to 'modules/controlcenter/WindowFactory.qml') diff --git a/modules/controlcenter/WindowFactory.qml b/modules/controlcenter/WindowFactory.qml deleted file mode 100644 index abcf5df..0000000 --- a/modules/controlcenter/WindowFactory.qml +++ /dev/null @@ -1,62 +0,0 @@ -pragma Singleton - -import qs.components -import qs.services -import Quickshell -import QtQuick - -Singleton { - id: root - - function create(parent: Item, props: var): void { - controlCenter.createObject(parent ?? dummy, props); - } - - QtObject { - id: dummy - } - - Component { - id: controlCenter - - FloatingWindow { - id: win - - property alias active: cc.active - property alias navExpanded: cc.navExpanded - - color: Colours.tPalette.m3surface - - onVisibleChanged: { - if (!visible) - destroy(); - } - - implicitWidth: cc.implicitWidth - implicitHeight: cc.implicitHeight - - minimumSize.width: implicitWidth - minimumSize.height: implicitHeight - maximumSize.width: implicitWidth - maximumSize.height: implicitHeight - - title: qsTr("Caelestia Settings - %1").arg(cc.active.slice(0, 1).toUpperCase() + cc.active.slice(1)) - - ControlCenter { - id: cc - - anchors.fill: parent - screen: win.screen - floating: true - - function close(): void { - win.destroy(); - } - } - - Behavior on color { - CAnim {} - } - } - } -} -- cgit v1.2.3-freya