functional boost button.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Disposables;
+using System.Windows.Input;
using NBitcoin;
using ReactiveUI;
using WalletWasabi.Wallets;
@@ -34,19 +35,32 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
[AutoNotify] private IList<DataLegend>? _testDataPointsLegend;
[AutoNotify] private bool _isPrivacyProtected;
[AutoNotify] private bool _isAutoCoinJoinEnabled;
+ [AutoNotify] private bool _isBoosting;
public WalletPieChartTileViewModel(WalletViewModel walletVm, IObservable<Unit> balanceChanged)
{
_balanceChanged = balanceChanged;
_wallet = walletVm.Wallet;
+
+
walletVm.Settings.WhenAnyValue(x => x.AutoCoinJoin)
.Subscribe(x => IsAutoCoinJoinEnabled = x);
this.WhenAnyValue(x => x.IsAutoCoinJoinEnabled)
.Subscribe(x => walletVm.Settings.AutoCoinJoin = x);
+
+
+ BoostPrivacyCommand = ReactiveCommand.Create(() =>
+ {
+ _wallet.AllowManualCoinJoin = true;
+ IsBoosting = true;
+ });
+
}
+ public ICommand BoostPrivacyCommand { get; }
+
protected override void OnActivated(CompositeDisposable disposables)
{
base.OnActivated(disposables);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartLargeTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartLargeTileView.axaml
</DockPanel>
</StackPanel>
<Grid Margin="20 10 20 20" RowDefinitions="*,Auto">
- <Viewbox Grid.RowSpan="1" Height="120" Width="120" VerticalAlignment="Center" HorizontalAlignment="Stretch">
- <Viewbox.Resources>
- <LinearGradientBrush x:Key="paint0_linear" StartPoint="0%,1%" EndPoint="100%,100%">
- <LinearGradientBrush.GradientStops>
- <GradientStop Color="#EE5C5C" />
- <GradientStop Color="#C44747" Offset="1" />
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Viewbox.Resources>
- <Panel>
- <Path Name="path833" Fill="{StaticResource paint0_linear}"
- Data="m 64.9375 11.75 c -9.9878 0 -19.7174 -3.53804 -29.25 -10.6875 -1 -0.75 -2.375 -0.75 -3.375 0 C 22.7799 8.21196 13.0503 11.75 3.0625 11.75 1.5092 11.75 0.25 13.0092 0.25 14.5625 V 34.25 c 0 18.7545 11.0909 32.534 32.7192 41.0543 0.6624 0.2609 1.3992 0.2609 2.0616 0 C 56.6591 66.784 67.75 53.0045 67.75 34.25 V 14.5625 c 0 -1.5533 -1.2592 -2.8125 -2.8125 -2.8125 z" />
- <Path Name="path835" Fill="White"
- Data="M 34.015 34.0437 23.8034 23.8309 c -1.097 -1.0969 -2.8755 -1.0969 -3.9725 0 -1.0969 1.097 -1.0969 2.8755 0 3.9725 L 30.0437 38.015 19.8309 48.2327 19.559 48.5477 c -0.816 1.0997 -0.7253 2.6602 0.2719 3.6575 l 0.3151 0.2719 c 1.0996 0.816 2.6602 0.7253 3.6574 -0.2719 L 34.015 41.99 44.2327 52.2052 c 1.0969 1.0969 2.8755 1.0969 3.9725 0 1.0969 -1.097 1.0969 -2.8756 0 -3.9725 L 37.99 38.015 48.2052 27.8034 l 0.2719 -0.315 c 0.816 -1.0997 0.7253 -2.6602 -0.2719 -3.6575 L 47.8901 23.559 c -1.0997 -0.816 -2.6602 -0.7253 -3.6574 0.2719 z" />
+ <Panel Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center">
+ <controls:RingChartControl DataPoints="{Binding TestDataPoints}" />
+ <Button Content="Boost Privacy" HorizontalAlignment="Center" VerticalAlignment="Center" Classes="hyperlink" Command="{Binding BoostPrivacyCommand}" />
</Panel>
- </Viewbox>
<StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="5">
<TextBlock Classes="h6" FontWeight="Bold" TextAlignment="Center" Text="Warning!" />
<TextBlock Classes="h8" Text="Your financial privacy is not currently protected." TextAlignment="Center" TextWrapping="WrapWithOverflow" />

functional boost button.