Skip to content

Commit 11d239a

Browse files
committed
Added support for switching to List
1 parent f0fcbc1 commit 11d239a

File tree

17 files changed

+223
-51
lines changed

17 files changed

+223
-51
lines changed

src/Files.App/Actions/Display/LayoutAction.cs

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ public override RichGlyph Glyph
2020
public override HotKey HotKey
2121
=> new(Keys.Number1, KeyModifiers.CtrlShift);
2222
}
23+
24+
internal class LayoutListAction : ToggleLayoutAction
25+
{
26+
protected override LayoutTypes LayoutType
27+
=> LayoutTypes.List;
28+
29+
public override string Label
30+
=> "List".GetLocalizedResource();
31+
32+
public override string Description
33+
=> "LayoutListDescription".GetLocalizedResource();
34+
35+
public override RichGlyph Glyph
36+
=> new(opacityStyle: "ColorIconListLayout");
37+
38+
public override HotKey HotKey
39+
=> new(Keys.Number2, KeyModifiers.CtrlShift);
40+
}
2341

2442
internal class LayoutTilesAction : ToggleLayoutAction
2543
{
@@ -36,7 +54,7 @@ public override RichGlyph Glyph
3654
=> new(opacityStyle: "ColorIconTilesLayout");
3755

3856
public override HotKey HotKey
39-
=> new(Keys.Number2, KeyModifiers.CtrlShift);
57+
=> new(Keys.Number3, KeyModifiers.CtrlShift);
4058
}
4159

4260
internal class LayoutGridSmallAction : ToggleLayoutAction
@@ -54,7 +72,7 @@ public override RichGlyph Glyph
5472
=> new(opacityStyle: "ColorIconGridSmallLayout");
5573

5674
public override HotKey HotKey
57-
=> new(Keys.Number3, KeyModifiers.CtrlShift);
75+
=> new(Keys.Number4, KeyModifiers.CtrlShift);
5876
}
5977

6078
internal class LayoutGridMediumAction : ToggleLayoutAction
@@ -72,7 +90,7 @@ public override RichGlyph Glyph
7290
=> new(opacityStyle: "ColorIconGridMediumLayout");
7391

7492
public override HotKey HotKey
75-
=> new(Keys.Number4, KeyModifiers.CtrlShift);
93+
=> new(Keys.Number5, KeyModifiers.CtrlShift);
7694
}
7795

7896
internal class LayoutGridLargeAction : ToggleLayoutAction
@@ -90,7 +108,7 @@ public override RichGlyph Glyph
90108
=> new(opacityStyle: "ColorIconGridLargeLayout");
91109

92110
public override HotKey HotKey
93-
=> new(Keys.Number5, KeyModifiers.CtrlShift);
111+
=> new(Keys.Number6, KeyModifiers.CtrlShift);
94112
}
95113

96114
internal class LayoutColumnsAction : ToggleLayoutAction
@@ -108,7 +126,7 @@ public override RichGlyph Glyph
108126
=> new(opacityStyle: "ColorIconColumnsLayout");
109127

110128
public override HotKey HotKey
111-
=> new(Keys.Number6, KeyModifiers.CtrlShift);
129+
=> new(Keys.Number7, KeyModifiers.CtrlShift);
112130
}
113131

114132
internal class LayoutAdaptiveAction : ToggleLayoutAction
@@ -129,7 +147,7 @@ public override RichGlyph Glyph
129147
=> new("\uF576");
130148

131149
public override HotKey HotKey
132-
=> new(Keys.Number7, KeyModifiers.CtrlShift);
150+
=> new(Keys.Number8, KeyModifiers.CtrlShift);
133151

