diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-19 13:48:06 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-19 13:48:06 -0500 |
| commit | 1c523240d84edc8a947d0063e3b9a707b6d818c0 (patch) | |
| tree | 0e6c4c4c14a011980dffbe1eaf849a2d3ba6aa35 /modules/controlcenter/state | |
| parent | controlcenter: correcting margins/padding after refactor (diff) | |
| download | caelestia-shell-1c523240d84edc8a947d0063e3b9a707b6d818c0.tar.gz caelestia-shell-1c523240d84edc8a947d0063e3b9a707b6d818c0.tar.bz2 caelestia-shell-1c523240d84edc8a947d0063e3b9a707b6d818c0.zip | |
refactor: added state module
Diffstat (limited to 'modules/controlcenter/state')
| -rw-r--r-- | modules/controlcenter/state/BluetoothState.qml | 18 | ||||
| -rw-r--r-- | modules/controlcenter/state/EthernetState.qml | 9 | ||||
| -rw-r--r-- | modules/controlcenter/state/LauncherState.qml | 9 | ||||
| -rw-r--r-- | modules/controlcenter/state/NetworkState.qml | 13 |
4 files changed, 49 insertions, 0 deletions
diff --git a/modules/controlcenter/state/BluetoothState.qml b/modules/controlcenter/state/BluetoothState.qml new file mode 100644 index 0000000..db8c7e1 --- /dev/null +++ b/modules/controlcenter/state/BluetoothState.qml @@ -0,0 +1,18 @@ +import Quickshell.Bluetooth +import QtQuick + +QtObject { + id: root + + // Active selected device + property BluetoothDevice active: null + + // Current adapter being used + property BluetoothAdapter currentAdapter: Bluetooth.defaultAdapter + + // UI state flags + property bool editingAdapterName: false + property bool fabMenuOpen: false + property bool editingDeviceName: false +} + diff --git a/modules/controlcenter/state/EthernetState.qml b/modules/controlcenter/state/EthernetState.qml new file mode 100644 index 0000000..25b243a --- /dev/null +++ b/modules/controlcenter/state/EthernetState.qml @@ -0,0 +1,9 @@ +import QtQuick + +QtObject { + id: root + + // Active selected ethernet interface + property var active: null +} + diff --git a/modules/controlcenter/state/LauncherState.qml b/modules/controlcenter/state/LauncherState.qml new file mode 100644 index 0000000..cd9eeb6 --- /dev/null +++ b/modules/controlcenter/state/LauncherState.qml @@ -0,0 +1,9 @@ +import QtQuick + +QtObject { + id: root + + // Active selected application + property var active: null +} + diff --git a/modules/controlcenter/state/NetworkState.qml b/modules/controlcenter/state/NetworkState.qml new file mode 100644 index 0000000..651a35c --- /dev/null +++ b/modules/controlcenter/state/NetworkState.qml @@ -0,0 +1,13 @@ +import QtQuick + +QtObject { + id: root + + // Active selected wireless network + property var active: null + + // Password dialog state + property bool showPasswordDialog: false + property var pendingNetwork: null +} + |