make it work on add hw wallet page
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/ConnectHardwareWalletViewModel.cs
@@ -85,6 +85,14 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
public ICommand NavigateToExistingWalletLoginCommand { get; }
+ public WalletType Ledger => WalletType.Ledger;
+
+ public WalletType Coldcard => WalletType.Coldcard;
+
+ public WalletType Trezor => WalletType.Trezor;
+
+ public WalletType Generic => WalletType.Unknown;
+
private void StartDetection()
{
Message = "";

MODIFY
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/ConnectHardwareWalletView.axaml
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/ConnectHardwareWalletView.axaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="using:WalletWasabi.Fluent.Controls"
xmlns:hardwareWallet="using:WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet"
+ xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
x:DataType="hardwareWallet:ConnectHardwareWalletViewModel"
x:CompileBindings="True"
<Grid RowDefinitions="*,3*,Auto">
<Viewbox MaxHeight="150" Grid.Row="0" DockPanel.Dock="Top" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0 30 0 0">
<StackPanel Spacing="40" Orientation="Horizontal">
- <Image Height="100" Source="/Assets/WalletIcons/Dark/ledger.png" />
- <Image Height="100" Source="/Assets/WalletIcons/Dark/coldcard.png" />
- <Image Height="100" Source="/Assets/WalletIcons/Dark/trezor.png" />
- <Image Height="100" Source="/Assets/WalletIcons/Dark/generic.png" />
+ <Image Height="100" Source="{Binding Ledger, Converter={x:Static conv:WalletIconConverter.WalletTypeToImage}}" />
+ <Image Height="100" Source="{Binding Coldcard, Converter={x:Static conv:WalletIconConverter.WalletTypeToImage}}" />
+ <Image Height="100" Source="{Binding Trezor, Converter={x:Static conv:WalletIconConverter.WalletTypeToImage}}" />
+ <Image Height="100" Source="{Binding Generic, Converter={x:Static conv:WalletIconConverter.WalletTypeToImage}}" />
</StackPanel>
</Viewbox>
<Panel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1">

make it work on add hw wallet page