show a green shield when txn has best possible privacy.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -37,6 +37,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
[AutoNotify] private bool _transactionHasChange;
[AutoNotify] private bool _transactionHasPockets;
[AutoNotify] private bool _adjustFeeAvailable;
+ [AutoNotify] private bool _maxPrivacy;
+ [AutoNotify] private bool _issuesTooltip;
public TransactionPreviewViewModel(Wallet wallet, TransactionInfo info)
{
@@ -52,6 +54,12 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
IsPayJoin = PayJoinUrl is not null;
AdjustFeeAvailable = !TransactionFeeHelper.AreTransactionFeesEqual(_wallet);
+ this.WhenAnyValue(x => x.TransactionHasChange, x => x.TransactionHasPockets)
+ .Subscribe(_ =>
+ {
+ MaxPrivacy = !TransactionHasPockets && !TransactionHasChange;
+ });
+
if (PreferPsbtWorkflow)
{
SkipCommand = ReactiveCommand.CreateFromTask(OnConfirmAsync);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10" VerticalAlignment="Center">
<Image Width="120" Source="avares://WalletWasabi.Fluent/Assets/TechnologyLogos/payjoin.png"
ToolTip.Tip="Your privacy is being protected with PayJoin." IsVisible="{Binding IsPayJoin}" />
+ <Viewbox Height="20" IsVisible="{Binding MaxPrivacy}" ToolTip.Tip="Your privacy is fully protected in this transaction.">
+ <PathIcon Data="{StaticResource shield_regular}" Foreground="{DynamicResource PrivacyLevelStrongBrush}" />
+ </Viewbox>
<Button Classes="plain"
Cursor="Hand"
ToolTip.Tip="Privacy can be improved by avoiding change. Click to resolve."
</MultiBinding>
</Button.IsVisible>
<Viewbox Height="20">
- <PathIcon Data="{StaticResource warning_filled}" Foreground="{DynamicResource WarningMessageForeground}" />
+ <PathIcon Data="{StaticResource shield_regular}" Foreground="{DynamicResource WarningMessageForeground}" />
</Viewbox>
</Button>
</StackPanel>

show a green shield when txn has best possible privacy.