#955: Provide workaround for Windows 11 transparency issue

This commit is contained in:
Paddy Xu
2021-07-31 23:35:11 +02:00
parent c10773249f
commit 51ddd18c34
2 changed files with 5 additions and 3 deletions

View File

@@ -67,8 +67,6 @@ namespace QuickLook
public void Dispose()
{
SettingHelper.Set("ShowTrayIcon", _icon.Visible);
_icon.Visible = false;
}

View File

@@ -102,7 +102,11 @@ namespace QuickLook
{
base.OnApplyTemplate();
if (SystemParameters.IsGlassEnabled && App.IsWin10 && !App.IsGPUInBlacklist)
if (SettingHelper.Get("UseTransparency", true)
&& SystemParameters.IsGlassEnabled
&& App.IsWin10
&& !App.IsGPUInBlacklist
)
WindowHelper.EnableBlur(this);
else
Background = (Brush) FindResource("MainWindowBackgroundNoTransparent");