21 lines
725 B
QML
21 lines
725 B
QML
import QtQuick
|
|
import "./state"
|
|
|
|
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
|
|
|
|
// Pane-specific state objects
|
|
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]
|
|
}
|