@@ -188,10 +188,10 @@ public HotKey MediaHotKey
188
188
189
189
public bool IsExecutable =>
190
190
ContentPageContext . PageType is not ContentPageTypes . Home &&
191
- ( ( DisplayPageContext . LayoutType == LayoutTypes . Details && UserSettingsService . LayoutSettingsService . DetailsViewItemSize > DetailsViewSizeKind . Compact ) ||
192
- ( DisplayPageContext . LayoutType == LayoutTypes . List && UserSettingsService . LayoutSettingsService . ListViewItemSize > ListViewSizeKind . Compact ) ||
193
- ( DisplayPageContext . LayoutType == LayoutTypes . Grid && UserSettingsService . LayoutSettingsService . GridViewItemSize > GridViewSizeKind . Compact ) ||
194
- ( DisplayPageContext . LayoutType == LayoutTypes . Columns && UserSettingsService . LayoutSettingsService . ColumnsViewItemSize > ColumnsViewSizeKind . Compact ) ) ;
191
+ ( ( DisplayPageContext . LayoutType == LayoutTypes . Details && UserSettingsService . LayoutSettingsService . DetailsViewSize > DetailsViewSizeKind . Compact ) ||
192
+ ( DisplayPageContext . LayoutType == LayoutTypes . List && UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact ) ||
193
+ ( DisplayPageContext . LayoutType == LayoutTypes . Grid && UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Compact ) ||
194
+ ( DisplayPageContext . LayoutType == LayoutTypes . Columns && UserSettingsService . LayoutSettingsService . ColumnsViewSize > ColumnsViewSizeKind . Compact ) ) ;
195
195
196
196
public LayoutDecreaseSizeAction ( )
197
197
{
@@ -224,10 +224,10 @@ private void UserSettingsService_PropertyChanged(object? sender, PropertyChanged
224
224
{
225
225
switch ( e . PropertyName )
226
226
{
227
- case nameof ( ILayoutSettingsService . DetailsViewItemSize ) :
228
- case nameof ( ILayoutSettingsService . ListViewItemSize ) :
229
- case nameof ( ILayoutSettingsService . GridViewItemSize ) :
230
- case nameof ( ILayoutSettingsService . ColumnsViewItemSize ) :
227
+ case nameof ( ILayoutSettingsService . DetailsViewSize ) :
228
+ case nameof ( ILayoutSettingsService . ListViewSize ) :
229
+ case nameof ( ILayoutSettingsService . GridViewSize ) :
230
+ case nameof ( ILayoutSettingsService . ColumnsViewSize ) :
231
231
OnPropertyChanged ( nameof ( IsExecutable ) ) ;
232
232
break ;
233
233
}
@@ -238,22 +238,22 @@ public Task ExecuteAsync()
238
238
switch ( DisplayPageContext . LayoutType )
239
239
{
240
240
case LayoutTypes . Details :
241
- if ( UserSettingsService . LayoutSettingsService . DetailsViewItemSize > DetailsViewSizeKind . Compact )
242
- UserSettingsService . LayoutSettingsService . DetailsViewItemSize -= 1 ;
241
+ if ( UserSettingsService . LayoutSettingsService . DetailsViewSize > DetailsViewSizeKind . Compact )
242
+ UserSettingsService . LayoutSettingsService . DetailsViewSize -= 1 ;
243
243
break ;
244
244
case LayoutTypes . List :
245
- if ( UserSettingsService . LayoutSettingsService . ListViewItemSize > ListViewSizeKind . Compact )
246
- UserSettingsService . LayoutSettingsService . ListViewItemSize -= 1 ;
245
+ if ( UserSettingsService . LayoutSettingsService . ListViewSize > ListViewSizeKind . Compact )
246
+ UserSettingsService . LayoutSettingsService . ListViewSize -= 1 ;
247
247
break ;
248
248
case LayoutTypes . Tiles :
249
249
break ;
250
250
case LayoutTypes . Grid :
251
- if ( UserSettingsService . LayoutSettingsService . GridViewItemSize > GridViewSizeKind . Compact )
252
- UserSettingsService . LayoutSettingsService . GridViewItemSize -= 1 ;
251
+ if ( UserSettingsService . LayoutSettingsService . GridViewSize > GridViewSizeKind . Compact )
252
+ UserSettingsService . LayoutSettingsService . GridViewSize -= 1 ;
253
253
break ;
254
254
case LayoutTypes . Columns :
255
- if ( UserSettingsService . LayoutSettingsService . ColumnsViewItemSize > ColumnsViewSizeKind . Compact )
256
- UserSettingsService . LayoutSettingsService . ColumnsViewItemSize -= 1 ;
255
+ if ( UserSettingsService . LayoutSettingsService . ColumnsViewSize > ColumnsViewSizeKind . Compact )
256
+ UserSettingsService . LayoutSettingsService . ColumnsViewSize -= 1 ;
257
257
break ;
258
258
}
259
259
@@ -281,10 +281,10 @@ public HotKey MediaHotKey
281
281
282
282
public bool IsExecutable =>
283
283
ContentPageContext . PageType is not ContentPageTypes . Home &&
284
- ( ( DisplayPageContext . LayoutType == LayoutTypes . Details && UserSettingsService . LayoutSettingsService . DetailsViewItemSize < DetailsViewSizeKind . ExtraLarge ) ||
285
- ( DisplayPageContext . LayoutType == LayoutTypes . List && UserSettingsService . LayoutSettingsService . ListViewItemSize < ListViewSizeKind . ExtraLarge ) ||
286
- ( DisplayPageContext . LayoutType == LayoutTypes . Grid && UserSettingsService . LayoutSettingsService . GridViewItemSize < GridViewSizeKind . Eleven ) ||
287
- ( DisplayPageContext . LayoutType == LayoutTypes . Columns && UserSettingsService . LayoutSettingsService . ColumnsViewItemSize < ColumnsViewSizeKind . ExtraLarge ) ) ;
284
+ ( ( DisplayPageContext . LayoutType == LayoutTypes . Details && UserSettingsService . LayoutSettingsService . DetailsViewSize < DetailsViewSizeKind . ExtraLarge ) ||
285
+ ( DisplayPageContext . LayoutType == LayoutTypes . List && UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge ) ||
286
+ ( DisplayPageContext . LayoutType == LayoutTypes . Grid && UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . Eleven ) ||
287
+ ( DisplayPageContext . LayoutType == LayoutTypes . Columns && UserSettingsService . LayoutSettingsService . ColumnsViewSize < ColumnsViewSizeKind . ExtraLarge ) ) ;
288
288
289
289
public LayoutIncreaseSizeAction ( )
290
290
{
@@ -317,10 +317,10 @@ private void UserSettingsService_PropertyChanged(object? sender, PropertyChanged
317
317
{
318
318
switch ( e . PropertyName )
319
319
{
320
- case nameof ( ILayoutSettingsService . DetailsViewItemSize ) :
321
- case nameof ( ILayoutSettingsService . ListViewItemSize ) :
322
- case nameof ( ILayoutSettingsService . GridViewItemSize ) :
323
- case nameof ( ILayoutSettingsService . ColumnsViewItemSize ) :
320
+ case nameof ( ILayoutSettingsService . DetailsViewSize ) :
321
+ case nameof ( ILayoutSettingsService . ListViewSize ) :
322
+ case nameof ( ILayoutSettingsService . GridViewSize ) :
323
+ case nameof ( ILayoutSettingsService . ColumnsViewSize ) :
324
324
OnPropertyChanged ( nameof ( IsExecutable ) ) ;
325
325
break ;
326
326
}
@@ -331,22 +331,22 @@ public Task ExecuteAsync()
331
331
switch ( DisplayPageContext . LayoutType )
332
332
{
333
333
case LayoutTypes . Details :
334
- if ( UserSettingsService . LayoutSettingsService . DetailsViewItemSize < DetailsViewSizeKind . ExtraLarge )
335
- UserSettingsService . LayoutSettingsService . DetailsViewItemSize += 1 ;
334
+ if ( UserSettingsService . LayoutSettingsService . DetailsViewSize < DetailsViewSizeKind . ExtraLarge )
335
+ UserSettingsService . LayoutSettingsService . DetailsViewSize += 1 ;
336
336
break ;
337
337
case LayoutTypes . List :
338
- if ( UserSettingsService . LayoutSettingsService . ListViewItemSize < ListViewSizeKind . ExtraLarge )
339
- UserSettingsService . LayoutSettingsService . ListViewItemSize += 1 ;
338
+ if ( UserSettingsService . LayoutSettingsService . ListViewSize < ListViewSizeKind . ExtraLarge )
339
+ UserSettingsService . LayoutSettingsService . ListViewSize += 1 ;
340
340
break ;
341
341
case LayoutTypes . Tiles :
342
342
break ;
343
343
case LayoutTypes . Grid :
344
- if ( UserSettingsService . LayoutSettingsService . GridViewItemSize < GridViewSizeKind . Eleven )
345
- UserSettingsService . LayoutSettingsService . GridViewItemSize += 1 ;
344
+ if ( UserSettingsService . LayoutSettingsService . GridViewSize < GridViewSizeKind . Eleven )
345
+ UserSettingsService . LayoutSettingsService . GridViewSize += 1 ;
346
346
break ;
347
347
case LayoutTypes . Columns :
348
- if ( UserSettingsService . LayoutSettingsService . ColumnsViewItemSize < ColumnsViewSizeKind . ExtraLarge )
349
- UserSettingsService . LayoutSettingsService . ColumnsViewItemSize += 1 ;
348
+ if ( UserSettingsService . LayoutSettingsService . ColumnsViewSize < ColumnsViewSizeKind . ExtraLarge )
349
+ UserSettingsService . LayoutSettingsService . ColumnsViewSize += 1 ;
350
350
break ;
351
351
}
352
352
0 commit comments