Adjust WalletStatsView layout
MODIFY
WalletWasabi.Fluent/Controls/PreviewItem.axaml
WalletWasabi.Fluent/Controls/PreviewItem.axaml
<DockPanel Background="Transparent">
<PathIcon Width="{TemplateBinding IconSize}" Height="{TemplateBinding IconSize}"
Data="{TemplateBinding Icon}" Opacity="0.6" Foreground="{DynamicResource SystemAccentColor}"
- DockPanel.Dock="Left" />
+ IsVisible="{TemplateBinding IsIconVisible}" DockPanel.Dock="Left" />
<DockPanel DockPanel.Dock="Right" Margin="30 0 0 0">
<TextBlock Name="PART_Text" Text="{TemplateBinding Text}" DockPanel.Dock="Top" Margin="0 0 0 5" Opacity="0.6" />
<DockPanel HorizontalAlignment="Left" DockPanel.Dock="Bottom">

MODIFY
WalletWasabi.Fluent/Controls/PreviewItem.axaml.cs
WalletWasabi.Fluent/Controls/PreviewItem.axaml.cs
@@ -19,6 +19,10 @@ public class PreviewItem : ContentControl
public static readonly StyledProperty<double> IconSizeProperty =
AvaloniaProperty.Register<PreviewItem, double>(nameof(IconSize), 24);
+ public static readonly StyledProperty<bool> IsIconVisibleProperty =
+ AvaloniaProperty.Register<PreviewItem, bool>(nameof(IsIconVisible));
+
+
public static readonly StyledProperty<object?> CopyParameterProperty =
AvaloniaProperty.Register<PreviewItem, object?>(nameof(CopyParameter));
@@ -48,6 +52,9 @@ public class PreviewItem : ContentControl
}
});
+ this.WhenAnyValue(x => x.Icon)
+ .Subscribe(x => IsIconVisible = x is not null);
+
this.WhenAnyValue(
x => x.CopyParameter,
x => x.IsPointerOver,
@@ -91,6 +98,12 @@ public class PreviewItem : ContentControl
set => SetValue(IconSizeProperty, value);
}
+ public bool IsIconVisible
+ {
+ get => GetValue(IsIconVisibleProperty);
+ set => SetValue(IsIconVisibleProperty, value);
+ }
+
public object? CopyParameter
{
get => GetValue(CopyParameterProperty);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletStatsView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletStatsView.axaml
x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletStatsView">
<c:ContentArea Title="{Binding Title}"
EnableNext="True" NextContent="Done">
- <StackPanel>
+ <StackPanel Spacing="10" Margin="0 20 20 0">
<c:PreviewItem Text="UTXO Count"
CopyParameter="{Binding CoinCount}"
PrivacyModeEnabled="{Binding !ShowSensitiveData}">
<TextBlock Classes="monoSpaced" Text="{Binding CoinCount}" />
</c:PreviewItem>
-
+ <Separator />
<c:PreviewItem Text="Total Balance"
CopyParameter="{Binding Balance}"
PrivacyModeEnabled="{Binding !ShowSensitiveData}">
<TextBlock Classes="monoSpaced" Text="{Binding Balance}" />
</c:PreviewItem>
-
+ <Separator />
<c:PreviewItem Text="Confirmed Balance"
CopyParameter="{Binding ConfirmedBalance}"
PrivacyModeEnabled="{Binding !ShowSensitiveData}">
<TextBlock Classes="monoSpaced" Text="{Binding ConfirmedBalance}" />
</c:PreviewItem>
-
+ <Separator />
<c:PreviewItem Text="Unconfirmed Balance"
CopyParameter="{Binding UnconfirmedBalance}"
PrivacyModeEnabled="{Binding !ShowSensitiveData}">

Adjust WalletStatsView layout