summaryrefslogtreecommitdiff
path: root/modules/controlcenter/Session.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/Session.qml')
-rw-r--r--modules/controlcenter/Session.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/controlcenter/Session.qml b/modules/controlcenter/Session.qml
new file mode 100644
index 0000000..0c3f1b4
--- /dev/null
+++ b/modules/controlcenter/Session.qml
@@ -0,0 +1,22 @@
+import Quickshell.Bluetooth
+import QtQuick
+
+QtObject {
+ readonly property list<string> panes: ["network", "bluetooth", "audio"]
+
+ property string active
+ property int activeIndex
+
+ readonly property Bt bt: Bt {}
+
+ 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
+ }
+}