Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Xicrosoft
Copy link
Contributor

@Xicrosoft Xicrosoft commented Jun 16, 2025

This pull request focuses on replacing emoji-based UI elements with SF Symbols for better consistency and accessibility across the application, along with some minor refactoring and enhancements. The most significant changes include updating various components to use Image(systemName:) for icons, introducing a reusable ToggleLabel component, and adding a preview for the PromotionBadge component.
fixed #26

UI Updates with SF Symbols:

  • Replaced emoji icons with SF Symbols in the BrowserRuleEditView, using Image(systemName:) for the "Hide Indicator" toggle.
  • Updated BrowserRuleRow to use SF Symbols for "Hide Indicator" and keyboard restore strategy icons, with dynamic colors based on the symbol type.
  • Modified PromotionBadge buttons to use Label with SF Symbols for "Share with friends," "Star on GitHub," and "Sponsor" actions. Added a preview for the badge.

Component Enhancements:

  • Introduced a new ToggleLabel component in RulesApplicationDetail.swift for consistent label formatting with icons and text.
  • Updated ApplicationDetail to use Image(systemName:) for keyboard restore strategy and "Hide Indicator" toggles, replacing emojis. [1] [2] [3]

Refactoring:

  • Replaced the emoji property in KeyboardRestoreStrategy with a systemImageName property to align with the SF Symbols migration.
  • Updated ApplicationPicker to use SF Symbols for various indicators such as "Hide Indicator," "Enhanced Mode Prompt," and keyboard restore states.

Asset Update:

  • Updated the FakeDesktop.imageset asset to use Sequoia Graphic.png instead of Monterey Graphic.jpg.

Updates the UI to use SF Symbols instead of emojis for improved visual consistency.
Adds canvas preview support to PromotionBadge.
…oggle labels

Enhances UI with system images for clarity
Replaces text-based symbols with system images in the UI to improve clarity and visual consistency.
This change affects the "Hide Indicator" toggle and keyboard restore strategy options, providing a more intuitive user experience.
@runjuu
Copy link
Owner

runjuu commented Jun 17, 2025

Awesome!

@runjuu runjuu merged commit dadcbc3 into runjuu:main Jun 17, 2025
@Xicrosoft Xicrosoft deleted the refactor/emoji-to-sf-symbol branch June 18, 2025 13:19
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.

Replace emojis with SF Symbols for consistent visuals

2 participants