Comprehensive macOS HIG compliance sweep#635
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Full macOS Human Interface Guidelines compliance sweep across 67 files, covering 5 categories:
1. System semantic colors (~46 instances, 30 files)
.foregroundStyle(.red/.green/.orange/.yellow/.blue/.purple)withColor(nsColor: .systemRed)etc.Color.whitewithColor(nsColor: .alternateSelectedControlTextColor)in VimModeIndicatorView2. Accessibility labels + hit targets + popover escape (~20 instances, 15 files)
.accessibilityLabel(String(localized:))to 15 icon-only buttons (font steppers, trash, clear, dismiss).frame(width: 24, height: 24)to 4 buttons with inadequate hit targets.onExitCommandto SafeModeBadgeView and PaginationControlsView popovers.onTapGesturewithButtonfor keyboard/VoiceOver support3. Font sizes → theme tokens (53 instances, 23 files)
.font(.system(size: 10/11/12/13/15))withThemeEngine.shared.activeTheme.typography.*4. Corner radius → theme tokens (32 instances, 19 files)
.cornerRadius()→.clipShape(RoundedRectangle(...))cornerRadius: 4/6/8with themecornerRadius.small/medium/large5. Localize strings (30 instances, 12 files)
.help("...")tooltips withString(localized:).alert("...")/TextField("...")stringsTest plan