mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge c0134d5692 into 24f6c90f72
This commit is contained in:
commit
2fbabbe53e
1 changed files with 2 additions and 6 deletions
|
|
@ -418,11 +418,6 @@ namespace Flow.Launcher.Core.Resource
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
throw new DirectoryNotFoundException($"Theme path can't be found <{path}>");
|
throw new DirectoryNotFoundException($"Theme path can't be found <{path}>");
|
||||||
|
|
||||||
// Retrieve theme resource – always use the resource with font settings applied.
|
|
||||||
var resourceDict = GetResourceDictionary(theme);
|
|
||||||
|
|
||||||
UpdateResourceDictionary(resourceDict);
|
|
||||||
|
|
||||||
_settings.Theme = theme;
|
_settings.Theme = theme;
|
||||||
|
|
||||||
// Always allow re-loading default theme, in case of failure of switching to a new theme from default theme
|
// Always allow re-loading default theme, in case of failure of switching to a new theme from default theme
|
||||||
|
|
@ -432,7 +427,8 @@ namespace Flow.Launcher.Core.Resource
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if blur is enabled
|
// Check if blur is enabled
|
||||||
BlurEnabled = Win32Helper.IsBackdropSupported() && IsThemeBlurEnabled(resourceDict);
|
var dict = GetThemeResourceDictionary(theme);
|
||||||
|
BlurEnabled = Win32Helper.IsBackdropSupported() && IsThemeBlurEnabled(dict);
|
||||||
|
|
||||||
// Apply blur and drop shadow effect so that we do not need to call it again
|
// Apply blur and drop shadow effect so that we do not need to call it again
|
||||||
_ = RefreshFrameAsync();
|
_ = RefreshFrameAsync();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue