Skip to content

Commit c51ccf3

Browse files
authored
Feature: Reword 'add pane' to 'split pane' (#17387)
1 parent 2360937 commit c51ccf3

File tree

13 files changed

+97
-85
lines changed

13 files changed

+97
-85
lines changed

src/Files.App/Actions/Navigation/ArrangePanesHorizontallyAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public string Description
1515
=> Strings.ArrangePanesHorizontallyDescription.GetLocalizedResource();
1616

1717
public RichGlyph Glyph
18-
=> new(themedIconStyle: "App.ThemedIcons.Panes.Vertical");
18+
=> new(themedIconStyle: "App.ThemedIcons.Panes.Horizontal");
1919

2020
public bool IsOn
2121
=> MultiPanesContext.ShellPaneArrangement is ShellPaneArrangement.Horizontal;

src/Files.App/Actions/Navigation/ArrangePanesVerticallyAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public string Description
1515
=> Strings.ArrangePanesVerticallyDescription.GetLocalizedResource();
1616

1717
public RichGlyph Glyph
18-
=> new(themedIconStyle: "App.ThemedIcons.Panes.Horizontal");
18+
=> new(themedIconStyle: "App.ThemedIcons.Panes.Vertical");
1919

2020
public bool IsOn
2121
=> MultiPanesContext.ShellPaneArrangement is ShellPaneArrangement.Vertical;

src/Files.App/Actions/Navigation/AddHorizontalPaneAction.cs renamed to src/Files.App/Actions/Navigation/SplitPaneHorizontallyAction.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33

44
namespace Files.App.Actions
55
{
6-
internal sealed partial class AddHorizontalPaneAction : ObservableObject, IAction
6+
internal sealed partial class SplitPaneHorizontallyAction : ObservableObject, IAction
77
{
88
private readonly IContentPageContext ContentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>();
99
private readonly IGeneralSettingsService GeneralSettingsService = Ioc.Default.GetRequiredService<IGeneralSettingsService>();
1010

1111
public string Label
12-
=> Strings.AddHorizontalPane.GetLocalizedResource();
12+
=> Strings.SplitPaneHorizontally.GetLocalizedResource();
1313

1414
public string Description
15-
=> Strings.AddHorizontalPaneDescription.GetLocalizedResource();
15+
=> Strings.SplitPaneHorizontallyDescription.GetLocalizedResource();
1616

1717
public HotKey HotKey
1818
=> new(Keys.H, KeyModifiers.AltShift);
1919

2020
public RichGlyph Glyph
21-
=> new(themedIconStyle: "App.ThemedIcons.Panes.Vertical");
21+
=> new(themedIconStyle: "App.ThemedIcons.Panes.Horizontal");
2222

2323
public bool IsExecutable =>
2424
ContentPageContext.IsMultiPaneAvailable &&
2525
!ContentPageContext.IsMultiPaneActive;
2626

27-
public AddHorizontalPaneAction()
27+
public SplitPaneHorizontallyAction()
2828
{
2929
ContentPageContext.PropertyChanged += ContentPageContext_PropertyChanged;
3030
}

src/Files.App/Actions/Navigation/AddVerticalPaneAction.cs renamed to src/Files.App/Actions/Navigation/SplitPaneVerticallyAction.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
namespace Files.App.Actions
55
{
6-
internal sealed partial class AddVerticalPaneAction : ObservableObject, IAction
6+
internal sealed partial class SplitPaneVerticallyAction : ObservableObject, IAction
77
{
88
private readonly IContentPageContext ContentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>();
99
private readonly IGeneralSettingsService GeneralSettingsService = Ioc.Default.GetRequiredService<IGeneralSettingsService>();
1010

1111
public string Label
12-
=> Strings.AddVerticalPane.GetLocalizedResource();
12+
=> Strings.SplitPaneVertically.GetLocalizedResource();
1313

1414
public string Description
1515
=> Strings.AddVerticalPaneDescription.GetLocalizedResource();
@@ -18,13 +18,13 @@ public HotKey HotKey
1818
=> new(Keys.V, KeyModifiers.AltShift);
1919

2020
public RichGlyph Glyph
21-
=> new(themedIconStyle: "App.ThemedIcons.Panes.Horizontal");
21+
=> new(themedIconStyle: "App.ThemedIcons.Panes.Vertical");
2222

2323
public bool IsExecutable =>
2424
ContentPageContext.IsMultiPaneAvailable &&
2525
!ContentPageContext.IsMultiPaneActive;
2626

27-
public AddVerticalPaneAction()
27+
public SplitPaneVerticallyAction()
2828
{
2929
ContentPageContext.PropertyChanged += ContentPageContext_PropertyChanged;
3030
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ public enum CommandCodes
212212
// Shell Panes
213213
CloseActivePane,
214214
FocusOtherPane,
215-
AddVerticalPane,
216-
AddHorizontalPane,
215+
SplitPaneVertically,
216+
SplitPaneHorizontally,
217217
ArrangePanesVertically,
218218
ArrangePanesHorizontally,
219219

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public IRichCommand this[HotKey hotKey]
213213
public IRichCommand CloseSelectedTab => commands[CommandCodes.CloseSelectedTab];
214214
public IRichCommand CloseActivePane => commands[CommandCodes.CloseActivePane];
215215
public IRichCommand FocusOtherPane => commands[CommandCodes.FocusOtherPane];
216-
public IRichCommand AddVerticalPane => commands[CommandCodes.AddVerticalPane];
217-
public IRichCommand AddHorizontalPane => commands[CommandCodes.AddHorizontalPane];
216+
public IRichCommand SplitPaneVertically => commands[CommandCodes.SplitPaneVertically];
217+
public IRichCommand SplitPaneHorizontally => commands[CommandCodes.SplitPaneHorizontally];
218218
public IRichCommand ArrangePanesVertically => commands[CommandCodes.ArrangePanesVertically];
219219
public IRichCommand ArrangePanesHorizontally => commands[CommandCodes.ArrangePanesHorizontally];
220220
public IRichCommand OpenFileLocation => commands[CommandCodes.OpenFileLocation];
@@ -420,8 +420,8 @@ public IEnumerator<IRichCommand> GetEnumerator() =>
420420
[CommandCodes.CloseSelectedTab] = new CloseSelectedTabAction(),
421421
[CommandCodes.CloseActivePane] = new CloseActivePaneAction(),
422422
[CommandCodes.FocusOtherPane] = new FocusOtherPaneAction(),
423-
[CommandCodes.AddVerticalPane] = new AddVerticalPaneAction(),
424-
[CommandCodes.AddHorizontalPane] = new AddHorizontalPaneAction(),
423+
[CommandCodes.SplitPaneVertically] = new SplitPaneVerticallyAction(),
424+
[CommandCodes.SplitPaneHorizontally] = new SplitPaneHorizontallyAction(),
425425
[CommandCodes.ArrangePanesVertically] = new ArrangePanesVerticallyAction(),
426426
[CommandCodes.ArrangePanesHorizontally] = new ArrangePanesHorizontallyAction(),
427427
[CommandCodes.OpenFileLocation] = new OpenFileLocationAction(),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ public interface ICommandManager : IEnumerable<IRichCommand>
195195

196196
IRichCommand CloseActivePane { get; }
197197
IRichCommand FocusOtherPane { get; }
198-
IRichCommand AddVerticalPane { get; }
199-
IRichCommand AddHorizontalPane { get; }
198+
IRichCommand SplitPaneVertically { get; }
199+
IRichCommand SplitPaneHorizontally { get; }
200200
IRichCommand ArrangePanesVertically { get; }
201201
IRichCommand ArrangePanesHorizontally { get; }
202202

src/Files.App/Services/Settings/GeneralSettingsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public string UserId
365365

366366
public ShellPaneArrangement ShellPaneArrangementOption
367367
{
368-
get => (ShellPaneArrangement)Get((long)ShellPaneArrangement.Horizontal);
368+
get => (ShellPaneArrangement)Get((long)ShellPaneArrangement.Vertical);
369369
set => Set((long)value);
370370
}
371371

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,17 +4033,17 @@
40334033
<data name="TabActions" xml:space="preserve">
40344034
<value>Tab actions menu</value>
40354035
</data>
4036-
<data name="AddVerticalPane" xml:space="preserve">
4037-
<value>Vertical pane</value>
4036+
<data name="SplitPaneVertically" xml:space="preserve">
4037+
<value>Split vertically</value>
40384038
</data>
40394039
<data name="AddVerticalPaneDescription" xml:space="preserve">
4040-
<value>Add vertical pane</value>
4040+
<value>Split pane vertically</value>
40414041
</data>
4042-
<data name="AddHorizontalPane" xml:space="preserve">
4043-
<value>Horizontal pane</value>
4042+
<data name="SplitPaneHorizontally" xml:space="preserve">
4043+
<value>Split horizontally</value>
40444044
</data>
4045-
<data name="AddHorizontalPaneDescription" xml:space="preserve">
4046-
<value>Add horizontal pane</value>
4045+
<data name="SplitPaneHorizontallyDescription" xml:space="preserve">
4046+
<value>Split pane horizontally</value>
40474047
</data>
40484048
<data name="ArrangePanesVertically" xml:space="preserve">
40494049
<value>Arrange vertically</value>
@@ -4057,17 +4057,20 @@
40574057
<data name="ArrangePanesHorizontallyDescription" xml:space="preserve">
40584058
<value>Arrange panes horizontally</value>
40594059
</data>
4060-
<data name="AddPane" xml:space="preserve">
4061-
<value>Add pane</value>
4060+
<data name="SplitPane" xml:space="preserve">
4061+
<value>Split pane</value>
40624062
</data>
40634063
<data name="ShowTabActions" xml:space="preserve">
40644064
<value>Show tab actions button in the title bar</value>
40654065
</data>
40664066
<data name="ArrangePanes" xml:space="preserve">
40674067
<value>Arrange panes</value>
40684068
</data>
4069-
<data name="DefaultPaneArrangement" xml:space="preserve">
4070-
<value>Default pane arrangement</value>
4069+
<data name="DualPaneSplitDirection" xml:space="preserve">
4070+
<value>Default dual pane split direction</value>
4071+
</data>
4072+
<data name="DualPane" xml:space="preserve">
4073+
<value>Dual pane mode</value>
40714074
</data>
40724075
<data name="Horizontal" xml:space="preserve">
40734076
<value>Horizontal</value>

src/Files.App/UserControls/TabBar/TabBar.xaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -143,24 +143,24 @@
143143
<!-- Add Pane -->
144144
<MenuFlyoutSubItem
145145
x:Name="SplitPaneMenuItem"
146-
x:Load="{x:Bind Commands.AddHorizontalPane.IsExecutable, Mode=OneWay}"
147-
Text="{helpers:ResourceString Name=AddPane}">
148-
<MenuFlyoutSubItem.Items>
149-
<!-- Horizontal -->
150-
<uc:MenuFlyoutItemWithThemedIcon
151-
x:Name="AddHorizontalPaneTabActionButton"
152-
Command="{x:Bind Commands.AddHorizontalPane, Mode=OneWay}"
153-
KeyboardAcceleratorTextOverride="{x:Bind Commands.AddHorizontalPane.HotKeyText, Mode=OneWay}"
154-
Text="{x:Bind Commands.AddHorizontalPane.Label}"
155-
ThemedIconStyle="{x:Bind Commands.AddHorizontalPane.ThemedIconStyle}" />
156-
146+
x:Load="{x:Bind Commands.SplitPaneHorizontally.IsExecutable, Mode=OneWay}"
147+
Text="{helpers:ResourceString Name=SplitPane}">
148+
<MenuFlyoutSubItem.Items>
157149
<!-- Vertical -->
158150
<uc:MenuFlyoutItemWithThemedIcon
159151
x:Name="AddVerticalPaneTabActionButton"
160-
Command="{x:Bind Commands.AddVerticalPane, Mode=OneWay}"
161-
KeyboardAcceleratorTextOverride="{x:Bind Commands.AddVerticalPane.HotKeyText, Mode=OneWay}"
162-
Text="{x:Bind Commands.AddVerticalPane.Label}"
163-
ThemedIconStyle="{x:Bind Commands.AddVerticalPane.ThemedIconStyle}" />
152+
Command="{x:Bind Commands.SplitPaneVertically, Mode=OneWay}"
153+
KeyboardAcceleratorTextOverride="{x:Bind Commands.SplitPaneVertically.HotKeyText, Mode=OneWay}"
154+
Text="{x:Bind Commands.SplitPaneVertically.Label}"
155+
ThemedIconStyle="{x:Bind Commands.SplitPaneVertically.ThemedIconStyle}" />
156+
157+
<!-- Horizontal -->
158+
<uc:MenuFlyoutItemWithThemedIcon
159+
x:Name="SplitPaneHorizontalTabActionButton"
160+
Command="{x:Bind Commands.SplitPaneHorizontally, Mode=OneWay}"
161+
KeyboardAcceleratorTextOverride="{x:Bind Commands.SplitPaneHorizontally.HotKeyText, Mode=OneWay}"
162+
Text="{x:Bind Commands.SplitPaneHorizontally.Label}"
163+
ThemedIconStyle="{x:Bind Commands.SplitPaneHorizontally.ThemedIconStyle}" />
164164
</MenuFlyoutSubItem.Items>
165165
</MenuFlyoutSubItem>
166166

@@ -170,15 +170,6 @@
170170
x:Load="{x:Bind Commands.CloseActivePane.IsExecutable, Mode=OneWay}"
171171
Text="{helpers:ResourceString Name=ArrangePanes}">
172172
<MenuFlyoutSubItem.Items>
173-
<!-- Horizontal -->
174-
<uc:ToggleMenuFlyoutItemWithThemedIcon
175-
x:Name="ArrangePanesHorizontallyTabActionButton"
176-
Command="{x:Bind Commands.ArrangePanesHorizontally, Mode=OneWay}"
177-
IsChecked="{x:Bind Commands.ArrangePanesHorizontally.IsOn, Mode=OneWay}"
178-
KeyboardAcceleratorTextOverride="{x:Bind Commands.ArrangePanesHorizontally.HotKeyText, Mode=OneWay}"
179-
Text="{x:Bind Commands.ArrangePanesHorizontally.Label}"
180-
ThemedIconStyle="{x:Bind Commands.ArrangePanesHorizontally.ThemedIconStyle}" />
181-
182173
<!-- Vertical -->
183174
<uc:ToggleMenuFlyoutItemWithThemedIcon
184175
x:Name="ArrangePanesVerticallyTabActionButton"
@@ -187,6 +178,15 @@
187178
KeyboardAcceleratorTextOverride="{x:Bind Commands.ArrangePanesVertically.HotKeyText, Mode=OneWay}"
188179
Text="{x:Bind Commands.ArrangePanesVertically.Label}"
189180
ThemedIconStyle="{x:Bind Commands.ArrangePanesVertically.ThemedIconStyle}" />
181+
182+
<!-- Horizontal -->
183+
<uc:ToggleMenuFlyoutItemWithThemedIcon
184+
x:Name="ArrangePanesHorizontallyTabActionButton"
185+
Command="{x:Bind Commands.ArrangePanesHorizontally, Mode=OneWay}"
186+
IsChecked="{x:Bind Commands.ArrangePanesHorizontally.IsOn, Mode=OneWay}"
187+
KeyboardAcceleratorTextOverride="{x:Bind Commands.ArrangePanesHorizontally.HotKeyText, Mode=OneWay}"
188+
Text="{x:Bind Commands.ArrangePanesHorizontally.Label}"
189+
ThemedIconStyle="{x:Bind Commands.ArrangePanesHorizontally.ThemedIconStyle}" />
190190
</MenuFlyoutSubItem.Items>
191191
</MenuFlyoutSubItem>
192192

0 commit comments

Comments
 (0)