Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FXIOS-9165 - Updated Fonts On SettingsViewController to FXFontStyles #20323

Merged

Conversation

tisumi99
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

💡 Description

Updated the settings views to use FXFontsStyle instead of DefaultDynamicFontHelper or UIFont. This eliminates the need to specify font sizes in the view controllers.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@tisumi99 tisumi99 requested a review from a team as a code owner May 17, 2024 17:55
@tisumi99 tisumi99 requested a review from thatswinnie May 17, 2024 17:55
@tisumi99
Copy link
Contributor Author

tisumi99 commented May 17, 2024

Screenshot 2024-05-17 at 10 56 11 AM

Screenshot 2024-05-19 at 12 07 34 PM

Screenshot 2024-05-19 at 12 08 00 PM

@tisumi99
Copy link
Contributor Author

I updated the PR so that there are no changes to the UI now. Was previously matching the orginal font style and FXFontStyles had a different size in some cases. Now matching to font size instead.

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented May 19, 2024

Warnings
⚠️ Variable 'crossCircleFill' in Medium is out of alphabetical order.
⚠️ Variable 'cross' in Medium is out of alphabetical order.
Messages
📖 Project coverage: 32.54%
📖 Edited 3 files
📖 Created 0 files

Client.app: Coverage: 31.2

File Coverage
ContentBlockerSettingViewController.swift 7.42% ⚠️
SettingsTableViewController.swift 25.95% ⚠️
ThemeSettingsController.swift 36.51% ⚠️

Generated by 🚫 Danger Swift against a5ed831

@cyndichin cyndichin requested review from cyndichin and removed request for thatswinnie May 20, 2024 13:37
@cyndichin
Copy link
Contributor

I updated the PR so that there are no changes to the UI now. Was previously matching the orginal font style and FXFontStyles had a different size in some cases. Now matching to font size instead.

thanks for the details @tisumi99, will let you know if any issues in matching the font size.

@cyndichin cyndichin requested a review from cwzilla May 20, 2024 13:38
Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for picking up the standardize font tickets and providing screenshots @tisumi99! this helps greatly, appreciate it :)

@cyndichin cyndichin merged commit 71116e8 into mozilla-mobile:main May 23, 2024
8 of 10 checks passed
@tisumi99 tisumi99 deleted the 20308SettingsViewControllerFXFontStyles branch May 23, 2024 16:47
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.

None yet

4 participants