add Bluetooth to quickshell bar
This commit is contained in:
@ -65,6 +65,10 @@ PanelWindow {
|
||||
NetworkStatus {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
BluetoothControl {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClickedLeft: root.activePopup = root.activePopup === "bluetooth" ? "" : "bluetooth"
|
||||
}
|
||||
VolumeControl {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClickedLeft: root.activePopup = root.activePopup === "mixer" ? "" : "mixer"
|
||||
@ -118,6 +122,28 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
// ── Bluetooth popup ───────────────────────────────────────────────
|
||||
PopoutWindow {
|
||||
id: btPopup
|
||||
popupName: "bluetooth"
|
||||
activePopup: root.activePopup
|
||||
|
||||
anchor.window: root
|
||||
anchor.rect.y: root.implicitHeight - root.bw - Theme.radius
|
||||
readonly property real pw: Math.max(rightRow.width + 2 * root.pad,
|
||||
btContent.implicitWidth + 2 * root.bw)
|
||||
anchor.rect.x: root.width - pw
|
||||
|
||||
implicitWidth: pw
|
||||
implicitHeight: btContent.implicitHeight + root.bw + Theme.radius
|
||||
|
||||
BluetoothContent {
|
||||
id: btContent
|
||||
anchors { left: parent.left; right: parent.right }
|
||||
scanning: btPopup._open
|
||||
}
|
||||
}
|
||||
|
||||
// ── Volume mixer popup ────────────────────────────────────────────
|
||||
PopoutWindow {
|
||||
popupName: "mixer"
|
||||
|
||||
Reference in New Issue
Block a user