Privacy Ring - Add Confirmations info
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
@@ -49,6 +49,8 @@ public class PrivacyRingItemViewModel : WalletCoinViewModel, IPrivacyRingPreview
IsSemiPrivate = !IsPrivate && coin.IsSemiPrivate();
IsNonPrivate = !IsPrivate && !IsSemiPrivate;
AmountText = $"{Amount.ToFormattedString()} BTC";
+ Unconfirmed = !coin.Confirmed;
+ Confirmations = coin.GetConfirmations();
Data = new PathGeometry()
{
@@ -76,6 +78,8 @@ public class PrivacyRingItemViewModel : WalletCoinViewModel, IPrivacyRingPreview
public bool IsSemiPrivate { get; }
public bool IsNonPrivate { get; }
public string AmountText { get; }
+ public bool Unconfirmed { get; }
+ public int Confirmations { get; }
private Point GetAnglePoint(double r, double angle)
{

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingView.axaml
<Setter Property="Fill" Value="{DynamicResource PrivacyLevelNoneBrush}" />
</Style>
+ <Style Selector="Path.unconfirmed">
+ <Setter Property="Opacity" Value="0.5" />
+ </Style>
+
<Style Selector="ListBoxItem">
<Setter Property="IsSelected" Value="{Binding IsPointerOver, Mode=TwoWay}" />
<Setter Property="ClipToBounds" Value="False" />
Data="{Binding Data}"
Classes.private="{Binding IsPrivate}"
Classes.semiPrivate="{Binding IsSemiPrivate}"
- Classes.nonPrivate="{Binding IsNonPrivate}">
+ Classes.nonPrivate="{Binding IsNonPrivate}"
+ Classes.unconfirmed="{Binding Unconfirmed}">
</Path>
</DataTemplate>
</ListBox.ItemTemplate>
</StackPanel>
</StackPanel>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 3">
+ <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0 3">
<TextBlock
VerticalAlignment="Center" HorizontalAlignment="Center"
TextAlignment="Center"
- Text="{Binding AmountText}" Classes="h2" />
+ Text="{Binding AmountText}" Classes="h3" />
+
+ <TextBlock Text="{Binding Confirmations, StringFormat='Confirmations: {0}'}" Classes="h8" VerticalAlignment="Center" HorizontalAlignment="Center" />
</StackPanel>
</DockPanel>
</c:TileControl>

Privacy Ring - Add Confirmations info