move network/bluetooth refresh + active tracking into applets, fix dock parent.expanded
This commit is contained in:
parent
c96856581d
commit
02910957f1
7 changed files with 11 additions and 9 deletions
|
|
@ -5,6 +5,9 @@ Column {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property color accentColor
|
required property color accentColor
|
||||||
|
property bool active: true
|
||||||
|
onActiveChanged: if (active)
|
||||||
|
S.BluetoothService.refresh()
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: S.BluetoothService.devices
|
model: S.BluetoothService.devices
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@ Column {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property color accentColor
|
required property color accentColor
|
||||||
|
property bool active: true
|
||||||
|
onActiveChanged: if (active)
|
||||||
|
S.NetworkService.refresh()
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: S.NetworkService.networks
|
model: S.NetworkService.networks
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ PanelWindow {
|
||||||
devices: S.SystemStats.tempDevices
|
devices: S.SystemStats.tempDevices
|
||||||
accentColor: root._accent
|
accentColor: root._accent
|
||||||
deviceFilter: S.Modules.temperature.device || ""
|
deviceFilter: S.Modules.temperature.device || ""
|
||||||
active: parent.parent.expanded
|
active: parent.expanded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -296,6 +296,7 @@ PanelWindow {
|
||||||
C.NetworkApplet {
|
C.NetworkApplet {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
accentColor: root._accent
|
accentColor: root._accent
|
||||||
|
active: parent.expanded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -310,6 +311,7 @@ PanelWindow {
|
||||||
C.BluetoothApplet {
|
C.BluetoothApplet {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
accentColor: root._accent
|
accentColor: root._accent
|
||||||
|
active: parent.expanded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,9 +89,10 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Content area
|
// Content area - expanded propagated so children can bind `active: parent.expanded`
|
||||||
Column {
|
Column {
|
||||||
id: _contentColumn
|
id: _contentColumn
|
||||||
|
property bool expanded: root.expanded
|
||||||
anchors.top: _header.bottom
|
anchors.top: _header.bottom
|
||||||
anchors.topMargin: 4
|
anchors.topMargin: 4
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,6 @@ M.BarModule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
on_ShowPanelChanged: if (_showPanel)
|
|
||||||
S.BluetoothService.refresh()
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: S.BluetoothService
|
target: S.BluetoothService
|
||||||
function onDevicesChanged() {
|
function onDevicesChanged() {
|
||||||
|
|
|
||||||
|
|
@ -56,9 +56,6 @@ M.BarModule {
|
||||||
|
|
||||||
readonly property string state: S.NetworkService.state
|
readonly property string state: S.NetworkService.state
|
||||||
|
|
||||||
on_ShowPanelChanged: if (_showPanel)
|
|
||||||
S.NetworkService.refresh()
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: S.NetworkService
|
target: S.NetworkService
|
||||||
function onNetworksChanged() {
|
function onNetworksChanged() {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ shell/applets/PowerApplet.qml: Unqualified access [unqualified]
|
||||||
shell/applets/TemperatureApplet.qml: Unqualified access [unqualified]
|
shell/applets/TemperatureApplet.qml: Unqualified access [unqualified]
|
||||||
shell/applets/VolumeApplet.qml: Unqualified access [unqualified]
|
shell/applets/VolumeApplet.qml: Unqualified access [unqualified]
|
||||||
shell/dock/AppletDock.qml: Could not find property "top". [missing-property]
|
shell/dock/AppletDock.qml: Could not find property "top". [missing-property]
|
||||||
shell/dock/AppletDock.qml: Member "expanded" not found on type "QQuickItem" [missing-property]
|
|
||||||
shell/dock/AppletDock.qml: Type margins is used but it is not resolved [unresolved-type]
|
shell/dock/AppletDock.qml: Type margins is used but it is not resolved [unresolved-type]
|
||||||
shell/dock/AppletDock.qml: Type PanelWindow is not creatable. [uncreatable-type]
|
shell/dock/AppletDock.qml: Type PanelWindow is not creatable. [uncreatable-type]
|
||||||
shell/dock/AppletDock.qml: unknown grouped property scope margins. [unqualified]
|
shell/dock/AppletDock.qml: unknown grouped property scope margins. [unqualified]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue