summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Bluetooth.qml
blob: ad7d087cb11fc675fe7e2678bab4cbeada0cd070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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")
    }
}