mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 02:25:20 +00:00
Replace RSSI dot with radio wave icon in sidebar
This commit is contained in:
@@ -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")")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user