polish osx navbar.
MODIFY
WalletWasabi.Fluent/Views/MainView.axaml
WalletWasabi.Fluent/Views/MainView.axaml
<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:sys="using:System"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="using:Avalonia.Xaml.Interactivity"
xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels"
+ xmlns:ex="using:WalletWasabi.Fluent.Helpers"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:DataType="vm:MainViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.MainView">
<Panel>
- <SplitView IsEnabled="{Binding IsMainContentEnabled}" IsPaneOpen="{Binding NavBar.IsOpen, Mode=TwoWay}">
+ <SplitView
+ IsEnabled="{Binding IsMainContentEnabled}"
+ IsPaneOpen="{Binding NavBar.IsOpen, Mode=TwoWay}">
+ <SplitView.CompactPaneLength>
+ <ex:Platform>
+ <ex:Platform.Default>
+ <sys:Double>48</sys:Double>
+ </ex:Platform.Default>
+ <ex:Platform.Osx>
+ <sys:Double>68</sys:Double>
+ </ex:Platform.Osx>
+ </ex:Platform>
+ </SplitView.CompactPaneLength>
<i:Interaction.Behaviors>
<behaviors:SplitViewAutoBehavior ToggleAction="{Binding NavBar.ToggleAction, Mode=OneWayToSource}"
CollapseOnClickAction="{Binding NavBar.CollapseOnClickAction, Mode=OneWayToSource}"

MODIFY
WalletWasabi.Fluent/Views/MainWindow.axaml
WalletWasabi.Fluent/Views/MainWindow.axaml
Background="{x:Null}"
TransparencyLevelHint="AcrylicBlur"
ExtendClientAreaToDecorationsHint="True"
- ExtendClientAreaChromeHints="PreferSystemChrome, OSXThickTitleBar"
+ ExtendClientAreaChromeHints="PreferSystemChrome"
Title="Wasabi Wallet">
<Panel Margin="{Binding #MainWindow.OffScreenMargin}">

MODIFY
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar/NavBar.axaml
</PathIcon.Data>
</PathIcon>
</Panel>
- <TextBlock Text="{Binding Title}" Margin="35 0 0 0" />
+ <TextBlock Text="{Binding Title}" Margin="65 0 0 0" />
</Panel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<Style Selector="PathIcon">
- <Setter Property="Margin" Value="1 0 0 0" />
+ <Setter Property="Margin" Value="13 0 0 0" />
+ <Setter Property="Height" Value="18" />
+ <Setter Property="Width" Value="18" />
</Style>
<Style Selector="Separator">
<Setter Property="Background" Value="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
</UserControl.Styles>
<DockPanel Margin="0 0 0 4">
<StackPanel DockPanel.Dock="Top" Spacing="5">
- <Panel Height="40" IsVisible="{h:Platform {x:Static h:Const.False}, Osx={x:Static h:Const.True}}" />
- <Button Classes="NavButton" Command="{Binding GoBack}" Background="Transparent" IsEnabled="{Binding IsBackButtonVisible}">
- <PathIcon Data="{StaticResource arrow_left_regular}" Width="16"/>
- </Button>
- <StackPanel Orientation="Horizontal" Spacing="16" Margin="0 -10 0 0">
- <PathIcon Data="{StaticResource wasabi_logo}" Height="40" Width="18" Margin="14 0 0 0" />
- <TextBlock Text="Wasabi Wallet" Classes="h6" VerticalAlignment="Center" FontWeight="SemiBold"/>
- </StackPanel>
+ <Panel Height="30" IsVisible="{h:Platform {x:Static h:Const.False}, Osx={x:Static h:Const.True}}" />
<Button Classes="NavButton" Command="{Binding DoToggleAction}" IsVisible="{h:Platform {x:Static h:Const.False}, Osx={x:Static h:Const.False}}">
<PathIcon Data="{StaticResource navigation_regular}" Width="16" />
</Button>
</PathIcon.Data>
</PathIcon>
</Panel>
- <TextBlock Text="{Binding Title}" Margin="35 0 0 0" />
+ <TextBlock Text="{Binding Title}" Margin="65 0 0 0" />
</Panel>
</TreeDataTemplate>
</c:NavBarTreeView.ItemTemplate>

polish osx navbar.