summaryrefslogtreecommitdiff
path: root/modules/controlcenter/WindowFactory.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
committerFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
commitbb6717666a669aa81cda28896ed292ca5af55ece (patch)
tree5f3c5fed20fd3bf8fe38e10d7e09b81558c64a79 /modules/controlcenter/WindowFactory.qml
parentadd date to clock (diff)
downloadcaelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.gz
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.bz2
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.zip
change things
Diffstat (limited to 'modules/controlcenter/WindowFactory.qml')
-rw-r--r--modules/controlcenter/WindowFactory.qml62
1 files changed, 0 insertions, 62 deletions
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 {}
- }
- }
- }
-}