-
Notifications
You must be signed in to change notification settings - Fork 455
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
[Bug] Accent Color and System Theme changes are not updated in Packaged WPF apps #175
Comments
Thanks for reporting. I'll look into it. |
The cause seems to be |
Yep, calling How can You can clone the I thought there were problems with the OSVersionHelper & packaging. |
Yes, I'm fairly certain |
Weird!!! There seems to be many issues with WinRT event triggering in .NET. Even an important API our app depends on (GSMTC) has this same problem. What should we do then? How does the API work fine on unpackaged apps then? |
Yep! It's what you say 😅. |
I guess I will need to do another workaround
I already have a method to watch "SystemUsesLightTheme" so it will be relatively easy for me to workaround this until you find a way to fix this. (Referrence : SystemTheme.cs) |
Fixed by 57b71b4. |
Thanks @Kinnara! |
Hey @Kinnara, a suggestion While committing a fix regarding a issue, you can use the It saves me a lot of time. Would be helpful for you maintaining a repo efficiently |
This could be similar to #143. But this is an entirely different case.
There was an attempt to remove the
app.manifest
requirement (previously a mandatory need to detect the OS version) in 2c27fba. Despite removing theapp.manifest
requirement the bug has occurred to me (and I do have app manifest)When the app is executed as an unpackaged application, there are no problems with theme/accent changes.
But when the same app is executed as a packaged (MSIX) application, the accent-color/system-theme changes are not perceived by the packaged application.
I can assure that this bug doesn't happen when the app is unpackaged.
Workaround
I used Reflection to invoke this internal methodThis won't work see #175 (comment)The text was updated successfully, but these errors were encountered: