File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Flow.Launcher/SettingPages/ViewModels
Plugins/Flow.Launcher.Plugin.Sys Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ public Theme.ThemeData SelectedTheme
56
56
ThemeManager . Instance . RefreshFrame ( ) ;
57
57
}
58
58
}
59
+
59
60
public bool IsBackdropEnabled
60
61
{
61
62
get
Original file line number Diff line number Diff line change @@ -19,19 +19,27 @@ public class ThemeSelector
19
19
// Theme select codes simplified from SettingsPaneThemeViewModel.cs
20
20
21
21
private Theme . ThemeData _selectedTheme ;
22
- private Theme . ThemeData SelectedTheme
22
+ public Theme . ThemeData SelectedTheme
23
23
{
24
24
get => _selectedTheme ??= Themes . Find ( v => v . FileNameWithoutExtension == _theme . CurrentTheme ) ;
25
25
set
26
26
{
27
27
_selectedTheme = value ;
28
28
_theme . ChangeTheme ( value . FileNameWithoutExtension ) ;
29
29
30
- if ( _theme . BlurEnabled && _settings . UseDropShadowEffect )
30
+ // when changed non-blur theme, change to backdrop to none
31
+ if ( ! _theme . BlurEnabled )
31
32
{
32
- _theme . RemoveDropShadowEffectFromCurrentTheme ( ) ;
33
- _settings . UseDropShadowEffect = false ;
33
+ _settings . BackdropType = BackdropTypes . None ;
34
34
}
35
+
36
+ // dropshadow on and control disabled.(user can't change dropshadow with blur theme)
37
+ if ( _theme . BlurEnabled )
38
+ {
39
+ _settings . UseDropShadowEffect = true ;
40
+ }
41
+
42
+ _theme . RefreshFrame ( ) ;
35
43
}
36
44
}
37
45
You can’t perform that action at this time.
0 commit comments