File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Flow.Launcher.Core/Resource
Flow.Launcher/SettingPages/ViewModels Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,15 @@ public void UpdateFonts()
124
124
{
125
125
try
126
126
{
127
- // Loads a ResourceDictionary for the specified theme.
127
+ // Load a ResourceDictionary for the specified theme.
128
128
var themeName = GetCurrentTheme ( ) ;
129
129
var dict = GetThemeResourceDictionary ( themeName ) ;
130
130
131
- // Applies font settings to the theme resource.
131
+ // Apply font settings to the theme resource.
132
132
ApplyFontSettings ( dict ) ;
133
133
UpdateResourceDictionary ( dict ) ;
134
+
135
+ // Must apply blur and drop shadow effects
134
136
_ = RefreshFrameAsync ( ) ;
135
137
}
136
138
catch ( Exception e )
@@ -405,7 +407,7 @@ public bool ChangeTheme(string theme = null)
405
407
try
406
408
{
407
409
if ( string . IsNullOrEmpty ( path ) )
408
- throw new DirectoryNotFoundException ( "Theme path can't be found <{path}>" ) ;
410
+ throw new DirectoryNotFoundException ( $ "Theme path can't be found <{ path } >") ;
409
411
410
412
// Retrieve theme resource – always use the resource with font settings applied.
411
413
var resourceDict = GetResourceDictionary ( theme ) ;
@@ -422,9 +424,9 @@ public bool ChangeTheme(string theme = null)
422
424
423
425
BlurEnabled = IsBlurTheme ( ) ;
424
426
425
- // Apply blur and drop shadow effects
427
+ // Can only apply blur but here also apply drop shadow effect to avoid possible drop shadow effect issues
426
428
_ = RefreshFrameAsync ( ) ;
427
-
429
+
428
430
return true ;
429
431
}
430
432
catch ( DirectoryNotFoundException )
Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ public BackdropTypes BackdropType
229
229
230
230
Settings . BackdropType = value ;
231
231
232
+ // Can only apply blur because drop shadow effect is not supported with backdrop
233
+ // So drop shadow effect has been disabled
232
234
_ = _theme . SetBlurForWindowAsync ( ) ;
233
235
234
236
OnPropertyChanged ( nameof ( IsDropShadowEnabled ) ) ;
You can’t perform that action at this time.
0 commit comments