Skip to content

Commit ea5b3f1

Browse files
committed
Disable backdrop control when use non-blur theme
1 parent f4b074c commit ea5b3f1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public Theme.ThemeData SelectedTheme
4343
//uThemeManager.Instance.SetBlurForWindow();
4444
}
4545
}
46+
public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false;
4647

4748
public bool DropShadowEffect
4849
{

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,15 @@
467467
Sub="{DynamicResource shadowEffectRestart}">
468468

469469
<ComboBox
470-
MinWidth="160"
471-
VerticalAlignment="Center"
472-
DisplayMemberPath="Display"
473-
FontSize="14"
474-
ItemsSource="{Binding BackdropTypesList}"
475-
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
476-
SelectedValuePath="Value" />
470+
MinWidth="160"
471+
VerticalAlignment="Center"
472+
DisplayMemberPath="Display"
473+
FontSize="14"
474+
ItemsSource="{Binding BackdropTypesList}"
475+
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
476+
SelectedValuePath="Value"
477+
IsEnabled="{Binding IsBackdropEnabled}" />
478+
<!-- ✅ 추가 -->
477479
</cc:Card>
478480

479481

0 commit comments

Comments
 (0)