mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-07 02:00:21 +08:00
Extract window background effects, disable blur #1542
This commit is contained in:
+1
-1
Submodule QuickLook.Common updated: 9dda0f93da...529d07b565
@@ -162,6 +162,11 @@ public partial class ViewerWindow : Window
|
||||
|
||||
WindowHelper.RemoveWindowControls(this);
|
||||
|
||||
ApplyWindowBackgroundEffects();
|
||||
}
|
||||
|
||||
private void ApplyWindowBackgroundEffects()
|
||||
{
|
||||
if (SettingHelper.Get("UseTransparency", true)
|
||||
&& SystemParameters.IsGlassEnabled
|
||||
&& !App.IsGPUInBlacklist)
|
||||
@@ -188,6 +193,7 @@ public partial class ViewerWindow : Window
|
||||
}
|
||||
else
|
||||
{
|
||||
WindowHelper.DisableBlur(this);
|
||||
Background = (Brush)FindResource("MainWindowBackgroundNoTransparent");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user