Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#7788 from AvaloniaUI/fixes/mica-windows…
Browse files Browse the repository at this point in the history
…-11-fallback-check

fix mica fallback check.
  • Loading branch information
danwalmsley committed Mar 11, 2022
1 parent 9e12c24 commit 77eb149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private WindowTransparencyLevel Win10EnableBlur(WindowTransparencyLevel transpar
}
}

if (Win32Platform.WindowsVersion.Major == 10 && effect == BlurEffect.Mica)
if (Win32Platform.WindowsVersion < WinUICompositorConnection.MinHostBackdropVersion && effect == BlurEffect.Mica)
{
effect = BlurEffect.Acrylic;
}
Expand Down

0 comments on commit 77eb149

Please sign in to comment.