macos: change tab color label to circle

pull/9784/head
Mitchell Hashimoto 2025-12-11 14:12:24 -08:00
parent 6332fb5c01
commit 2331e17835
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 5 additions and 5 deletions

View File

@ -644,7 +644,7 @@ extension TerminalWindow {
}
/// A pill-shaped visual indicator displayed in the tab accessory view that shows
/// A small circle indicator displayed in the tab accessory view that shows
/// the user-assigned tab color. When no color is set, the view is hidden.
private struct TabColorIndicatorView: View {
/// The tab color to display.
@ -652,13 +652,13 @@ private struct TabColorIndicatorView: View {
var body: some View {
if let color = tabColor.displayColor {
Capsule()
Circle()
.fill(Color(color))
.frame(width: 12, height: 4)
.frame(width: 6, height: 6)
} else {
Capsule()
Circle()
.fill(Color.clear)
.frame(width: 12, height: 4)
.frame(width: 6, height: 6)
.hidden()
}
}