134152
protected override void OnContextChanged(string propertyName)
135153
{

src/Files.App/Data/Commands/CommandCodes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public enum CommandCodes
111111
LayoutDecreaseSize,
112112
LayoutIncreaseSize,
113113
LayoutDetails,
114+
LayoutList,
114115
LayoutTiles,
115116
LayoutGridSmall,
116117
LayoutGridMedium,

src/Files.App/Data/Commands/Manager/CommandManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public IRichCommand this[HotKey hotKey]
111111
public IRichCommand LayoutDecreaseSize => commands[CommandCodes.LayoutDecreaseSize];
112112
public IRichCommand LayoutIncreaseSize => commands[CommandCodes.LayoutIncreaseSize];
113113
public IRichCommand LayoutDetails => commands[CommandCodes.LayoutDetails];
114+
public IRichCommand LayoutList => commands[CommandCodes.LayoutList];
114115
public IRichCommand LayoutTiles => commands[CommandCodes.LayoutTiles];
115116
public IRichCommand LayoutGridSmall => commands[CommandCodes.LayoutGridSmall];
116117
public IRichCommand LayoutGridMedium => commands[CommandCodes.LayoutGridMedium];
@@ -281,6 +282,7 @@ public CommandManager()
281282
[CommandCodes.LayoutDecreaseSize] = new LayoutDecreaseSizeAction(),
282283
[CommandCodes.LayoutIncreaseSize] = new LayoutIncreaseSizeAction(),
283284
[CommandCodes.LayoutDetails] = new LayoutDetailsAction(),
285+
[CommandCodes.LayoutList] = new LayoutListAction(),
284286
[CommandCodes.LayoutTiles] = new LayoutTilesAction(),
285287
[CommandCodes.LayoutGridSmall] = new LayoutGridSmallAction(),
286288
[CommandCodes.LayoutGridMedium] = new LayoutGridMediumAction(),

src/Files.App/Data/Commands/Manager/ICommandManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public interface ICommandManager : IEnumerable<IRichCommand>
9797
IRichCommand LayoutDecreaseSize { get; }
9898
IRichCommand LayoutIncreaseSize { get; }
9999
IRichCommand LayoutDetails { get; }
100+
IRichCommand LayoutList { get; }
100101
IRichCommand LayoutTiles { get; }
101102
IRichCommand LayoutGridSmall { get; }
102103
IRichCommand LayoutGridMedium { get; }

src/Files.App/Data/Contexts/DisplayPage/DisplayPageContext.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public LayoutTypes LayoutType
2727
case LayoutTypes.Details:
2828
viewModel.ToggleLayoutModeDetailsView(true);
2929
break;
30+
case LayoutTypes.List:
31+
viewModel.ToggleLayoutModeList(true);
32+
break;
3033
case LayoutTypes.Tiles:
3134
viewModel.ToggleLayoutModeTiles(true);
3235
break;
@@ -245,6 +248,7 @@ private LayoutTypes GetLayoutType()
245248
return viewModel.LayoutMode switch
246249
{
247250
FolderLayoutModes.DetailsView => LayoutTypes.Details,
251+
FolderLayoutModes.ListView => LayoutTypes.List,
248252
FolderLayoutModes.TilesView => LayoutTypes.Tiles,
249253
FolderLayoutModes.GridView => viewModel.GridViewSizeKind switch
250254
{

src/Files.App/Data/Contexts/DisplayPage/LayoutTypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public enum LayoutTypes : ushort
77
{
88
None,
99
Details,
10+
List,
1011
Tiles,
1112
GridSmall,
1213
GridMedium,

src/Files.App/Helpers/Layout/LayoutPreferencesManager.cs

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,21 @@ public int GridViewSize
4848
// Size down
4949
if (value < LayoutPreferencesItem.GridViewSize)
5050
{
51-
// Size down from tiles to list
52-
if (LayoutMode == FolderLayoutModes.TilesView)
51+
// Size down from List to Details
52+
if (LayoutMode == FolderLayoutModes.ListView)
5353
{
5454
LayoutPreferencesItem.IsAdaptiveLayoutOverridden = true;
5555
LayoutMode = FolderLayoutModes.DetailsView;
5656
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(LayoutMode, GridViewSize));
5757
}
58-
// Size down from grid to tiles
58+
// Size down from Tiles to List
59+
else if (LayoutMode == FolderLayoutModes.TilesView)
60+
{
61+
LayoutPreferencesItem.IsAdaptiveLayoutOverridden = true;
62+
LayoutMode = FolderLayoutModes.ListView;
63+
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(LayoutMode, GridViewSize));
64+
}
65+
// Size down from Grid to Tiles
5966
else if (LayoutMode == FolderLayoutModes.GridView && value < Constants.Browser.GridViewBrowser.GridViewSizeSmall)
6067
{
6168
LayoutPreferencesItem.IsAdaptiveLayoutOverridden = true;
@@ -87,14 +94,21 @@ public int GridViewSize
8794
// Size up
8895
else if (value > LayoutPreferencesItem.GridViewSize)
8996
{
90-
// Size up from list to tiles
97+
// Size up from Details to List
9198
if (LayoutMode == FolderLayoutModes.DetailsView)
99+
{
100+
LayoutPreferencesItem.IsAdaptiveLayoutOverridden = true;
101+
LayoutMode = FolderLayoutModes.ListView;
102+
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(LayoutMode, GridViewSize));
103+
}
104+
// Size up from List to Tiles
105+
else if (LayoutMode == FolderLayoutModes.ListView)
92106
{
93107
LayoutPreferencesItem.IsAdaptiveLayoutOverridden = true;
94108
LayoutMode = FolderLayoutModes.TilesView;
95109
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(LayoutMode, GridViewSize));
96110
}
97-
else // Size up from tiles to grid
111+
else // Size up from Tiles to Grid
98112
{
99113
// Set grid size to allow immediate UI update
100114
var newValue = (LayoutMode == FolderLayoutModes.TilesView) ? Constants.Browser.GridViewBrowser.GridViewSizeSmall : (value <= Constants.Browser.GridViewBrowser.GridViewSizeLarge) ? value : Constants.Browser.GridViewBrowser.GridViewSizeLarge;
@@ -309,6 +323,8 @@ public uint GetIconSize()
309323
{
310324
FolderLayoutModes.DetailsView
311325
=> Constants.DefaultIconSizes.Large,
326+
FolderLayoutModes.ListView
327+
=> Constants.DefaultIconSizes.Large,
312328
FolderLayoutModes.ColumnView
313329
=> Constants.DefaultIconSizes.Large,
314330
FolderLayoutModes.TilesView
@@ -338,6 +354,7 @@ public Type GetLayoutType(string path, bool changeLayoutMode = true)
338354
return (preferencesItem.LayoutMode) switch
339355
{
340356
FolderLayoutModes.DetailsView => typeof(DetailsLayoutPage),
357+
FolderLayoutModes.ListView => typeof(GridLayoutPage),
341358
FolderLayoutModes.TilesView => typeof(GridLayoutPage),
342359
FolderLayoutModes.GridView => typeof(GridLayoutPage),
343360
FolderLayoutModes.ColumnView => typeof(ColumnsLayoutPage),
@@ -414,6 +431,16 @@ public void ToggleLayoutModeTiles(bool manuallySet)
414431

415432
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(FolderLayoutModes.TilesView, GridViewSize));
416433
}
434+
435+
public void ToggleLayoutModeList(bool manuallySet)
436+
{
437+
IsAdaptiveLayoutEnabled &= !manuallySet;
438+
439+
// List View
440+
LayoutMode = FolderLayoutModes.ListView;
441+
442+
LayoutModeChangeRequested?.Invoke(this, new LayoutModeEventArgs(FolderLayoutModes.ListView, GridViewSize));
443+
}
417444

418445
public void ToggleLayoutModeDetailsView(bool manuallySet)
419446
{

src/Files.App/Helpers/MenuFlyout/ContextFlyoutItemHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(
114114
{
115115
IsToggle = true
116116
}.Build(),
117+
new ContextMenuFlyoutItemViewModelBuilder(commands.LayoutList)
118+
{
119+
IsToggle = true
120+
}.Build(),
117121
new ContextMenuFlyoutItemViewModelBuilder(commands.LayoutGridSmall)
118122
{
119123
IsToggle = true

src/Files.App/ResourceDictionaries/PathIcons.xaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,60 @@
17471747
</Setter>
17481748
</Style>
17491749

1750+
<Style x:Key="ColorIconListLayout" TargetType="local:OpacityIcon">
1751+
<Setter Property="Template">
1752+
<Setter.Value>
1753+
<ControlTemplate>
1754+
<Viewbox Stretch="Fill">
1755+
<Grid>
1756+
<Path
1757+
x:Name="Path1"
1758+
Data="M5.25 4C4.55964 4 4 4.55964 4 5.25V9.75C4 10.4404 4.55964 11 5.25 11H9.75C10.4404 11 11 10.4404 11 9.75V5.25C11 4.55964 10.4404 4 9.75 4H5.25Z"
1759+
Fill="{ThemeResource Local.IconAltBrush}" />
1760+
<Path
1761+
x:Name="Path2"
1762+
Data="M5.25 17C4.55964 17 4 17.5596 4 18.25V22.75C4 23.4404 4.55964 24 5.25 24H9.75C10.4404 24 11 23.4404 11 22.75V18.25C11 17.5596 10.4404 17 9.75 17H5.25Z"
1763+
Fill="{ThemeResource Local.IconAltBrush}" />
1764+
<Path
1765+
x:Name="Path3"
1766+
Data="M9.75 16C10.9926 16 12 17.0074 12 18.25V22.75C12 23.9926 10.9926 25 9.75 25H5.25C4.00736 25 3 23.9926 3 22.75V18.25C3 17.0074 4.00736 16 5.25 16H9.75ZM9.75 17.5H5.25C4.83579 17.5 4.5 17.8358 4.5 18.25V22.75C4.5 23.1642 4.83579 23.5 5.25 23.5H9.75C10.1642 23.5 10.5 23.1642 10.5 22.75V18.25C10.5 17.8358 10.1642 17.5 9.75 17.5Z"
1767+
Fill="{ThemeResource Local.IconBaseBrush}" />
1768+
<Path
1769+
x:Name="Path4"
1770+
Data="M9.75 3C10.9926 3 12 4.00736 12 5.25V9.75C12 10.9926 10.9926 12 9.75 12H5.25C4.00736 12 3 10.9926 3 9.75V5.25C3 4.00736 4.00736 3 5.25 3H9.75ZM9.75 4.5H5.25C4.83579 4.5 4.5 4.83579 4.5 5.25V9.75C4.5 10.1642 4.83579 10.5 5.25 10.5H9.75C10.1642 10.5 10.5 10.1642 10.5 9.75V5.25C10.5 4.83579 10.1642 4.5 9.75 4.5Z"
1771+
Fill="{ThemeResource Local.IconBaseBrush}" />
1772+
<Path
1773+
x:Name="Path5"
1774+
Data="M14 7.25C14 6.83579 14.3358 6.5 14.75 6.5H24.25C24.6642 6.5 25 6.83579 25 7.25C25 7.66421 24.6642 8 24.25 8H14.75C14.3358 8 14 7.66421 14 7.25Z"
1775+
Fill="{ThemeResource Local.IconBaseBrush}" />
1776+
<Path
1777+
x:Name="Path6"
1778+
Data="M14.75 19.5C14.3358 19.5 14 19.8358 14 20.25C14 20.6642 14.3358 21 14.75 21H24.25C24.6642 21 25 20.6642 25 20.25C25 19.8358 24.6642 19.5 24.25 19.5H14.75Z"
1779+
Fill="{ThemeResource Local.IconBaseBrush}" />
1780+
</Grid>
1781+
1782+
<VisualStateManager.VisualStateGroups>
1783+
<VisualStateGroup>
1784+
<VisualState x:Name="Normal" />
1785+
<VisualState x:Name="Disabled" />
1786+
<VisualState x:Name="Selected">
1787+
<VisualState.Setters>
1788+
<Setter Target="Path1.Fill" Value="Transparent" />
1789+
<Setter Target="Path2.Fill" Value="Transparent" />
1790+
<Setter Target="Path3.Fill" Value="{ThemeResource Local.AccentContrastFillColorBrush}" />
1791+
<Setter Target="Path4.Fill" Value="{ThemeResource Local.AccentContrastFillColorBrush}" />
1792+
<Setter Target="Path5.Fill" Value="{ThemeResource Local.AccentContrastFillColorBrush}" />
1793+
<Setter Target="Path6.Fill" Value="{ThemeResource Local.AccentContrastFillColorBrush}" />
1794+
</VisualState.Setters>
1795+
</VisualState>
1796+
</VisualStateGroup>
1797+
</VisualStateManager.VisualStateGroups>
1798+
</Viewbox>
1799+
</ControlTemplate>
1800+
</Setter.Value>
1801+
</Setter>
1802+
</Style>
1803+
17501804
<Style x:Key="ColorIconTilesLayout" TargetType="local:OpacityIcon">
17511805
<Setter Property="Template">
17521806
<Setter.Value>

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,6 +2568,12 @@
25682568
<data name="LayoutTilesDescription" xml:space="preserve">
25692569
<value>Switch to tiles view</value>
25702570
</data>
2571+
<data name="LayoutListDescription" xml:space="preserve">
2572+
<value>Switch to list view</value>
2573+
</data>
2574+
<data name="List" xml:space="preserve">
2575+
<value>List</value>
2576+
</data>
25712577
<data name="LayoutGridSmallDescription" xml:space="preserve">
25722578
<value>Switch to grid view with small icons</value>
25732579
</data>

src/Files.App/UserControls/InnerNavigationToolbar.xaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@
625625
<RowDefinition MinHeight="30" />
626626
<RowDefinition MinHeight="30" />
627627
<RowDefinition MinHeight="30" />
628+
<RowDefinition MinHeight="30" />
628629
</Grid.RowDefinitions>
629630
<Grid.ColumnDefinitions>
630631
<ColumnDefinition Width="40" />
@@ -730,6 +731,38 @@
730731
Tapped="{x:Bind Commands.LayoutTiles.ExecuteTapped}"
731732
Text="{x:Bind Commands.LayoutTiles.Label}" />
732733

734+
<!-- List Layout -->
735+
<RadioButton
736+
Grid.Row="3"
737+
Grid.Column="0"
738+
Width="36"
739+
Height="32"
740+
MinWidth="0"
741+
Padding="0"
742+
HorizontalContentAlignment="Center"
743+
VerticalContentAlignment="Center"
744+
AutomationProperties.Name="{x:Bind Commands.LayoutList.AutomationName}"
745+
Command="{x:Bind Commands.LayoutList}"
746+
CornerRadius="{StaticResource ControlCornerRadius}"
747+
GroupName="LayoutRadio"
748+
IsChecked="{x:Bind ViewModel.IsListLayout, Mode=OneWay}"
749+
Style="{StaticResource DefaultToggleButtonStyle}"
750+
ToolTipService.ToolTip="{x:Bind Commands.LayoutList.LabelWithHotKey, Mode=OneWay}">
751+
<local:OpacityIcon
752+
Width="16"
753+
Height="16"
754+
IsSelected="{x:Bind ViewModel.IsListLayout, Mode=OneWay}"
755+
Style="{x:Bind Commands.LayoutList.OpacityStyle}" />
756+
</RadioButton>
757+
758+
<TextBlock
759+
x:Name="NavToolbarListHeader"
760+
Grid.Row="3"
761+
Grid.Column="1"
762+
VerticalAlignment="Center"
763+
Tapped="{x:Bind Commands.LayoutList.ExecuteTapped}"
764+
Text="{x:Bind Commands.LayoutList.Label}" />
765+
733766
<!-- Grid Small Layout -->
734767
<RadioButton
735768
Grid.Row="0"
@@ -798,7 +831,7 @@
798831
<Border
799832
Grid.RowSpan="4"
800833
Grid.Column="2"
801-
Height="120"
834+
Height="140"
802835
HorizontalAlignment="Center"
803836
VerticalAlignment="Center"
804837
BorderBrush="{ThemeResource DividerStrokeColorDefaultBrush}"

src/Files.App/ViewModels/UserControls/ToolbarViewModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ private void FolderSettings_PropertyChanged(object? sender, PropertyChangedEvent
953953
case nameof(LayoutPreferencesManager.LayoutMode):
954954
LayoutOpacityIcon = instanceViewModel.FolderSettings.LayoutMode switch
955955
{
956+
FolderLayoutModes.ListView => Commands.LayoutList.OpacityStyle!,
956957
FolderLayoutModes.TilesView => Commands.LayoutTiles.OpacityStyle!,
957958
FolderLayoutModes.ColumnView => Commands.LayoutColumns.OpacityStyle!,
958959
FolderLayoutModes.GridView =>
@@ -964,6 +965,7 @@ private void FolderSettings_PropertyChanged(object? sender, PropertyChangedEvent
964965
_ => Commands.LayoutDetails.OpacityStyle!
965966
};
966967
OnPropertyChanged(nameof(IsTilesLayout));
968+
OnPropertyChanged(nameof(IsListLayout));
967969
OnPropertyChanged(nameof(IsColumnLayout));
968970
OnPropertyChanged(nameof(IsGridSmallLayout));
969971
OnPropertyChanged(nameof(IsGridMediumLayout));
@@ -1022,7 +1024,8 @@ public List<ListedItem> SelectedItems
10221024
public bool IsGridSmallLayout => instanceViewModel.FolderSettings.LayoutMode is FolderLayoutModes.GridView && instanceViewModel.FolderSettings.GridViewSize <= Constants.Browser.GridViewBrowser.GridViewSizeSmall;
10231025
public bool IsGridMediumLayout => instanceViewModel.FolderSettings.LayoutMode is FolderLayoutModes.GridView && !IsGridSmallLayout && instanceViewModel.FolderSettings.GridViewSize <= Constants.Browser.GridViewBrowser.GridViewSizeMedium;
10241026
public bool IsGridLargeLayout => instanceViewModel.FolderSettings.LayoutMode is FolderLayoutModes.GridView && !IsGridSmallLayout && !IsGridMediumLayout;
1025-
public bool IsDetailsLayout => !IsTilesLayout && !IsColumnLayout && !IsGridSmallLayout && !IsGridMediumLayout && !IsGridLargeLayout;
1027+
public bool IsDetailsLayout => !IsListLayout && !IsTilesLayout && !IsColumnLayout && !IsGridSmallLayout && !IsGridMediumLayout && !IsGridLargeLayout;
1028+
public bool IsListLayout => instanceViewModel.FolderSettings.LayoutMode is FolderLayoutModes.ListView;
10261029

10271030
public string ExtractToText
10281031
=> IsSelectionArchivesOnly ? SelectedItems.Count > 1 ? string.Format("ExtractToChildFolder".GetLocalizedResource(), $"*{Path.DirectorySeparatorChar}") : string.Format("ExtractToChildFolder".GetLocalizedResource() + "\\", Path.GetFileNameWithoutExtension(selectedItems.First().Name)) : "ExtractToChildFolder".GetLocalizedResource();

src/Files.App/Views/Layouts/ColumnLayoutPage.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ protected override void BaseFolderSettings_LayoutModeChangeRequested(object? sen
498498
case FolderLayoutModes.DetailsView:
499499
parent.FolderSettings.ToggleLayoutModeDetailsView(true);
500500
break;
501+
case FolderLayoutModes.ListView:
502+
parent.FolderSettings.ToggleLayoutModeList(true);
503+
break;
501504
case FolderLayoutModes.TilesView:
502505
parent.FolderSettings.ToggleLayoutModeTiles(true);
503506
break;

0 commit comments

Comments
 (0)