mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Adjust Dropshadow control disable
This commit is contained in:
parent
ea5b3f1e4f
commit
aabe96790e
2 changed files with 16 additions and 10 deletions
|
|
@ -39,11 +39,13 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
|||
|
||||
if (ThemeManager.Instance.BlurEnabled && Settings.UseDropShadowEffect == false)
|
||||
DropShadowEffect = true;
|
||||
OnPropertyChanged(nameof(IsDropShadowEnabled));
|
||||
ThemeManager.Instance.RefreshFrame();
|
||||
//uThemeManager.Instance.SetBlurForWindow();
|
||||
}
|
||||
}
|
||||
public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false;
|
||||
public bool IsDropShadowEnabled => !ThemeManager.Instance.BlurEnabled;
|
||||
|
||||
public bool DropShadowEffect
|
||||
{
|
||||
|
|
@ -52,7 +54,6 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
|||
{
|
||||
if (ThemeManager.Instance.BlurEnabled && value == false)
|
||||
{
|
||||
App.API.ShowMsgBox(InternationalizationManager.Instance.GetTranslation("shadowEffectNotAllowedBlur"));
|
||||
Settings.UseDropShadowEffect = true;
|
||||
return;
|
||||
}
|
||||
|
|
@ -223,11 +224,15 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
|||
// ✅ BackdropTypeData 리스트에서 해당하는 값 찾기
|
||||
var backdropData = BackdropTypesList.FirstOrDefault(b => b.Value == value);
|
||||
backdropData?.ApplyBackdrop();
|
||||
|
||||
// ✅ DropShadow 활성화 여부 갱신
|
||||
OnPropertyChanged(nameof(IsDropShadowEnabled));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public bool UseSound
|
||||
{
|
||||
get => Settings.UseSound;
|
||||
|
|
|
|||
|
|
@ -467,15 +467,15 @@
|
|||
Sub="{DynamicResource shadowEffectRestart}">
|
||||
|
||||
<ComboBox
|
||||
MinWidth="160"
|
||||
VerticalAlignment="Center"
|
||||
DisplayMemberPath="Display"
|
||||
FontSize="14"
|
||||
ItemsSource="{Binding BackdropTypesList}"
|
||||
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
|
||||
SelectedValuePath="Value"
|
||||
IsEnabled="{Binding IsBackdropEnabled}" />
|
||||
<!-- ✅ 추가 -->
|
||||
MinWidth="160"
|
||||
VerticalAlignment="Center"
|
||||
DisplayMemberPath="Display"
|
||||
FontSize="14"
|
||||
IsEnabled="{Binding IsBackdropEnabled}"
|
||||
ItemsSource="{Binding BackdropTypesList}"
|
||||
SelectedValue="{Binding BackdropType, Mode=TwoWay}"
|
||||
SelectedValuePath="Value" />
|
||||
<!-- ✅ 추가 -->
|
||||
</cc:Card>
|
||||
|
||||
|
||||
|
|
@ -486,6 +486,7 @@
|
|||
Icon=""
|
||||
Sub="{DynamicResource shadowEffectRestart}">
|
||||
<ui:ToggleSwitch
|
||||
IsEnabled="{Binding IsDropShadowEnabled}"
|
||||
IsOn="{Binding DropShadowEffect}"
|
||||
OffContent="{DynamicResource disable}"
|
||||
OnContent="{DynamicResource enable}" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue