Replace RSSI dot with radio wave icon in sidebar

This commit is contained in:
jack
2025-07-16 00:49:06 +02:00
parent 92a8bab411
commit 17e96e9993
+3 -3
View File
@@ -1043,9 +1043,9 @@ struct ContentView: View {
.foregroundColor(Color.orange) .foregroundColor(Color.orange)
.accessibilityLabel("Unread message from \(displayName)") .accessibilityLabel("Unread message from \(displayName)")
} else { } else {
Circle() Image(systemName: "radiowaves.left")
.fill(viewModel.getRSSIColor(rssi: rssi, colorScheme: colorScheme)) .font(.system(size: 12))
.frame(width: 8, height: 8) .foregroundColor(viewModel.getRSSIColor(rssi: rssi, colorScheme: colorScheme))
.accessibilityLabel("Signal strength: \(rssi > -60 ? "excellent" : rssi > -70 ? "good" : rssi > -80 ? "fair" : "poor")") .accessibilityLabel("Signal strength: \(rssi > -60 ? "excellent" : rssi > -70 ? "good" : rssi > -80 ? "fair" : "poor")")
} }