aboutsummaryrefslogtreecommitdiff
path: root/quickshell/items/LowEnergy.qml
diff options
context:
space:
mode:
Diffstat (limited to 'quickshell/items/LowEnergy.qml')
-rw-r--r--quickshell/items/LowEnergy.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/quickshell/items/LowEnergy.qml b/quickshell/items/LowEnergy.qml
new file mode 100644
index 0000000..881ee84
--- /dev/null
+++ b/quickshell/items/LowEnergy.qml
@@ -0,0 +1,27 @@
+import QtQuick
+import QtQuick.Layouts
+
+RowLayout {
+ spacing: 0
+ Text {
+ text: " Low Energy:"
+ color: shellRoot.white
+ font {
+ family: shellRoot.fontFamily
+ pixelSize: shellRoot.fontSize
+ }
+ }
+ Text {
+ text: bluetoothName
+ color: bluetoothName == "Offline" ? shellRoot.red : shellRoot.green
+ font {
+ family: shellRoot.fontFamily
+ pixelSize: shellRoot.fontSize
+ bold: true
+ }
+ }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: bluetoothManagerProc.running = true
+ }
+}