From 8caa52e988f0a3d05b2a342089a0630c87f95ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Fri, 24 Jan 2025 01:21:09 +0800 Subject: [PATCH] Acrylic first --- BetterGenshinImpact/Helpers/Ui/WindowHelper.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BetterGenshinImpact/Helpers/Ui/WindowHelper.cs b/BetterGenshinImpact/Helpers/Ui/WindowHelper.cs index e4e0adb1..c6c5d8c1 100644 --- a/BetterGenshinImpact/Helpers/Ui/WindowHelper.cs +++ b/BetterGenshinImpact/Helpers/Ui/WindowHelper.cs @@ -19,20 +19,20 @@ public class WindowHelper { window.Background = new SolidColorBrush(Colors.Transparent); } - + WindowBackdrop.ApplyBackdrop(window, TaskContext.Instance().Config.CommonConfig.CurrentBackdropType); return; } - if (WindowBackdrop.IsSupported(WindowBackdropType.Mica)) - { - window.Background = new SolidColorBrush(Colors.Transparent); - WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Mica); - } - else if (WindowBackdrop.IsSupported(WindowBackdropType.Acrylic)) + if (WindowBackdrop.IsSupported(WindowBackdropType.Acrylic)) { window.Background = new SolidColorBrush(Color.FromArgb(100, 0, 0, 0)); WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Acrylic); } + else if (WindowBackdrop.IsSupported(WindowBackdropType.Mica)) + { + window.Background = new SolidColorBrush(Colors.Transparent); + WindowBackdrop.ApplyBackdrop(window, WindowBackdropType.Mica); + } } } \ No newline at end of file