summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Bluetooth.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/popouts/Bluetooth.qml')
-rw-r--r--modules/bar/popouts/Bluetooth.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml
new file mode 100644
index 0000000..ad7d087
--- /dev/null
+++ b/modules/bar/popouts/Bluetooth.qml
@@ -0,0 +1,18 @@
+import "root:/widgets"
+import "root:/services"
+import "root:/config"
+import QtQuick
+
+Column {
+ id: root
+
+ spacing: Appearance.spacing.normal
+
+ StyledText {
+ text: qsTr("Bluetooth %1").arg(Bluetooth.powered ? "enabled" : "disabled")
+ }
+
+ StyledText {
+ text: Bluetooth.devices.some(d => d.connected) ? qsTr("Connected to: %1").arg(Bluetooth.devices.filter(d => d.connected).map(d => d.alias).join(", ")) : qsTr("No devices connected")
+ }
+}