initial logic of icon selection
MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarItemViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarItemViewModel.cs
@@ -25,6 +25,8 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
() => OnOpen(defaultNavigationMode));
}
+ public virtual string IconName { get; set; } = "navigation_regular";
+
public NavBarItemSelectionMode SelectionMode { get; protected set; }
public bool IsSelected

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
@@ -31,8 +31,6 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
CancelCommand = ReactiveCommand.Create(() => Navigate().Clear());
}
- public virtual string IconName => "navigation_regular";
-
public ICommand? NextCommand { get; protected set; }
public ICommand? SkipCommand { get; protected set; }

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModelBase.cs
@@ -32,6 +32,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
OpenCommand = ReactiveCommand.Create(() => Navigate().To(this, NavigationMode.Clear));
+ SetIcon();
}
public override string Title
@@ -46,6 +47,22 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
public bool IsLoggedIn => Wallet.IsLoggedIn;
+ private void SetIcon()
+ {
+ if (Wallet.KeyManager.Icon is { } iconString)
+ {
+ IconName = iconString;
+ }
+ else if (Wallet.KeyManager.IsHardwareWallet)
+ {
+ IconName = "";
+ }
+ else
+ {
+ IconName = "";
+ }
+ }
+
protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
{
base.OnNavigatedTo(isInHistory, disposables);

initial logic of icon selection