Extract window background effects, disable blur #1542
build / build (push) Has been cancelled
build / publish (push) Has been cancelled

This commit is contained in:
ema
2026-03-24 01:05:36 +08:00
parent 033e319fd9
commit 952223473a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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");
}