-
-
Notifications
You must be signed in to change notification settings - Fork 39
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: DarkTintOpacity
breaks mica backdrop on dark mode
#91
Comments
Something SUPER funky is going on here. WinUIEx/src/WinUIEx/SystemBackdrop.cs Line 374 in ceacf87
it's not an issue. As I'm stepping through it, I notice the default Mica values are changing mid-debugging. If I delay the call of this method a few 100 ms, the issue goes away too (but that is error prone and also looks terrible). It's called from the
It's like WinAppSDK doesn't like some properties to get changed right after a theme change, but considering you'd likely want different backdrop settings for light and dark mode, this is the time to do it. @ChewWorker @codendone @BenJKuhn Any thoughts on this? Are we not supposed to update backdrop values in the theme changed event? |
WinAppSDK bug. Logged: microsoft/microsoft-ui-xaml#10212 |
Closing now that backdrop APIs are in Windows App SDK and deprecated in WinUIEx |
@dotMorten thank you for your work on this issue! |
Description
Modifying the
DarkTintOpacity
causes mica to be applied incorrectly on dark mode.Steps to repro
MicaSystemBackdrop
in xaml and change theDarkTintOpacity
value. This issue is only present when you set a customDarkTintOpacity
.Screenshot
Version
This issue was introduced in v2.0
The text was updated successfully, but these errors were encountered: