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

Update ThemeSelectorService to use ThemeListener #20

Open
LeftTwixWand opened this issue Sep 27, 2022 · 0 comments
Open

Update ThemeSelectorService to use ThemeListener #20

LeftTwixWand opened this issue Sep 27, 2022 · 0 comments
Labels
enhancement New feature or request layer/infrastructure Means some changes in the Infrastructure layer layer/presentation Means some changes in the Presentation layer

Comments

@LeftTwixWand
Copy link
Owner

Now the application toolbar is manually extended to match the Windows 11 style system.
But every time the theme has changed, we have to apply the toolbar style manually:
image

To avoid the code-behind, we can use the ThemeListener from the Community Toolkit to subscribe for the system theme change (if application theme is default) and handle it automatically in the separate service.

@LeftTwixWand LeftTwixWand added enhancement New feature or request layer/presentation Means some changes in the Presentation layer layer/infrastructure Means some changes in the Infrastructure layer labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request layer/infrastructure Means some changes in the Infrastructure layer layer/presentation Means some changes in the Presentation layer
Projects
None yet
Development

No branches or pull requests

1 participant