Skip to content

Use SF Symbol for clear button#87

Merged
Econa77 merged 1 commit into
masterfrom
sf-symbol-clear-button
Jun 12, 2026
Merged

Use SF Symbol for clear button#87
Econa77 merged 1 commit into
masterfrom
sf-symbol-clear-button

Conversation

@Econa77

@Econa77 Econa77 commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

Replace the custom clear button drawing with an AppKit NSButton that uses the xmark.circle.fill SF Symbol. The button now uses semantic tinting through tertiaryLabelColor, so it follows system appearance changes instead of relying on fixed RGB colors.

This also removes the now-unused custom ClearButton class and color extension, and updates the Xcode project source list accordingly.

Impact

The clear button keeps the same role in RecordView while relying on system-provided symbol rendering. This reduces custom drawing code and improves dark mode behavior.

Checked locally with swift build and xcodebuild -project Lib/KeyHolder.xcodeproj -scheme KeyHolder -configuration Debug -derivedDataPath /private/tmp/KeyHolderDerivedData build.

@Econa77 Econa77 marked this pull request as ready for review June 12, 2026 08:14
@Econa77 Econa77 merged commit 8d0ba80 into master Jun 12, 2026
14 checks passed
@Econa77 Econa77 deleted the sf-symbol-clear-button branch June 12, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant