Skip to content

Commit a2c4d8b

Browse files
committed
[Linux] Add disconnected indicator
1 parent a3d249f commit a2c4d8b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

linux/Main.qml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,26 @@ ApplicationWindow {
1515
spacing: 20
1616
padding: 20
1717

18+
// Connection status indicator (Apple-like pill shape)
19+
Rectangle {
20+
anchors.horizontalCenter: parent.horizontalCenter
21+
anchors.topMargin: 10
22+
width: 120
23+
height: 24
24+
radius: 12
25+
color: airPodsTrayApp.airpodsConnected ? "#30D158" : "#FF453A"
26+
opacity: 0.8
27+
visible: !airPodsTrayApp.airpodsConnected
28+
29+
Label {
30+
anchors.centerIn: parent
31+
text: airPodsTrayApp.airpodsConnected ? "Connected" : "Disconnected"
32+
color: "white"
33+
font.pixelSize: 12
34+
font.weight: Font.Medium
35+
}
36+
}
37+
1838
// Battery Indicator Row
1939
Row {
2040
anchors.horizontalCenter: parent.horizontalCenter

0 commit comments

Comments
 (0)