@@ -9,10 +9,10 @@ protected override LayoutTypes LayoutType
99 => LayoutTypes . Details ;
1010
1111 public override string Label
12- => " Details" . GetLocalizedResource ( ) ;
12+ => Strings . Details . GetLocalizedResource ( ) ;
1313
1414 public override string Description
15- => " LayoutDetailsDescription" . GetLocalizedResource ( ) ;
15+ => Strings . LayoutDetailsDescription . GetLocalizedResource ( ) ;
1616
1717 public override RichGlyph Glyph
1818 => new ( themedIconStyle : "App.ThemedIcons.IconLayout.Details" ) ;
@@ -27,10 +27,10 @@ protected override LayoutTypes LayoutType
2727 => LayoutTypes . List ;
2828
2929 public override string Label
30- => " List" . GetLocalizedResource ( ) ;
30+ => Strings . List . GetLocalizedResource ( ) ;
3131
3232 public override string Description
33- => " LayoutListDescription" . GetLocalizedResource ( ) ;
33+ => Strings . LayoutListDescription . GetLocalizedResource ( ) ;
3434
3535 public override RichGlyph Glyph
3636 => new ( themedIconStyle : "App.ThemedIcons.IconLayout.List" ) ;
@@ -39,16 +39,16 @@ public override HotKey HotKey
3939 => new ( Keys . Number2 , KeyModifiers . CtrlShift ) ;
4040 }
4141
42- internal sealed class LayoutTilesAction : ToggleLayoutAction
42+ internal sealed class LayoutCardsAction : ToggleLayoutAction
4343 {
4444 protected override LayoutTypes LayoutType
45- => LayoutTypes . Tiles ;
45+ => LayoutTypes . Cards ;
4646
4747 public override string Label
48- => "Tiles" . GetLocalizedResource ( ) ;
48+ => Strings . Cards . GetLocalizedResource ( ) ;
4949
5050 public override string Description
51- => "LayoutTilesDescription" . GetLocalizedResource ( ) ;
51+ => Strings . LayoutCardsDescription . GetLocalizedResource ( ) ;
5252
5353 public override RichGlyph Glyph
5454 => new ( themedIconStyle : "App.ThemedIcons.IconLayout.Tiles" ) ;
@@ -63,10 +63,10 @@ protected override LayoutTypes LayoutType
6363 => LayoutTypes . Grid ;
6464
6565 public override string Label
66- => " Grid" . GetLocalizedResource ( ) ;
66+ => Strings . Grid . GetLocalizedResource ( ) ;
6767
6868 public override string Description
69- => " LayoutGridDescription" . GetLocalizedResource ( ) ;
69+ => Strings . LayoutGridDescription . GetLocalizedResource ( ) ;
7070
7171 public override RichGlyph Glyph
7272 => new ( themedIconStyle : "App.ThemedIcons.IconSize.Small" ) ;
@@ -81,10 +81,10 @@ protected override LayoutTypes LayoutType
8181 => LayoutTypes . Columns ;
8282
8383 public override string Label
84- => " Columns" . GetLocalizedResource ( ) ;
84+ => Strings . Columns . GetLocalizedResource ( ) ;
8585
8686 public override string Description
87- => " LayoutColumnsDescription" . GetLocalizedResource ( ) ;
87+ => Strings . LayoutColumnsDescription . GetLocalizedResource ( ) ;
8888
8989 public override RichGlyph Glyph
9090 => new ( themedIconStyle : "App.ThemedIcons.IconLayout.Columns" ) ;
@@ -99,10 +99,10 @@ protected override LayoutTypes LayoutType
9999 => LayoutTypes . Adaptive ;
100100
101101 public override string Label
102- => " Adaptive" . GetLocalizedResource ( ) ;
102+ => Strings . Adaptive . GetLocalizedResource ( ) ;
103103
104104 public override string Description
105- => " LayoutAdaptiveDescription" . GetLocalizedResource ( ) ;
105+ => Strings . LayoutAdaptiveDescription . GetLocalizedResource ( ) ;
106106
107107 public override bool IsExecutable
108108 => Context . IsLayoutAdaptiveEnabled ;
@@ -174,10 +174,10 @@ internal sealed class LayoutDecreaseSizeAction : ObservableObject, IAction
174174 private readonly IContentPageContext ContentPageContext = Ioc . Default . GetRequiredService < IContentPageContext > ( ) ;
175175
176176 public string Label
177- => " DecreaseSize" . GetLocalizedResource ( ) ;
177+ => Strings . DecreaseSize . GetLocalizedResource ( ) ;
178178
179179 public string Description
180- => " LayoutDecreaseSizeDescription" . GetLocalizedResource ( ) ;
180+ => Strings . LayoutDecreaseSizeDescription . GetLocalizedResource ( ) ;
181181
182182 public HotKey HotKey
183183 => new ( Keys . Subtract , KeyModifiers . Ctrl ) ;
@@ -190,6 +190,7 @@ ContentPageContext.PageType is not ContentPageTypes.Home &&
190190 ContentPageContext . ShellPage ? . InstanceViewModel . FolderSettings . LayoutMode is FolderLayoutModes layoutMode &&
191191 ( ( layoutMode is FolderLayoutModes . DetailsView && UserSettingsService . LayoutSettingsService . DetailsViewSize > DetailsViewSizeKind . Compact ) ||
192192 ( layoutMode is FolderLayoutModes . ListView && UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact ) ||
193+ ( layoutMode is FolderLayoutModes . CardsView && UserSettingsService . LayoutSettingsService . CardsViewSize > CardsViewSizeKind . Small ) ||
193194 ( layoutMode is FolderLayoutModes . GridView && UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Small ) ||
194195 ( layoutMode is FolderLayoutModes . ColumnView && UserSettingsService . LayoutSettingsService . ColumnsViewSize > ColumnsViewSizeKind . Compact ) ) ;
195196
@@ -217,6 +218,7 @@ private void UserSettingsService_PropertyChanged(object? sender, PropertyChanged
217218 case nameof ( ILayoutSettingsService . ListViewSize ) :
218219 case nameof ( ILayoutSettingsService . GridViewSize ) :
219220 case nameof ( ILayoutSettingsService . ColumnsViewSize ) :
221+ case nameof ( ILayoutSettingsService . CardsViewSize ) :
220222 OnPropertyChanged ( nameof ( IsExecutable ) ) ;
221223 break ;
222224 }
@@ -234,7 +236,9 @@ public Task ExecuteAsync(object? parameter = null)
234236 if ( UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact )
235237 UserSettingsService . LayoutSettingsService . ListViewSize -= 1 ;
236238 break ;
237- case FolderLayoutModes . TilesView :
239+ case FolderLayoutModes . CardsView :
240+ if ( UserSettingsService . LayoutSettingsService . CardsViewSize > CardsViewSizeKind . Small )
241+ UserSettingsService . LayoutSettingsService . CardsViewSize -= 1 ;
238242 break ;
239243 case FolderLayoutModes . GridView :
240244 if ( UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Small )
@@ -258,10 +262,10 @@ internal sealed class LayoutIncreaseSizeAction : ObservableObject, IAction
258262 private readonly IContentPageContext ContentPageContext = Ioc . Default . GetRequiredService < IContentPageContext > ( ) ;
259263
260264 public string Label
261- => " IncreaseSize" . GetLocalizedResource ( ) ;
265+ => Strings . IncreaseSize . GetLocalizedResource ( ) ;
262266
263267 public string Description
264- => " LayoutIncreaseSizeDescription" . GetLocalizedResource ( ) ;
268+ => Strings . LayoutIncreaseSizeDescription . GetLocalizedResource ( ) ;
265269
266270 public HotKey HotKey
267271 => new ( Keys . Add , KeyModifiers . Ctrl ) ;
@@ -274,6 +278,7 @@ ContentPageContext.PageType is not ContentPageTypes.Home &&
274278 ContentPageContext . ShellPage ? . InstanceViewModel . FolderSettings . LayoutMode is FolderLayoutModes layoutMode &&
275279 ( ( layoutMode is FolderLayoutModes . DetailsView && UserSettingsService . LayoutSettingsService . DetailsViewSize < DetailsViewSizeKind . ExtraLarge ) ||
276280 ( layoutMode is FolderLayoutModes . ListView && UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge ) ||
281+ ( layoutMode is FolderLayoutModes . CardsView && UserSettingsService . LayoutSettingsService . CardsViewSize < CardsViewSizeKind . ExtraLarge ) ||
277282 ( layoutMode is FolderLayoutModes . GridView && UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . ExtraLarge ) ||
278283 ( layoutMode is FolderLayoutModes . ColumnView && UserSettingsService . LayoutSettingsService . ColumnsViewSize < ColumnsViewSizeKind . ExtraLarge ) ) ;
279284
@@ -318,7 +323,9 @@ public Task ExecuteAsync(object? parameter = null)
318323 if ( UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge )
319324 UserSettingsService . LayoutSettingsService . ListViewSize += 1 ;
320325 break ;
321- case FolderLayoutModes . TilesView :
326+ case FolderLayoutModes . CardsView :
327+ if ( UserSettingsService . LayoutSettingsService . CardsViewSize < CardsViewSizeKind . ExtraLarge )
328+ UserSettingsService . LayoutSettingsService . CardsViewSize += 1 ;
322329 break ;
323330 case FolderLayoutModes . GridView :
324331 if ( UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . ExtraLarge )
0 commit comments