move bluetooth and create popup menu
This commit is contained in:
parent
d7024f3d77
commit
c0125912b1
3 changed files with 48 additions and 7 deletions
30
modules/bar/components/bluetooth/BluetoothMenu.qml
Normal file
30
modules/bar/components/bluetooth/BluetoothMenu.qml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import qs.config
|
||||
import qs.styled
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Bluetooth
|
||||
|
||||
StyledPopupWindow {
|
||||
id: root
|
||||
|
||||
backgroundColor: Theme.palette.base300
|
||||
margins: 8
|
||||
radius: 8
|
||||
|
||||
property BluetoothAdapter defaultAdapter: Bluetooth.defaultAdapter
|
||||
|
||||
content: ColumnLayout {
|
||||
|
||||
RowLayout {
|
||||
StyledText {
|
||||
text: root.defaultAdapter.name
|
||||
}
|
||||
|
||||
Switch {
|
||||
checked: root.defaultAdapter.enabled
|
||||
onClicked: root.defaultAdapter.enabled = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue