Replace Cj icon if coin is banned
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
@@ -15,6 +15,7 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
[AutoNotify] private SmartLabel _smartLabel = "";
[AutoNotify] private bool _confirmed;
[AutoNotify] private bool _coinJoinInProgress;
+ [AutoNotify] private bool _coinJoinIdle;
[AutoNotify] private bool _isBanned;
[AutoNotify] private string? _bannedUntilUtcToolTip;
@@ -25,8 +26,24 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
coin.WhenAnyValue(c => c.Confirmed).Subscribe(x => Confirmed = x).DisposeWith(_disposables);
coin.WhenAnyValue(c => c.HdPubKey.Cluster.Labels).Subscribe(x => SmartLabel = x).DisposeWith(_disposables);
coin.WhenAnyValue(c => c.HdPubKey.AnonymitySet).Subscribe(x => AnonymitySet = x).DisposeWith(_disposables);
- coin.WhenAnyValue(c => c.CoinJoinInProgress).Subscribe(x => CoinJoinInProgress = x).DisposeWith(_disposables);
- coin.WhenAnyValue(c => c.IsBanned).Subscribe(x => IsBanned = x).DisposeWith(_disposables);
+
+ coin.WhenAnyValue(c => c.CoinJoinInProgress)
+ .Subscribe(x =>
+ {
+ CoinJoinInProgress = x;
+ CoinJoinIdle = !x;
+ }).DisposeWith(_disposables);
+
+ coin.WhenAnyValue(c => c.IsBanned).Subscribe(x =>
+ {
+ IsBanned = x;
+ if (x)
+ {
+ CoinJoinInProgress = false;
+ CoinJoinIdle = false;
+ }
+ }).DisposeWith(_disposables);
+
coin.WhenAnyValue(c => c.BannedUntilUtc).Subscribe(x => BannedUntilUtcToolTip = $"Banned until: {x}").DisposeWith(_disposables);
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IndicatorsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IndicatorsColumnView.axaml
ToolTip.Tip="Pending" />
</Panel>
- <Panel>
+ <StackPanel>
<!-- CJ active -->
<PathIcon IsVisible="{Binding CoinJoinInProgress}"
Data="{StaticResource link_filled}"
Height="9"
ToolTip.Tip="Coinjoining" />
<!-- Pending -->
- <PathIcon IsVisible="{Binding !CoinJoinInProgress}"
+ <PathIcon IsVisible="{Binding CoinJoinIdle}"
Data="{StaticResource link_filled}"
Height="9"
Opacity="0.3"
ToolTip.Tip="Not Coinjoining" />
- </Panel>
-
- <Panel>
<!-- Banned -->
<PathIcon IsVisible="{Binding IsBanned}"
- Data="{StaticResource warning_regular}"
- Foreground="{DynamicResource SystemAccentColor}"
+ Data="{StaticResource warning_filled}"
+ Foreground="Yellow"
Height="14"
ToolTip.Tip="{Binding BannedUntilUtcToolTip}" />
- <!-- Clean -->
- <PathIcon IsVisible="{Binding !IsBanned}"
- Data="{StaticResource info_tip}"
- Height="14"
- Opacity="0.6"
- ToolTip.Tip="UTXO is clean according to the backend" />
- </Panel>
+ </StackPanel>
</StackPanel>
</UserControl>

Replace Cj icon if coin is banned