Skip to content

Commit

Permalink
💄 Make address bar more like Files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamparter committed Sep 18, 2024
1 parent 988b67c commit 7905fc5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/FluentHub.App/Views/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Copyright (c) 2022-2024 0x5BFA. Licensed under the MIT License. See the LICENSE. -->
<!-- Copyright (c) 2022-2024 0x5BFA. Licensed under the MIT License. See the LICENSE. -->
<Page
x:Class="FluentHub.App.Views.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Expand Down Expand Up @@ -75,6 +75,17 @@
<SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="Transparent" />
<Thickness x:Key="NavigationViewContentGridBorderThickness">0</Thickness>
<CornerRadius x:Key="NavigationViewContentGridCornerRadius">0</CornerRadius>
<!-- Definitely not copied directly from Files.... -->
<Style
x:Key="AddressToolbarButtonStyle"
BasedOn="{StaticResource DefaultButtonStyle}"
TargetType="Button">
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Width" Value="36" />
<Setter Property="Height" Value="32" />
</Style>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>

Expand Down Expand Up @@ -167,6 +178,7 @@
Padding="0"
Command="{x:Bind ViewModel.GoBackCommand, Mode=OneWay}"
IsEnabled="{x:Bind CustomCustomTabView.SelectedItem.NavigationHistory.CanGoBack, Mode=OneWay}"
Style="{StaticResource AddressToolbarButtonStyle}"
ToolTipService.ToolTip="{helpers:ResourceString Name=GoBackButton/ToolTipService/Tooltip}">
<Viewbox Width="16">
<AnimatedIcon>
Expand All @@ -188,6 +200,7 @@
Padding="0"
x:Load="{x:Bind CustomCustomTabView.SelectedItem.NavigationHistory.CanGoForward, Mode=OneWay}"
Command="{x:Bind ViewModel.GoForwardCommand, Mode=OneWay}"
Style="{StaticResource AddressToolbarButtonStyle}"
ToolTipService.ToolTip="{helpers:ResourceString Name=GoForwardButton/ToolTipService/Tooltip}">
<Viewbox Width="16">
<AnimatedIcon>
Expand All @@ -212,6 +225,7 @@
Padding="0"
Command="{x:Bind ViewModel.ReloadCommand, Mode=OneWay}"
IsEnabled="{x:Bind CustomCustomTabView.SelectedItem.NavigationHistory.CanReload, Mode=OneWay}"
Style="{StaticResource AddressToolbarButtonStyle}"
ToolTipService.ToolTip="Refresh">
<FontIcon FontSize="14" Glyph="&#xE72C;" />
</Button>
Expand Down

0 comments on commit 7905fc5

Please sign in to comment.