summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Session.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-01-03 17:53:06 +1100
committerGitHub <noreply@github.com>2026-01-03 17:53:06 +1100
commitbdcd13222fc6edc77c779a396900ab909e7d5439 (patch)
treef9457f3c91c05ec852f974f239d06aca52a3918e /modules/controlcenter/Session.qml
parent[CI] chore: update flake (diff)
parentMerge branch 'caelestia-dots:main' into main (diff)
downloadcaelestia-shell-bdcd13222fc6edc77c779a396900ab909e7d5439.tar.gz
caelestia-shell-bdcd13222fc6edc77c779a396900ab909e7d5439.tar.bz2
caelestia-shell-bdcd13222fc6edc77c779a396900ab909e7d5439.zip
Merge pull request #906 from atdma/main
controlcenter: many setting panes and minor features
Diffstat (limited to 'modules/controlcenter/Session.qml')
-rw-r--r--modules/controlcenter/Session.qml20
1 files changed, 8 insertions, 12 deletions
diff --git a/modules/controlcenter/Session.qml b/modules/controlcenter/Session.qml
index a143470..0408a1a 100644
--- a/modules/controlcenter/Session.qml
+++ b/modules/controlcenter/Session.qml
@@ -1,25 +1,21 @@
-import Quickshell.Bluetooth
import QtQuick
+import "./state"
+import qs.modules.controlcenter
QtObject {
- readonly property list<string> panes: ["network", "bluetooth", "audio"]
+ readonly property list<string> panes: PaneRegistry.labels
required property var root
property bool floating: false
- property string active: panes[0]
+ property string active: "network"
property int activeIndex: 0
property bool navExpanded: false
- readonly property Bt bt: Bt {}
+ readonly property BluetoothState bt: BluetoothState {}
+ readonly property NetworkState network: NetworkState {}
+ readonly property EthernetState ethernet: EthernetState {}
+ readonly property LauncherState launcher: LauncherState {}
onActiveChanged: activeIndex = panes.indexOf(active)
onActiveIndexChanged: active = panes[activeIndex]
-
- component Bt: QtObject {
- property BluetoothDevice active
- property BluetoothAdapter currentAdapter: Bluetooth.defaultAdapter
- property bool editingAdapterName
- property bool fabMenuOpen
- property bool editingDeviceName
- }
}