Open dotMorten opened 1 year ago
if comment this out, then the theme would not be changed as expected
micaController.ResetProperties()
Inclusion:
The code would not works
BackdropConfiguration.Theme = SystemBackdropTheme.Dark //Or SystemBackdropTheme.Light
The code would not works too
BackdropConfiguration.Theme = SystemBackdropTheme.Dark //Or SystemBackdropTheme.Light
micaController.ResetProperties();
micaController.TintColor = //Your Color
micaController.TintOpacity = //Your TintOpacity
micaController.LuminosityOpacity = //Your LuminosityOpacity
The code would works as expected
BackdropConfiguration.Theme = SystemBackdropTheme.Dark //Or SystemBackdropTheme.Light
micaController.ResetProperties();
@dotMorten I also seem this issue in DesktopAcrylicController not only in MicaController
For DesktopAcrylicController, those bugs would found.
Set TintOpacity property only would not takes effect
//Change TintOpacity only would not takes effect
acrylicController.TintOpacity = //Your TintOpacity
Set TintOpacity and LuminosityOpacity property would takes effect
//Change TintOpacity and LuminosityOpacity would takes effect
acrylicController.TintOpacity = //Your TintOpacity
acrylicController.LuminosityOpacity = //Your LuminosityOpacity
Describe the bug
I want to change my tint opacity of mica when in dark mode. However when I switch darkmode, setting the tint opacity in the
ActualThemeChanged
event causes the entire backdrop to render completely wrong.I also notice that if I delay setting the TintOpacity override, or I don't override it at all, things render just fine.
Steps to reproduce the bug
Expected behavior
Dark mode renders correctly, regardless of if/when
TintOpacity
is applied.Screenshots
https://user-images.githubusercontent.com/1378165/206558721-67555f3f-7894-4541-b0da-71cc4f690023.mp4
NuGet package version
Windows App SDK 1.2.1: 1.2.221116.1
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
Reproduced with 1.1.5, 1.2 preview, and 1.2.221116.1