update avalonia native with some osx specific customizations
to make window management integrated with osx rather than looking like a simulated windows style app.
MODIFY
WalletWasabi.Dependencies/AvalonStudio.Shell
WalletWasabi.Dependencies/AvalonStudio.Shell
-Subproject commit b344ebac7a4e608bc21cd630a27735991451069a
+Subproject commit 777d85ab80b05926b975022f0ed17becd210f44f

MODIFY
WalletWasabi.Gui/MainWindow.xaml.cs
WalletWasabi.Gui/MainWindow.xaml.cs
using System;
using System.IO;
using System.Linq;
+using System.Runtime.InteropServices;
using Avalonia;
using Avalonia.Markup.Xaml;
+using Avalonia.Media;
using AvalonStudio.Extensibility;
+using AvalonStudio.Extensibility.Theme;
using AvalonStudio.Shell;
using AvalonStudio.Shell.Controls;
using WalletWasabi.Gui.Tabs.WalletManager;
@@ -18,6 +21,15 @@ namespace WalletWasabi.Gui
#if DEBUG
this.AttachDevTools();
#endif
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ {
+ HasSystemDecorations = true;
+
+ // This will need implementing properly once this is supported by avalonia itself.
+ var color = (ColorTheme.CurrentTheme.Background as SolidColorBrush).Color;
+ (PlatformImpl as Avalonia.Native.WindowImpl).SetTitleBarColor(color);
+ }
}
private void InitializeComponent()

MODIFY
WalletWasabi.Gui/WalletWasabi.Gui.csproj
WalletWasabi.Gui/WalletWasabi.Gui.csproj
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" />
- <PackageReference Include="Avalonia.Native" Version="0.7.0-build4201810102" />
+ <PackageReference Include="Avalonia.Native" Version="0.7.0-build4201810118" />
</ItemGroup>
<ItemGroup>

update avalonia native with some osx specific customizations

to make window management integrated with osx rather than looking like a simulated windows style app.