diff --git a/src/Files.App/Data/Contracts/IAppearanceSettingsService.cs b/src/Files.App/Data/Contracts/IAppearanceSettingsService.cs index ef3aa4543d7a..415d53c3ec26 100644 --- a/src/Files.App/Data/Contracts/IAppearanceSettingsService.cs +++ b/src/Files.App/Data/Contracts/IAppearanceSettingsService.cs @@ -111,5 +111,10 @@ public interface IAppearanceSettingsService : IBaseSettingsService, INotifyPrope /// Gets or sets a value whether the home button should be displayed. /// bool ShowHomeButton { get; set; } + + /// + /// Gets or sets a value whether the shelf pane toggle button should be displayed. + /// + bool ShowShelfPaneToggleButton{ get; set; } } } diff --git a/src/Files.App/Services/Settings/AppearanceSettingsService.cs b/src/Files.App/Services/Settings/AppearanceSettingsService.cs index 7a8a440aea4d..bedde39ef74d 100644 --- a/src/Files.App/Services/Settings/AppearanceSettingsService.cs +++ b/src/Files.App/Services/Settings/AppearanceSettingsService.cs @@ -152,6 +152,13 @@ public bool ShowHomeButton set => Set(value); } + /// + public bool ShowShelfPaneToggleButton + { + get => Get(false); + set => Set(value); + } + protected override void RaiseOnSettingChangedEvent(object sender, SettingChangedEventArgs e) { base.RaiseOnSettingChangedEvent(sender, e); diff --git a/src/Files.App/Strings/en-US/Resources.resw b/src/Files.App/Strings/en-US/Resources.resw index a219e91f76cc..5588e3984e7b 100644 --- a/src/Files.App/Strings/en-US/Resources.resw +++ b/src/Files.App/Strings/en-US/Resources.resw @@ -3969,7 +3969,7 @@ Navigate to the home page - Show Home in address bar + Show home button in address bar Toolbars @@ -4019,8 +4019,11 @@ Always switch focus to newly created tab - - Show Shelf Pane + + Toggle the shelf pane + + + Show shelf pane toggle in address bar Shelf @@ -4033,7 +4036,7 @@ Remove from shelf - Add to Shelf + Add to shelf Tooltip that displays when dragging items to the Shelf Pane \ No newline at end of file diff --git a/src/Files.App/UserControls/AddressToolbar.xaml b/src/Files.App/UserControls/AddressToolbar.xaml index f24e9101c231..e387f49169a6 100644 --- a/src/Files.App/UserControls/AddressToolbar.xaml +++ b/src/Files.App/UserControls/AddressToolbar.xaml @@ -5,6 +5,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" xmlns:contract8Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,8)" + xmlns:controls="using:Files.App.Controls" xmlns:converters="using:Files.App.Converters" xmlns:converters1="using:CommunityToolkit.WinUI.UI.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" @@ -469,7 +470,10 @@ Visibility="{x:Bind converters:MultiBooleanConverter.OrConvertToVisibility(ShowSearchBox, ViewModel.IsSearchBoxVisible), Mode=OneWay}" /> - + + + + + +