Skip to content
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

Feature: Added a header to the home page #14864

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
13 changes: 12 additions & 1 deletion src/Files.App/UserControls/InnerNavigationToolbar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,22 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBlock
yaira2 marked this conversation as resolved.
Show resolved Hide resolved
x:Name="HomePageHeaderTextBlock"
Grid.Column="0"
Margin="18,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
x:Load="{x:Bind ViewModel.InstanceViewModel.IsPageTypeNotHome, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
Style="{StaticResource App.Theme.SubtitleTextBlockStyle}"
Text="Home" />
yaira2 marked this conversation as resolved.
Show resolved Hide resolved

<!-- Context Commands -->
<CommandBar
x:Name="ContextCommandBar"
Grid.Column="0"
HorizontalAlignment="Left"
x:Load="{x:Bind ViewModel.InstanceViewModel.IsPageTypeNotHome, Mode=OneWay}"
DefaultLabelPosition="Right">
<CommandBar.PrimaryCommands>

Expand Down Expand Up @@ -125,7 +136,7 @@
</AppBarButton>

<!-- (Divider) -->
<AppBarSeparator />
<AppBarSeparator x:Name="PrimaryActionSeparator" />

<!-- Cut -->
<AppBarButton
Expand Down
3 changes: 0 additions & 3 deletions src/Files.App/UserControls/InnerNavigationToolbar.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
// Copyright (c) 2023 Files Community
// Licensed under the MIT License. See the LICENSE.

using Files.App.Data.Commands;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media.Imaging;
using System.IO;

// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236

namespace Files.App.UserControls
{
public sealed partial class InnerNavigationToolbar : UserControl
Expand Down
Loading