mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
GlassFrameThickness must be set to 0 when Acrylic10
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user