Skip to content

Commit fe6dae6

Browse files
committed
Disable transparency in Win11
1 parent eaa9180 commit fe6dae6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

QuickLook/App.xaml.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public partial class App : Application
3838
public static readonly string AppPath = Path.GetDirectoryName(AppFullPath);
3939
public static readonly bool Is64Bit = Environment.Is64BitProcess;
4040
public static readonly bool IsUWP = ProcessHelper.IsRunningAsUWP();
41-
public static readonly bool IsWin10 = Environment.OSVersion.Version >= new Version(10, 0);
41+
public static readonly bool IsWin11 = Environment.OSVersion.Version >= new Version(10, 0, 21996);
42+
public static readonly bool IsWin10 = !IsWin11 && Environment.OSVersion.Version >= new Version(10, 0);
4243
public static readonly bool IsGPUInBlacklist = SystemHelper.IsGPUInBlacklist();
4344
public static readonly bool IsPortable = SettingHelper.IsPortableVersion();
4445

QuickLook/ViewerWindow.xaml.cs

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public override void OnApplyTemplate()
105105
if (SettingHelper.Get("UseTransparency", true)
106106
&& SystemParameters.IsGlassEnabled
107107
&& App.IsWin10
108+
&& !App.IsWin11
108109
&& !App.IsGPUInBlacklist
109110
)
110111
WindowHelper.EnableBlur(this);

0 commit comments

Comments
 (0)