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

Code Quality: Introduced AppThemeModeService #14068

Closed

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Nov 25, 2023

Summary

This is one of the efforts to migrate static Helpers to singleton Services.

Task Checklist

  • Introduced AppThemeModeService : IAppThemeModeService
  • Removed SettingsViewModel, which had theme changed event handler and has been marked as obslete.

Steps To Validate Changes

  1. Launch the app
  2. See the sections you have expanded are expanded expectedly
  3. Go to Settings dialog
  4. Change theme mode
  5. See theme will be changed both in main app window and dialog

Known Issues

N/A

PR Checklist

  • Development: Related: Code Quality: Improved app theme mode handler #13490
  • Approval: Have discussed with and got approval from the team1
  • Tests: Tested accessibility on the local end
  • Deployment: Deployed the app on the local end
  • Localization: Modified en-US string resources2
  • Co-authors: N/A

Screenshots

N/A

Footnotes

  1. If the request hasn't been agreed by the team, this work might be rejected. Make sure that you get approval from the team before opening any PR related the request.

  2. If you removed any en-US string resources, make sure that there are no references of those resources. When you add a new en-US string resources, do not make any changes on other languages' resources; Crowdin will do that, instead.

{
public enum AppThemeMode
{
Default,
Copy link
Member

Choose a reason for hiding this comment

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

Should this be "System"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have preferences. Would like to rename to System?

Copy link
Member

Choose a reason for hiding this comment

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

As long as we keep the existing user settings

Copy link
Member

Choose a reason for hiding this comment

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

Please add comments

@0x5bfa
Copy link
Member Author

0x5bfa commented Nov 27, 2023

I could not figure out why the tests have kept failing though I unintalled, did clean build, did rebuild and the app worked well.

@0x5bfa 0x5bfa closed this Nov 27, 2023
@0x5bfa 0x5bfa deleted the 5bfa/Add-AppThemeModeService branch November 27, 2023 15:31
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.

2 participants