Skip to content

Feature: Option to hide the bottom status bar #17217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Files.App/Data/Contracts/IAppearanceSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ public interface IAppearanceSettingsService : IBaseSettingsService, INotifyPrope
/// Gets or sets a value whether the toolbar should be displayed.
/// </summary>
bool ShowToolbar { get; set; }


/// <summary>
/// Gets or sets a value whether the status bar should be displayed.
/// </summary>
bool ShowStatusBar { get; set; }

/// <summary>
/// Gets or sets a value whether the tab actions button should be displayed.
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/Files.App/Services/Settings/AppearanceSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public bool ShowToolbar
set => Set(value);
}

/// <inheritdoc/>
public bool ShowStatusBar
{
get => Get(true);
set => Set(value);
}

/// <inheritdoc/>
public bool ShowTabActions
{
Expand Down
5 changes: 4 additions & 1 deletion src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -4258,4 +4258,7 @@
<data name="SeeMore" xml:space="preserve">
<value>See more</value>
</data>
</root>
<data name="ShowStatusBar" xml:space="preserve">
<value>Show status bar at the bottom</value>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Files.App/ViewModels/MainPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ context.PageType is not ContentPageTypes.ReleaseNotes &&
context.PageType is not ContentPageTypes.Settings;

public bool ShowStatusBar =>
AppearanceSettingsService.ShowStatusBar &&
context.PageType is not ContentPageTypes.Home &&
context.PageType is not ContentPageTypes.ReleaseNotes &&
context.PageType is not ContentPageTypes.Settings;
Expand Down Expand Up @@ -178,6 +179,9 @@ public MainPageViewModel()
case nameof(AppearanceSettingsService.ShowToolbar):
OnPropertyChanged(nameof(ShowToolbar));
break;
case nameof(AppearanceSettingsService.ShowStatusBar):
OnPropertyChanged(nameof(ShowStatusBar));
break;
}
};

Expand Down
14 changes: 14 additions & 0 deletions src/Files.App/ViewModels/Settings/AppearanceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,20 @@ public bool ShowToolbar
}
}

public bool ShowStatusBar
{
get => UserSettingsService.AppearanceSettingsService.ShowStatusBar;
set
{
if (value != UserSettingsService.AppearanceSettingsService.ShowStatusBar)
{
UserSettingsService.AppearanceSettingsService.ShowStatusBar = value;

OnPropertyChanged();
}
}
}

public bool ShowTabActions
{
get => UserSettingsService.AppearanceSettingsService.ShowTabActions;
Expand Down
12 changes: 12 additions & 0 deletions src/Files.App/Views/Settings/AppearancePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@
IsOn="{x:Bind ViewModel.ShowTabActions, Mode=TwoWay}" />
</wctcontrols:SettingsCard>

<!-- Show Status bar -->
<wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ShowStatusBar}">
<wctcontrols:SettingsCard.HeaderIcon>
<!-- TODO: needs a new icon -->
<PathIcon Data="{StaticResource App.Theme.PathIcon.TabActions}" />
Comment on lines +249 to +250
Copy link
Contributor Author

@xwnb xwnb Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new icon needed.

</wctcontrols:SettingsCard.HeaderIcon>
<ToggleSwitch
AutomationProperties.AutomationControlType="Custom"
AutomationProperties.Name="{helpers:ResourceString Name=ShowStatusBar}"
IsOn="{x:Bind ViewModel.ShowStatusBar, Mode=TwoWay}" />
</wctcontrols:SettingsCard>

<!-- Toolbar -->
<wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=Toolbars}">
<wctcontrols:SettingsExpander.HeaderIcon>
Expand Down