From 95e603e69d02688770eddada371789de71fa9067 Mon Sep 17 00:00:00 2001 From: ema Date: Fri, 10 Apr 2026 02:42:07 +0800 Subject: [PATCH] GlassFrameThickness must be set to 0 when Acrylic10 --- QuickLook/ViewerWindow.xaml.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/QuickLook/ViewerWindow.xaml.cs b/QuickLook/ViewerWindow.xaml.cs index cae8a8f..e0b998c 100644 --- a/QuickLook/ViewerWindow.xaml.cs +++ b/QuickLook/ViewerWindow.xaml.cs @@ -263,7 +263,7 @@ public partial class ViewerWindow : Window { var acrylicTint = GetAcrylicTintColor(); - WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(1d); + WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(0d); WindowHelper.EnableAcrylicBlur(this, acrylicTint, CurrentTheme == Themes.Dark); } else @@ -295,11 +295,19 @@ public partial class ViewerWindow : Window WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(1d); WindowHelper.EnableBackdropAcrylicBlur(this, CurrentTheme == Themes.Dark); } - else if (App.IsWin10 || App.IsWin11) + else if (App.IsWin11) { var acrylicTint = GetAcrylicTintColor(); - WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(1d); + WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(0d); + WindowHelper.DisableDwmBlur(this); // Restore rounded corners on Windows 11 + WindowHelper.EnableAcrylicBlur(this, acrylicTint, CurrentTheme == Themes.Dark); + } + else if (App.IsWin10) + { + var acrylicTint = GetAcrylicTintColor(); + + WindowChrome.GetWindowChrome(this)?.GlassFrameThickness = new Thickness(0d); WindowHelper.EnableAcrylicBlur(this, acrylicTint, CurrentTheme == Themes.Dark); } else