show percentage in the middle.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyControlTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyControlTileViewModel.cs
@@ -21,6 +21,7 @@ public partial class PrivacyControlTileViewModel : TileViewModel
[AutoNotify] private IList<(string color, double percentShare)>? _testDataPoints;
[AutoNotify] private IList<DataLegend>? _testDataPointsLegend;
[AutoNotify] private string _chartText;
+ [AutoNotify] private string _percentText;
public PrivacyControlTileViewModel(WalletViewModel walletVm, IObservable<Unit> balanceChanged)
{
@@ -81,6 +82,8 @@ public partial class PrivacyControlTileViewModel : TileViewModel
var pcPrivate = 0.6;//totalDecimalAmount == 0M ? 0d : (double)(privateDecimalAmount / totalDecimalAmount);
var pcNormal = 1 - pcPrivate;
+ PercentText = $"{pcPrivate * 100} %";
+
TestDataPoints = new List<(string, double)>
{
("#78A827", pcPrivate),

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyControlTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyControlTileView.axaml
<DockPanel DockPanel.Dock="Bottom">
<StackPanel Spacing="10" DockPanel.Dock="Left" Orientation="Horizontal">
- <Button Classes="plain" Cursor="Hand" Command="{Binding BoostPrivacyCommand}" IsVisible="{Binding !IsBoosting}">
+ <Button Classes="plain" Cursor="Hand" Command="{Binding BoostPrivacyCommand}" IsVisible="{Binding BoostButtonVisible}"
+ ToolTip.Tip="Boost Privacy">
<PathIcon Data="{StaticResource rocket_regular}" />
</Button>
- <Button Classes="plain" Cursor="Hand" Command="{Binding BoostPrivacyCommand}" IsVisible="{Binding IsBoosting}">
+ <Button Classes="plain" Cursor="Hand" Command="{Binding BoostPrivacyCommand}" IsVisible="{Binding IsBoosting}"
+ ToolTip.Tip="Cancel Privacy Boost">
<PathIcon Data="{StaticResource dismiss_light}" />
</Button>
- <Button Classes="plain" Cursor="Hand" Command="{Binding BoostPrivacyCommand}" IsVisible="{Binding IsAutoCoinJoinEnabled}">
+ <Button Classes="plain" Cursor="Hand" IsVisible="{Binding IsAutoCoinJoinEnabled}"
+ ToolTip.Tip="Pause Automatic CoinJoins">
<PathIcon Data="{StaticResource pause_regular}" />
</Button>
</StackPanel>
<controls:PrivacyContentControl NumberOfPrivacyChars="9" Margin="0 0 8 0"
Content="{Binding Amount, Converter={x:Static converters:MoneyConverters.ToFormattedString}}" />
- <controls:PrivacyContentControl DockPanel.Dock="Right" Margin="8,0,0,0"
- HorizontalAlignment="Right"
- Content="{Binding PercentShare, StringFormat=\{0:P1\}}" />
<TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right" Text="{Binding Label}" Margin="0 0 8 0" />
</StackPanel>
</DataTemplate>
HorizontalAlignment="Center" VerticalAlignment="Center" />
<controls:ProgressRing IsIndeterminate="True" Classes.visible="{Binding IsBoosting}" />
- <PathIcon Data="{StaticResource rocket_regular}" Height="50" Width="50" IsVisible="{Binding !IsBoosting}" />
+ <PathIcon Data="{StaticResource rocket_regular}"
+ ToolTip.Tip="Boost Privacy"
+ Height="50" Width="50"
+ IsVisible="{Binding BoostButtonVisible}" />
- <TextBlock Text="{Binding ChartText}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="36" />
+ <TextBlock Text="{Binding PercentText}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="36" />
</Panel>
</Button>

show percentage in the middle.