lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.33k stars 707 forks source link

The Mica [Light] Theme Not working properly #621

Open FastChen opened 1 year ago

FastChen commented 1 year ago

Describe the bug

i build Test 2.0.3 version DEMO and 3.0 WPF UI Gallery the Mica【Light】Theme They are all not working properly on Win11 22H2 22621.1555 But the【Dark】Theme is work normal

To Reproduce

Create A Mica Style Window and Switch To Light Theme

private void NavigationButtonTheme_OnClick(object sender, RoutedEventArgs e)
{
      Wpf.Ui.Appearance.Theme.Apply(Theme.GetAppTheme() == Wpf.Ui.Appearance.ThemeType.Dark ? Wpf.Ui.Appearance.ThemeType.Light : Wpf.Ui.Appearance.ThemeType.Dark, Wpf.Ui.Appearance.BackgroundType.Mica);
}

i try BackgroundType.AutoBackgroundType.None they will only make more worse

Expected behavior

Should work be like dark theme.

Screenshots

dark light

OS version

Win11 22H2 22621.1555

.NET version

2.0.3 - net6.0-windows10.0.22000.0 3.0 - net7.0-windows10.0.22621.0

WPF-UI NuGet version

2.0.3 and 3.0

Additional context

No response

niels9001 commented 9 months ago

@FastChen Could you try this on the latest preview (preview-10)?

FastChen commented 9 months ago

@FastChen Could you try this on the latest preview (preview-10)?

I don't have that virtual win11 machine now, but there is no problem with the latest version win11 machine.

Jay-o-Way commented 2 months ago

Hey @lepoco, @pomianowski - You have a couple of issues regarding the Mica effect and theme switching. Might be a few duplicates, but would you be so kind to look into these issues? I see a lot of comments in different repositories about them. Thanks!

pomianowski commented 2 months ago

Hey @Jay-o-Way, the @Muniwedesu, tried to address some of the backdrop issues here https://github.com/lepoco/wpfui/pull/1094