Disable backdrop control when use non-blur theme

This commit is contained in:
DB p 2025-03-12 20:58:00 +09:00
parent f4b074c617
commit ea5b3f1e4f
2 changed files with 10 additions and 7 deletions

View file

@ -43,6 +43,7 @@ public partial class SettingsPaneThemeViewModel : BaseModel
//uThemeManager.Instance.SetBlurForWindow();
}
}
public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false;
public bool DropShadowEffect
{

View file

@ -467,13 +467,15 @@
Sub="{DynamicResource shadowEffectRestart}">
<ComboBox
MinWidth="160"
VerticalAlignment="Center"
DisplayMemberPath="Display"
FontSize="14"
ItemsSource="{Binding BackdropTypesList}"
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
SelectedValuePath="Value" />
MinWidth="160"
VerticalAlignment="Center"
DisplayMemberPath="Display"
FontSize="14"
ItemsSource="{Binding BackdropTypesList}"
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
SelectedValuePath="Value"
IsEnabled="{Binding IsBackdropEnabled}" />
<!-- ✅ 추가 -->
</cc:Card>