Customise navbar slightly when on OSX.
DELETE
WalletWasabi.Fluent/Helpers/Platform.cs
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-
-namespace WalletWasabi.Fluent.Helpers
-{
- public static class Platform
- {
- public static bool IsOSX { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
-
- public static bool IsLinux { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
-
- public static bool IsWindows { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
- }
-}

ADD
WalletWasabi.Fluent/Helpers/PlatformExtension.cs
+using Avalonia.Markup.Xaml;
+using System;
+using System.Runtime.InteropServices;
+
+namespace WalletWasabi.Fluent.Helpers
+{
+ public class PlatformExtension : MarkupExtension
+ {
+ public PlatformExtension(object defaultValue)
+ {
+ Default = defaultValue;
+ }
+
+ public object Default { get; set; }
+
+ public object Osx { get; set; }
+
+ public object Linux { get; set; }
+
+ public object Windows { get; set; }
+
+ public override object ProvideValue(IServiceProvider serviceProvider)
+ {
+ var result = Default;
+
+ if(Osx != null && RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ {
+ result = Osx;
+ }
+ else if(Linux != null && RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ {
+ result = Linux;
+ }
+ else if(Windows != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ result = Windows;
+ }
+
+ return result;
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/Views/NavBar.axaml
WalletWasabi.Fluent/Views/NavBar.axaml
<StackPanel.Resources>
<Thickness x:Key="ControlCornerRadius">0</Thickness>
</StackPanel.Resources>
- <Panel Height="40" IsVisible="{x:Static h:Platform.IsOSX}" />
+ <Panel Height="40" IsVisible="{h:Platform {x:Static h:Const.False}, Osx={x:Static h:Const.True}}" />
<StackPanel Orientation="Horizontal" Spacing="10">
<Button Classes="NavButton" Command="{Binding GoBack}" Background="Transparent" IsEnabled="{Binding IsBackButtonVisible}">
<PathIcon Data="{StaticResource arrow_left_regular}" Width="16" />
</Button>
<TextBlock Text="Wasabi Wallet" Foreground="White" VerticalAlignment="Center"/>
</StackPanel>
- <Button Classes="NavButton" Command="{Binding DoToggleAction}">
+ <Button Classes="NavButton" Command="{Binding DoToggleAction}" IsVisible="{h:Platform {x:Static h:Const.True}, OSX={x:Static h:Const.False}}">
<PathIcon Data="{StaticResource navigation_regular}" Width="16" />
</Button>
<c:NavBarListBox Items="{Binding TopItems}" SelectedItem="{Binding SelectedItem}" />

Customise navbar slightly when on OSX.