@@ -21,22 +21,6 @@ public ResultViewModel(Result result, Settings settings)
21
21
{
22
22
Settings = settings ;
23
23
24
- Settings . PropertyChanged += ( _ , args ) =>
25
- {
26
- switch ( args . PropertyName )
27
- {
28
- case nameof ( Settings . ItemHeightSize ) :
29
- OnPropertyChanged ( nameof ( ItemHeightSize ) ) ;
30
- break ;
31
- case nameof ( Settings . ResultItemFontSize ) :
32
- OnPropertyChanged ( nameof ( ResultItemFontSize ) ) ;
33
- break ;
34
- case nameof ( Settings . ResultSubItemFontSize ) :
35
- OnPropertyChanged ( nameof ( ResultSubItemFontSize ) ) ;
36
- break ;
37
- }
38
- } ;
39
-
40
24
41
25
if ( result == null )
42
26
{
@@ -46,7 +30,7 @@ public ResultViewModel(Result result, Settings settings)
46
30
47
31
if ( Result . Glyph is { FontFamily : not null } glyph )
48
32
{
49
- // Checks if it's a system installed font, which does not require path to be provided.
33
+ // Checks if it's a system installed font, which does not require path to be provided.
50
34
if ( glyph . FontFamily . EndsWith ( ".ttf" ) || glyph . FontFamily . EndsWith ( ".otf" ) )
51
35
{
52
36
string fontFamilyPath = glyph . FontFamily ;
@@ -81,7 +65,7 @@ public ResultViewModel(Result result, Settings settings)
81
65
82
66
}
83
67
84
- private Settings Settings { get ; }
68
+ public Settings Settings { get ; }
85
69
86
70
public Visibility ShowOpenResultHotkey =>
87
71
Settings . ShowOpenResultHotkey ? Visibility . Visible : Visibility . Collapsed ;
@@ -136,23 +120,6 @@ public double IconRadius
136
120
137
121
}
138
122
139
- public double ItemHeightSize
140
- {
141
- get => Settings . ItemHeightSize ;
142
- set => Settings . ItemHeightSize = value ;
143
- }
144
-
145
- public double ResultItemFontSize
146
- {
147
- get => Settings . ResultItemFontSize ;
148
- set => Settings . ResultItemFontSize = value ;
149
- }
150
-
151
- public double ResultSubItemFontSize
152
- {
153
- get => Settings . ResultSubItemFontSize ;
154
- set => Settings . ResultSubItemFontSize = value ;
155
- }
156
123
public Visibility ShowGlyph
157
124
{
158
125
get
0 commit comments