Privacy Ring fixes
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
@@ -24,8 +24,8 @@ public class PrivacyRingItemViewModel : WalletCoinViewModel, IPrivacyRingPreview
? 0.01d
: 2d;
- var startAngle = (TotalAngle * start) - UprightAngle;
- var endAngle = (TotalAngle * end) - UprightAngle;
+ var startAngle = ((TotalAngle * start) - UprightAngle) - 0.001;
+ var endAngle = ((TotalAngle * end) - UprightAngle) + 0.001;
var isLargeArc = endAngle - startAngle > Math.PI;
var outerOffset = outerRadius == 0 ? 0 : (margin / (TotalAngle * outerRadius) * TotalAngle);

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingViewModel.cs
@@ -32,7 +32,7 @@ public partial class PrivacyRingViewModel : RoutableViewModel
NextCommand = CancelCommand;
- PreviewItems.Add(walletViewModel.Tiles.OfType<PrivacyControlTileViewModel>().FirstOrDefault());
+ PreviewItems.Add(walletViewModel.Tiles.OfType<PrivacyControlTileViewModel>().First());
_itemsSourceList
.Connect()
@@ -49,7 +49,10 @@ public partial class PrivacyRingViewModel : RoutableViewModel
_coinsUpdated
.Select(_ => walletViewModel.Wallet.GetPockets())
+ .ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(RefreshCoinsList);
+
+ SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);
}
public ObservableCollectionExtended<PrivacyRingItemViewModel> Items { get; } = new();

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/PrivacyRing/PrivacyRingView.axaml
SelectedItem="{Binding SelectedItem, Mode=OneWay}"
VerticalAlignment="Center" HorizontalAlignment="Center">
<Carousel.PageTransition>
- <CrossFade Duration="0.75" />
+ <CrossFade Duration="0.25" />
</Carousel.PageTransition>
<Carousel.DataTemplates>
<DataTemplate DataType="{x:Type tiles:PrivacyControlTileViewModel}">

Privacy Ring fixes