import SwiftUI struct KeyCapView: View { let token: ShortcutKeyToken @Environment(\.colorSchemeContrast) private var contrast var body: some View { Text(token.glyph) .font(.body) .padding(.horizontal, 6) .padding(.vertical, 3) .background(.quaternary, in: .rect(cornerRadius: 5)) .overlay { RoundedRectangle(cornerRadius: 5) .strokeBorder( Color.primary.opacity(contrast == .increased ? 1 : 0.3), lineWidth: contrast == .increased ? 2 : 0.5) } .accessibilityLabel(token.accessibilityLabel) } }