update avalonia and use avalonia default config (gpu on windows and mac)
MODIFY
Directory.Build.targets
Directory.Build.targets
<Project>
<PropertyGroup>
- <AvaloniaVersion>0.7.0-build367-beta</AvaloniaVersion>
+ <AvaloniaVersion>0.7.0-build382-beta</AvaloniaVersion>
<AvaloniaBehaviorsVersion>0.6.2-build562</AvaloniaBehaviorsVersion>
</PropertyGroup>

MODIFY
WalletWasabi.Gui/Program.cs
WalletWasabi.Gui/Program.cs
@@ -66,28 +66,6 @@ namespace WalletWasabi.Gui
}
}
- private static AppBuilder BuildAvaloniaApp()
- {
- var builder = AppBuilder.Configure<App>().UseReactiveUI();
-
- if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
- {
- builder.UseWin32().UseSkia();
- }
- else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
- {
- builder.UseAvaloniaNative(null, opts=>{
- opts.UseDeferredRendering = true;
- opts.UseGpu = true;
- opts.MacOptions.ShowInDock = true;
- }).UseSkia();
- }
- else
- {
- builder.UsePlatformDetect();
- }
-
- return builder;
- }
+ private static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure<App>().UsePlatformDetect().UseReactiveUI();
}
}

update avalonia and use avalonia default config (gpu on windows and mac)