|
14 | 14 | xmlns:keyboard="using:Files.App.UserControls.KeyboardShortcut" |
15 | 15 | xmlns:local="using:Files.App.UserControls" |
16 | 16 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 17 | + xmlns:s="using:Files.App.UserControls.Symbols" |
17 | 18 | xmlns:triggers="using:CommunityToolkit.WinUI.UI.Triggers" |
18 | 19 | xmlns:uc="using:Files.App.UserControls" |
19 | 20 | xmlns:ucs="using:Files.App.UserControls.StatusCenter" |
|
263 | 264 | </AnimatedIcon> |
264 | 265 | </ToggleButton> |
265 | 266 |
|
266 | | - <StackPanel FlowDirection="LeftToRight" Orientation="Horizontal"> |
267 | | - <Button |
268 | | - x:Name="Back" |
269 | | - AccessKey="B" |
270 | | - AccessKeyInvoked="Button_AccessKeyInvoked" |
271 | | - AutomationProperties.FullDescription="{x:Bind ViewModel.Commands.NavigateBack.Description, Mode=OneWay}" |
272 | | - AutomationProperties.Name="{x:Bind ViewModel.Commands.NavigateBack.Label, Mode=OneWay}" |
273 | | - Command="{x:Bind ViewModel.Commands.NavigateBack, Mode=OneWay}" |
274 | | - IsEnabled="{x:Bind ViewModel.Commands.NavigateBack.IsExecutable, Mode=OneWay}" |
275 | | - Style="{StaticResource AddressToolbarButtonStyle}" |
276 | | - ToolTipService.ToolTip="{x:Bind ViewModel.Commands.NavigateBack.LabelWithHotKey, Mode=OneWay}"> |
277 | | - <FontIcon FontSize="14" Glyph="{x:Bind ViewModel.Commands.NavigateBack.Glyph.BaseGlyph, Mode=OneWay}" /> |
278 | | - <Button.ContextFlyout> |
279 | | - <MenuFlyout |
280 | | - x:Name="BackHistoryFlyout" |
281 | | - Opening="BackHistoryFlyout_Opening" |
282 | | - Placement="BottomEdgeAlignedLeft" |
283 | | - ScrollViewer.VerticalScrollBarVisibility="Auto" |
284 | | - ScrollViewer.VerticalScrollMode="Auto"> |
285 | | - <MenuFlyout.MenuFlyoutPresenterStyle> |
286 | | - <Style TargetType="MenuFlyoutPresenter"> |
287 | | - <Setter Property="MaxHeight" Value="400" /> |
288 | | - <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
289 | | - <Setter Target="HighContrastAdjustment" Value="None" /> |
290 | | - </Style> |
291 | | - </MenuFlyout.MenuFlyoutPresenterStyle> |
292 | | - </MenuFlyout> |
293 | | - </Button.ContextFlyout> |
294 | | - </Button> |
295 | | - |
296 | | - <Button |
| 267 | + <Button |
| 268 | + x:Name="Back" |
| 269 | + AccessKey="B" |
| 270 | + AccessKeyInvoked="Button_AccessKeyInvoked" |
| 271 | + AutomationProperties.FullDescription="{x:Bind ViewModel.Commands.NavigateBack.Description, Mode=OneWay}" |
| 272 | + AutomationProperties.Name="{x:Bind ViewModel.Commands.NavigateBack.Label, Mode=OneWay}" |
| 273 | + Command="{x:Bind ViewModel.Commands.NavigateBack, Mode=OneWay}" |
| 274 | + IsEnabled="{x:Bind ViewModel.Commands.NavigateBack.IsExecutable, Mode=OneWay}" |
| 275 | + Style="{StaticResource AddressToolbarButtonStyle}" |
| 276 | + ToolTipService.ToolTip="{x:Bind ViewModel.Commands.NavigateBack.LabelWithHotKey, Mode=OneWay}"> |
| 277 | + <s:ArrowGlyph Arrow="Back" FontSize="14" /> |
| 278 | + <Button.ContextFlyout> |
| 279 | + <MenuFlyout |
| 280 | + x:Name="BackHistoryFlyout" |
| 281 | + Opening="BackHistoryFlyout_Opening" |
| 282 | + Placement="BottomEdgeAlignedLeft" |
| 283 | + ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 284 | + ScrollViewer.VerticalScrollMode="Auto"> |
| 285 | + <MenuFlyout.MenuFlyoutPresenterStyle> |
| 286 | + <Style TargetType="MenuFlyoutPresenter"> |
| 287 | + <Setter Property="MaxHeight" Value="400" /> |
| 288 | + <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
| 289 | + <Setter Target="HighContrastAdjustment" Value="None" /> |
| 290 | + </Style> |
| 291 | + </MenuFlyout.MenuFlyoutPresenterStyle> |
| 292 | + </MenuFlyout> |
| 293 | + </Button.ContextFlyout> |
| 294 | + </Button> |
| 295 | + |
| 296 | + <Button |
297 | 297 | x:Name="Forward" |
298 | 298 | AccessKey="F" |
299 | 299 | AccessKeyInvoked="Button_AccessKeyInvoked" |
|
303 | 303 | IsEnabled="{x:Bind ViewModel.Commands.NavigateForward.IsExecutable, Mode=OneWay}" |
304 | 304 | Style="{StaticResource AddressToolbarButtonStyle}" |
305 | 305 | ToolTipService.ToolTip="{x:Bind ViewModel.Commands.NavigateForward.LabelWithHotKey, Mode=OneWay}"> |
306 | | - <FontIcon FontSize="14" Glyph="{x:Bind ViewModel.Commands.NavigateForward.Glyph.BaseGlyph, Mode=OneWay}" /> |
307 | | - <Button.ContextFlyout> |
308 | | - <MenuFlyout |
| 306 | + <s:ArrowGlyph Arrow="Forward" FontSize="14" /> |
| 307 | + <Button.ContextFlyout> |
| 308 | + <MenuFlyout |
309 | 309 | x:Name="ForwardHistoryFlyout" |
310 | 310 | Opening="ForwardHistoryFlyout_Opening" |
311 | 311 | Placement="BottomEdgeAlignedLeft" |
312 | 312 | ScrollViewer.VerticalScrollBarVisibility="Auto" |
313 | 313 | ScrollViewer.VerticalScrollMode="Auto"> |
314 | | - <MenuFlyout.MenuFlyoutPresenterStyle> |
315 | | - <Style TargetType="MenuFlyoutPresenter"> |
316 | | - <Setter Property="MaxHeight" Value="400" /> |
317 | | - <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
318 | | - <Setter Target="HighContrastAdjustment" Value="None" /> |
319 | | - </Style> |
320 | | - </MenuFlyout.MenuFlyoutPresenterStyle> |
321 | | - </MenuFlyout> |
322 | | - </Button.ContextFlyout> |
323 | | - </Button> |
324 | | - </StackPanel> |
| 314 | + <MenuFlyout.MenuFlyoutPresenterStyle> |
| 315 | + <Style TargetType="MenuFlyoutPresenter"> |
| 316 | + <Setter Property="MaxHeight" Value="400" /> |
| 317 | + <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
| 318 | + <Setter Target="HighContrastAdjustment" Value="None" /> |
| 319 | + </Style> |
| 320 | + </MenuFlyout.MenuFlyoutPresenterStyle> |
| 321 | + </MenuFlyout> |
| 322 | + </Button.ContextFlyout> |
| 323 | + </Button> |
325 | 324 |
|
326 | 325 | <Button |
327 | 326 | x:Name="Up" |
|
0 commit comments