@@ -9,10 +9,10 @@ protected override LayoutTypes LayoutType
9
9
=> LayoutTypes . Details ;
10
10
11
11
public override string Label
12
- => " Details" . GetLocalizedResource ( ) ;
12
+ => Strings . Details . GetLocalizedResource ( ) ;
13
13
14
14
public override string Description
15
- => " LayoutDetailsDescription" . GetLocalizedResource ( ) ;
15
+ => Strings . LayoutDetailsDescription . GetLocalizedResource ( ) ;
16
16
17
17
public override RichGlyph Glyph
18
18
=> new ( themedIconStyle : "App.ThemedIcons.IconLayout.Details" ) ;
@@ -27,10 +27,10 @@ protected override LayoutTypes LayoutType
27
27
=> LayoutTypes . List ;
28
28
29
29
public override string Label
30
- => " List" . GetLocalizedResource ( ) ;
30
+ => Strings . List . GetLocalizedResource ( ) ;
31
31
32
32
public override string Description
33
- => " LayoutListDescription" . GetLocalizedResource ( ) ;
33
+ => Strings . LayoutListDescription . GetLocalizedResource ( ) ;
34
34
35
35
public override RichGlyph Glyph
36
36
=> new ( themedIconStyle : "App.ThemedIcons.IconLayout.List" ) ;
@@ -39,16 +39,16 @@ public override HotKey HotKey
39
39
=> new ( Keys . Number2 , KeyModifiers . CtrlShift ) ;
40
40
}
41
41
42
- internal sealed class LayoutTilesAction : ToggleLayoutAction
42
+ internal sealed class LayoutCardsAction : ToggleLayoutAction
43
43
{
44
44
protected override LayoutTypes LayoutType
45
- => LayoutTypes . Tiles ;
45
+ => LayoutTypes . Cards ;
46
46
47
47
public override string Label
48
- => "Tiles" . GetLocalizedResource ( ) ;
48
+ => Strings . Cards . GetLocalizedResource ( ) ;
49
49
50
50
public override string Description
51
- => "LayoutTilesDescription" . GetLocalizedResource ( ) ;
51
+ => Strings . LayoutCardsDescription . GetLocalizedResource ( ) ;
52
52
53
53
public override RichGlyph Glyph
54
54
=> new ( themedIconStyle : "App.ThemedIcons.IconLayout.Tiles" ) ;
@@ -63,10 +63,10 @@ protected override LayoutTypes LayoutType
63
63
=> LayoutTypes . Grid ;
64
64
65
65
public override string Label
66
- => " Grid" . GetLocalizedResource ( ) ;
66
+ => Strings . Grid . GetLocalizedResource ( ) ;
67
67
68
68
public override string Description
69
- => " LayoutGridDescription" . GetLocalizedResource ( ) ;
69
+ => Strings . LayoutGridDescription . GetLocalizedResource ( ) ;
70
70
71
71
public override RichGlyph Glyph
72
72
=> new ( themedIconStyle : "App.ThemedIcons.IconSize.Small" ) ;
@@ -81,10 +81,10 @@ protected override LayoutTypes LayoutType
81
81
=> LayoutTypes . Columns ;
82
82
83
83
public override string Label
84
- => " Columns" . GetLocalizedResource ( ) ;
84
+ => Strings . Columns . GetLocalizedResource ( ) ;
85
85
86
86
public override string Description
87
- => " LayoutColumnsDescription" . GetLocalizedResource ( ) ;
87
+ => Strings . LayoutColumnsDescription . GetLocalizedResource ( ) ;
88
88
89
89
public override RichGlyph Glyph
90
90
=> new ( themedIconStyle : "App.ThemedIcons.IconLayout.Columns" ) ;
@@ -99,10 +99,10 @@ protected override LayoutTypes LayoutType
99
99
=> LayoutTypes . Adaptive ;
100
100
101
101
public override string Label
102
- => " Adaptive" . GetLocalizedResource ( ) ;
102
+ => Strings . Adaptive . GetLocalizedResource ( ) ;
103
103
104
104
public override string Description
105
- => " LayoutAdaptiveDescription" . GetLocalizedResource ( ) ;
105
+ => Strings . LayoutAdaptiveDescription . GetLocalizedResource ( ) ;
106
106
107
107
public override bool IsExecutable
108
108
=> Context . IsLayoutAdaptiveEnabled ;
@@ -174,10 +174,10 @@ internal sealed class LayoutDecreaseSizeAction : ObservableObject, IAction
174
174
private readonly IContentPageContext ContentPageContext = Ioc . Default . GetRequiredService < IContentPageContext > ( ) ;
175
175
176
176
public string Label
177
- => " DecreaseSize" . GetLocalizedResource ( ) ;
177
+ => Strings . DecreaseSize . GetLocalizedResource ( ) ;
178
178
179
179
public string Description
180
- => " LayoutDecreaseSizeDescription" . GetLocalizedResource ( ) ;
180
+ => Strings . LayoutDecreaseSizeDescription . GetLocalizedResource ( ) ;
181
181
182
182
public HotKey HotKey
183
183
=> new ( Keys . Subtract , KeyModifiers . Ctrl ) ;
@@ -190,6 +190,7 @@ ContentPageContext.PageType is not ContentPageTypes.Home &&
190
190
ContentPageContext . ShellPage ? . InstanceViewModel . FolderSettings . LayoutMode is FolderLayoutModes layoutMode &&
191
191
( ( layoutMode is FolderLayoutModes . DetailsView && UserSettingsService . LayoutSettingsService . DetailsViewSize > DetailsViewSizeKind . Compact ) ||
192
192
( layoutMode is FolderLayoutModes . ListView && UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact ) ||
193
+ ( layoutMode is FolderLayoutModes . CardsView && UserSettingsService . LayoutSettingsService . CardsViewSize > CardsViewSizeKind . Small ) ||
193
194
( layoutMode is FolderLayoutModes . GridView && UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Small ) ||
194
195
( layoutMode is FolderLayoutModes . ColumnView && UserSettingsService . LayoutSettingsService . ColumnsViewSize > ColumnsViewSizeKind . Compact ) ) ;
195
196
@@ -217,6 +218,7 @@ private void UserSettingsService_PropertyChanged(object? sender, PropertyChanged
217
218
case nameof ( ILayoutSettingsService . ListViewSize ) :
218
219
case nameof ( ILayoutSettingsService . GridViewSize ) :
219
220
case nameof ( ILayoutSettingsService . ColumnsViewSize ) :
221
+ case nameof ( ILayoutSettingsService . CardsViewSize ) :
220
222
OnPropertyChanged ( nameof ( IsExecutable ) ) ;
221
223
break ;
222
224
}
@@ -234,7 +236,9 @@ public Task ExecuteAsync(object? parameter = null)
234
236
if ( UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact )
235
237
UserSettingsService . LayoutSettingsService . ListViewSize -= 1 ;
236
238
break ;
237
- case FolderLayoutModes . TilesView :
239
+ case FolderLayoutModes . CardsView :
240
+ if ( UserSettingsService . LayoutSettingsService . CardsViewSize > CardsViewSizeKind . Small )
241
+ UserSettingsService . LayoutSettingsService . CardsViewSize -= 1 ;
238
242
break ;
239
243
case FolderLayoutModes . GridView :
240
244
if ( UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Small )
@@ -258,10 +262,10 @@ internal sealed class LayoutIncreaseSizeAction : ObservableObject, IAction
258
262
private readonly IContentPageContext ContentPageContext = Ioc . Default . GetRequiredService < IContentPageContext > ( ) ;
259
263
260
264
public string Label
261
- => " IncreaseSize" . GetLocalizedResource ( ) ;
265
+ => Strings . IncreaseSize . GetLocalizedResource ( ) ;
262
266
263
267
public string Description
264
- => " LayoutIncreaseSizeDescription" . GetLocalizedResource ( ) ;
268
+ => Strings . LayoutIncreaseSizeDescription . GetLocalizedResource ( ) ;
265
269
266
270
public HotKey HotKey
267
271
=> new ( Keys . Add , KeyModifiers . Ctrl ) ;
@@ -274,6 +278,7 @@ ContentPageContext.PageType is not ContentPageTypes.Home &&
274
278
ContentPageContext . ShellPage ? . InstanceViewModel . FolderSettings . LayoutMode is FolderLayoutModes layoutMode &&
275
279
( ( layoutMode is FolderLayoutModes . DetailsView && UserSettingsService . LayoutSettingsService . DetailsViewSize < DetailsViewSizeKind . ExtraLarge ) ||
276
280
( layoutMode is FolderLayoutModes . ListView && UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge ) ||
281
+ ( layoutMode is FolderLayoutModes . CardsView && UserSettingsService . LayoutSettingsService . CardsViewSize < CardsViewSizeKind . ExtraLarge ) ||
277
282
( layoutMode is FolderLayoutModes . GridView && UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . ExtraLarge ) ||
278
283
( layoutMode is FolderLayoutModes . ColumnView && UserSettingsService . LayoutSettingsService . ColumnsViewSize < ColumnsViewSizeKind . ExtraLarge ) ) ;
279
284
@@ -318,7 +323,9 @@ public Task ExecuteAsync(object? parameter = null)
318
323
if ( UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge )
319
324
UserSettingsService . LayoutSettingsService . ListViewSize += 1 ;
320
325
break ;
321
- case FolderLayoutModes . TilesView :
326
+ case FolderLayoutModes . CardsView :
327
+ if ( UserSettingsService . LayoutSettingsService . CardsViewSize < CardsViewSizeKind . ExtraLarge )
328
+ UserSettingsService . LayoutSettingsService . CardsViewSize += 1 ;
322
329
break ;
323
330
case FolderLayoutModes . GridView :
324
331
if ( UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . ExtraLarge )
0 commit comments