@@ -16,7 +16,7 @@ public class ThemeSelector
16
16
17
17
#region Theme Selection
18
18
19
- // Theme select codes from SettingsPaneThemeViewModel.cs
19
+ // Theme select codes simplified from SettingsPaneThemeViewModel.cs
20
20
21
21
private Theme . ThemeData _selectedTheme ;
22
22
private Theme . ThemeData SelectedTheme
@@ -28,36 +28,15 @@ private Theme.ThemeData SelectedTheme
28
28
_theme . ChangeTheme ( value . FileNameWithoutExtension ) ;
29
29
30
30
if ( _theme . BlurEnabled && _settings . UseDropShadowEffect )
31
- DropShadowEffect = false ;
32
- }
33
- }
34
-
35
- private List < Theme . ThemeData > Themes => _theme . LoadAvailableThemes ( ) ;
36
-
37
- private bool DropShadowEffect
38
- {
39
- get => _settings . UseDropShadowEffect ;
40
- set
41
- {
42
- if ( _theme . BlurEnabled && value )
43
- {
44
- _context . API . ShowMsgBox ( _context . API . GetTranslation ( "shadowEffectNotAllowed" ) ) ;
45
- return ;
46
- }
47
-
48
- if ( value )
49
- {
50
- _theme . AddDropShadowEffectToCurrentTheme ( ) ;
51
- }
52
- else
53
31
{
54
32
_theme . RemoveDropShadowEffectFromCurrentTheme ( ) ;
33
+ _settings . UseDropShadowEffect = false ;
55
34
}
56
-
57
- _settings . UseDropShadowEffect = value ;
58
35
}
59
36
}
60
37
38
+ private List < Theme . ThemeData > Themes => _theme . LoadAvailableThemes ( ) ;
39
+
61
40
#endregion
62
41
63
42
public ThemeSelector ( PluginInitContext context )
@@ -107,14 +86,12 @@ private Result CreateThemeResult(Theme.ThemeData theme, int score, IList<int> hi
107
86
if ( theme . IsDark == true )
108
87
{
109
88
description += _context . API . GetTranslation ( "TypeIsDarkToolTip" ) ;
110
- if ( theme . HasBlur == true )
111
- {
112
- description += "" ;
113
- description += _context . API . GetTranslation ( "TypeHasBlurToolTip" ) ;
114
- }
115
89
}
116
- else if ( theme . HasBlur == true )
90
+
91
+ if ( theme . HasBlur == true )
117
92
{
93
+ if ( ! string . IsNullOrEmpty ( description ) )
94
+ description += " " ;
118
95
description += _context . API . GetTranslation ( "TypeHasBlurToolTip" ) ;
119
96
}
120
97
0 commit comments