Hardware wallet auth view
MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/HardwareWalletAuthDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/HardwareWalletAuthDialogViewModel.cs
@@ -19,8 +19,14 @@ namespace WalletWasabi.Fluent.ViewModels.Dialogs.Authorization
{
_wallet = wallet;
_buildTransactionResult = buildTransactionResult;
+ IsHardwareWallet = _wallet.KeyManager.IsHardwareWallet;
+ WalletIcon = _wallet.KeyManager.Icon;
}
+ public string? WalletIcon { get; }
+
+ public bool IsHardwareWallet { get; }
+
protected override async Task Authorize()
{
// Dequeue any coin-joining coins.

MODIFY
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml
xmlns:c="using:WalletWasabi.Fluent.Controls"
xmlns:dialog="using:WalletWasabi.Fluent.ViewModels.Dialogs"
xmlns:authorization="clr-namespace:WalletWasabi.Fluent.ViewModels.Dialogs.Authorization"
+ xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
x:DataType="authorization:HardwareWalletAuthDialogViewModel"
x:CompileBindings="True"
EnableBack="True"
EnableCancel="True" CancelContent="Cancel"
EnableNext="True" NextContent="Continue"
- IsBusy="{Binding IsBusy}">
+ IsBusy="{Binding IsBusy}"
+ ScrollViewer.VerticalScrollBarVisibility="Disabled">
+ <DockPanel LastChildFill="True" HorizontalAlignment="Center" VerticalAlignment="Center">
+
+ <TextBlock Text="Connect your hardware wallet, then press Continue to sign your transaction."
+ DockPanel.Dock="Bottom"
+ Margin="0 40 0 0"
+ HorizontalAlignment="Center"
+ TextWrapping="Wrap"
+ TextAlignment="Center"/>
+
+ <Viewbox MaxHeight="200">
+ <Image>
+ <Image.Source>
+ <MultiBinding Converter="{x:Static conv:WalletIconConverter.TypesToImage}">
+ <Binding Path="WalletIcon" Converter="{x:Static conv:WalletIconConverter.StringToType}" />
+ <Binding Path="IsHardwareWallet" Converter="{x:Static conv:WalletIconConverter.BoolToType}" />
+ </MultiBinding>
+ </Image.Source>
+ </Image>
+ </Viewbox>
+ </DockPanel>
</c:ContentArea>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
- xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors"
xmlns:c="using:WalletWasabi.Fluent.Controls"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Send"
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="450"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.Send.TransactionPreviewView">
<c:ContentArea Title="Send" Caption=""
- HorizontalAlignment="Left"
EnableBack="True"
EnableCancel="True"
- EnableNext="True"
- NextContent="Confirm"
+ EnableNext="True" NextContent="Confirm"
IsBusy="{Binding IsBusy}"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<StackPanel Spacing="50">

Hardware wallet auth view