From ea5b3f1e4feb0107a218b0071787281463f0a6e6 Mon Sep 17 00:00:00 2001 From: DB p Date: Wed, 12 Mar 2025 20:58:00 +0900 Subject: [PATCH] Disable backdrop control when use non-blur theme --- .../ViewModels/SettingsPaneThemeViewModel.cs | 1 + .../SettingPages/Views/SettingsPaneTheme.xaml | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs index 84b71d0b4..83a6c5769 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs @@ -43,6 +43,7 @@ public partial class SettingsPaneThemeViewModel : BaseModel //uThemeManager.Instance.SetBlurForWindow(); } } + public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false; public bool DropShadowEffect { diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml index ad636412c..b429888bf 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml @@ -467,13 +467,15 @@ Sub="{DynamicResource shadowEffectRestart}"> + MinWidth="160" + VerticalAlignment="Center" + DisplayMemberPath="Display" + FontSize="14" + ItemsSource="{Binding BackdropTypesList}" + SelectedValue="{Binding BackdropType, Mode=TwoWay}" + SelectedValuePath="Value" + IsEnabled="{Binding IsBackdropEnabled}" /> +