Skip to content

Commit 77eb149

Browse files
committed
Merge pull request AvaloniaUI#7788 from AvaloniaUI/fixes/mica-windows-11-fallback-check
fix mica fallback check.
1 parent 9e12c24 commit 77eb149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Windows/Avalonia.Win32/WindowImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private WindowTransparencyLevel Win10EnableBlur(WindowTransparencyLevel transpar
394394
}
395395
}
396396

397-
if (Win32Platform.WindowsVersion.Major == 10 && effect == BlurEffect.Mica)
397+
if (Win32Platform.WindowsVersion < WinUICompositorConnection.MinHostBackdropVersion && effect == BlurEffect.Mica)
398398
{
399399
effect = BlurEffect.Acrylic;
400400
}

0 commit comments

Comments
 (0)