native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Tighten shortcut modifier toggle layout

onevcat b5c58e4d 76046bc0

+13 -4
+13 -4
supacode/Features/Settings/Views/RepositorySettingsView.swift
··· 320 320 TextField("Key", text: shortcutKeyBinding(shortcut)) 321 321 .textFieldStyle(.roundedBorder) 322 322 .frame(width: 70) 323 - Toggle("⌘", isOn: shortcut.modifiers.command) 324 - Toggle("⇧", isOn: shortcut.modifiers.shift) 325 - Toggle("⌥", isOn: shortcut.modifiers.option) 326 - Toggle("⌃", isOn: shortcut.modifiers.control) 323 + modifierToggle("⌘", isOn: shortcut.modifiers.command) 324 + modifierToggle("⇧", isOn: shortcut.modifiers.shift) 325 + modifierToggle("⌥", isOn: shortcut.modifiers.option) 326 + modifierToggle("⌃", isOn: shortcut.modifiers.control) 327 327 Spacer(minLength: 0) 328 328 Text(shortcut.wrappedValue.display) 329 329 .font(.caption.monospaced()) ··· 360 360 shortcut.wrappedValue.key = scalar.map { String($0).lowercased() } ?? "" 361 361 } 362 362 ) 363 + } 364 + 365 + private func modifierToggle(_ symbol: String, isOn: Binding<Bool>) -> some View { 366 + HStack(spacing: 4) { 367 + Text(symbol) 368 + Toggle("", isOn: isOn) 369 + .labelsHidden() 370 + } 371 + .fixedSize() 363 372 } 364 373 365 374 private var placeholder: String {