Change hardcoded "PRIVATE" coin text by binding
ADD
WalletWasabi.Fluent/Converters/StringConverters.cs
+using Avalonia.Data.Converters;
+
+namespace WalletWasabi.Fluent.Converters;
+
+public static class StringConverters
+{
+ public static readonly IValueConverter ToUpperCase =
+ new FuncValueConverter<string?, string?>(x => x?.ToUpperInvariant());
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
@@ -28,6 +28,8 @@ public class PrivacyRingItemViewModel : IPrivacyRingPreviewItem, IDisposable
Unconfirmed = !coin.Confirmed;
Confirmations = coin.GetConfirmations();
+ PrivacyLevelText = GetPrivacyLevelDescription();
+
Reference = GetPrivacyLevelDescription();
Reference += " coin";
if (Unconfirmed)
@@ -62,6 +64,7 @@ public class PrivacyRingItemViewModel : IPrivacyRingPreviewItem, IDisposable
public bool IsSemiPrivate { get; }
public bool IsNonPrivate { get; }
public string AmountText { get; }
+ public string PrivacyLevelText { get; }
public bool Unconfirmed { get; }
public int Confirmations { get; }
public string Reference { get; }

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemDetailsView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemDetailsView.axaml
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="using:WalletWasabi.Fluent.Controls"
+ xmlns:conv="using:WalletWasabi.Fluent.Converters"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.PrivacyRing.PrivacyRingItemDetailsView">
<DockPanel VerticalAlignment="Center">
<Border VerticalAlignment="Center" BorderThickness="1" CornerRadius="2"
BorderBrush="{StaticResource ButtonForeground}">
<TextBlock
- Text="PRIVATE" Classes="bold" Margin="4 2 " VerticalAlignment="Center" HorizontalAlignment="Center" />
+ Text="{Binding PrivacyLevelText, Converter={x:Static conv:StringConverters.ToUpperCase}}" Classes="bold" Margin="4 2 " VerticalAlignment="Center" HorizontalAlignment="Center" />
</Border>
</StackPanel>
<TextBlock Text="{Binding Coin.AnonymitySet, StringFormat='Anonymity Score: {0}'}" Classes="h8" VerticalAlignment="Center" HorizontalAlignment="Center" />

Change hardcoded "PRIVATE" coin text by binding