use white tray icon on ios
MODIFY
WalletWasabi.Fluent/App.axaml
WalletWasabi.Fluent/App.axaml
<TrayIcon.Icons>
<TrayIcons>
- <TrayIcon Icon="/Assets/WasabiLogo.ico" Clicked="TrayIcon_OnClicked">
+ <TrayIcon Icon="{Binding TrayIcon}" Clicked="TrayIcon_OnClicked">
<NativeMenu.Menu>
<NativeMenu>
<NativeMenuItem Header="Show" Command="{Binding ShowCommand} " />

MODIFY
WalletWasabi.Fluent/ViewModels/ApplicationViewModel.cs
WalletWasabi.Fluent/ViewModels/ApplicationViewModel.cs
+using System.Runtime.InteropServices;
using System.Windows.Input;
using Avalonia;
+using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using ReactiveUI;
+using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.Providers;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.WabiSabi.Client;
@@ -35,8 +38,14 @@ namespace WalletWasabi.Fluent.ViewModels
});
ShowCommand = ReactiveCommand.Create(() => ShowRequested?.Invoke(this, EventArgs.Empty));
+
+ TrayIcon = RuntimeInformation.IsOSPlatform(OSPlatform.OSX)
+ ? new WindowIcon(AssetHelpers.GetBitmapAsset("avares://WalletWasabi.Fluent/Assets/WasabiLogo_white.ico"))
+ : new WindowIcon(AssetHelpers.GetBitmapAsset("avares://WalletWasabi.Fluent/Assets/WasabiLogo.ico"));
}
+ public WindowIcon TrayIcon { get; }
+
public event EventHandler? ShowRequested;
public ICommand QuitCommand { get; }

use white tray icon on ios