fix spacing on osx
MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml
Title="{Binding Title}" Width="1200" Height="800" MinWidth="1000" MinHeight="800"
FontFamily="{DynamicResource UiFont}" FontSize="14"
Foreground="{DynamicResource ThemeForegroundBrush}">
- <internal:ManagedFileChooser Margin="12 6"/>
+ <internal:ManagedFileChooser Margin="12 0 12 6"/>
</cont:MetroWindow>

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml.cs
using System;
+using System.Runtime.InteropServices;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
+using Avalonia.Media;
+using Avalonia.Native;
+using AvalonStudio.Extensibility.Theme;
using AvalonStudio.Shell.Controls;
namespace WalletWasabi.Gui.ManagedDialogs
@@ -14,6 +18,15 @@ namespace WalletWasabi.Gui.ManagedDialogs
#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 WindowImpl).SetTitleBarColor(color);
+ }
}
}
}

fix spacing on osx