blob: 6f560f5e5656c738287b93b82de1b02c68080a65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
import Quickshell.Bluetooth
import QtQuick
QtObject {
readonly property list<string> panes: ["network", "bluetooth", "audio", "appearance", "taskbar", "launcher"]
required property var root
property bool floating: false
property string active: "network"
property int activeIndex: 0
property bool navExpanded: false
readonly property Bt bt: Bt {}
readonly property Network network: Network {}
readonly property Ethernet ethernet: Ethernet {}
readonly property Launcher launcher: Launcher {}
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
}
component Network: QtObject {
property var active
property bool showPasswordDialog: false
property var pendingNetwork
}
component Ethernet: QtObject {
property var active
}
component Launcher: QtObject {
property var active
}
}
|