mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Backdrop reset when change theme
This commit is contained in:
parent
887be640c9
commit
e527e6c918
1 changed files with 9 additions and 1 deletions
|
|
@ -35,6 +35,15 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
||||||
_selectedTheme = value;
|
_selectedTheme = value;
|
||||||
ThemeManager.Instance.ChangeTheme(value.FileNameWithoutExtension);
|
ThemeManager.Instance.ChangeTheme(value.FileNameWithoutExtension);
|
||||||
|
|
||||||
|
// ✅ 테마 변경 후 BackdropType 자동 업데이트
|
||||||
|
if (!ThemeManager.Instance.BlurEnabled)
|
||||||
|
{
|
||||||
|
Settings.BackdropType = BackdropTypes.None;
|
||||||
|
}
|
||||||
|
|
||||||
|
OnPropertyChanged(nameof(BackdropType));
|
||||||
|
OnPropertyChanged(nameof(IsBackdropEnabled));
|
||||||
|
|
||||||
if (ThemeManager.Instance.BlurEnabled && Settings.UseDropShadowEffect == false)
|
if (ThemeManager.Instance.BlurEnabled && Settings.UseDropShadowEffect == false)
|
||||||
{
|
{
|
||||||
DropShadowEffect = true;
|
DropShadowEffect = true;
|
||||||
|
|
@ -42,7 +51,6 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
||||||
}
|
}
|
||||||
|
|
||||||
ThemeManager.Instance.RefreshFrame();
|
ThemeManager.Instance.RefreshFrame();
|
||||||
//ThemeManager.Instance.SetBlurForWindow();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false;
|
public bool IsBackdropEnabled => SelectedTheme?.HasBlur ?? false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue