Underline the current server chip; insist on ask_human for choices
This commit is contained in:
@@ -519,7 +519,7 @@ private struct ServerChip: View {
|
||||
.stroke(servers.color(origin))
|
||||
.frame(width: 8, height: 8)
|
||||
Text(serverName(origin))
|
||||
.fontWeight(current || questions > 0 ? .bold : .regular)
|
||||
.fontWeight(current ? .bold : .regular)
|
||||
if questions > 0 {
|
||||
Badge(count: questions)
|
||||
.help("open questions")
|
||||
@@ -541,6 +541,12 @@ private struct ServerChip: View {
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 3)
|
||||
.background(questions > 0 ? Palette.warnTint : current ? Palette.surface : .clear, in: RoundedRectangle(cornerRadius: 6))
|
||||
.overlay(alignment: .bottom) {
|
||||
Rectangle()
|
||||
.fill(current ? servers.color(origin) : .clear)
|
||||
.frame(height: 2)
|
||||
.padding(.horizontal, 8)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
|
||||
Reference in New Issue
Block a user