-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
Switching theme loses transparency #1163
Comments
Ah that's what I was noticing. I did notice a slight color change but wasn't really sure about it because I used TeamViewer and colors are strange there anyway. Can confirm! |
I facing same problem when using latest version |
Update: Backdrop changing works fine if you instead of using ApplicationThemeManager.Apply() bind the windows WindowBackdropType property (change notification needed)
|
My private void UpdateWPFUITheme(bool darkMode) {
ApplicationTheme theme = darkMode ? ApplicationTheme.Dark : ApplicationTheme.Light;
Window? mainWindow = UiApplication.Current.MainWindow;
UiApplication.Current.MainWindow = null;
ApplicationThemeManager.Apply(theme, Wpf.Ui.Controls.WindowBackdropType.None, false);
UiApplication.Current.MainWindow = mainWindow;
} |
Describe the bug
When switching light to dark (or other way around) mica or acrylic transparency is lost.
To Reproduce
Can be tried on simple demo (https://github.com/lepoco/wpfui/tree/main/src/Wpf.Ui.Demo.Simple/)
Expected behavior
Theme should remain transparent
Screenshots
OS version
Windows 11 Pro
Version 23H2
OS-version 22631.3880
Windows Feature Experience Pack 1000.22700.1020.0
.NET version
net 8.0, SDK 9 preview
WPF-UI NuGet version
3.0.4
Additional context
No response
The text was updated successfully, but these errors were encountered: