Fix layout problems
MODIFY
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:controls="using:WalletWasabi.Fluent.Controls"
- xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity">
+ xmlns:controls="using:WalletWasabi.Fluent.Controls">
<Design.PreviewWith>
<controls:PrivacyContentControl />
</Design.PreviewWith>
<Panel Background="Transparent">
<ContentPresenter Name="PART_Content"
+ IsVisible="{Binding IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
- <Panel Name="PART_PrivacyReplacement">
+ <Panel Name="PART_PrivacyReplacement" IsVisible="{Binding !IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}">
<Viewbox Name="PART_Icon">
<PathIcon Data="{StaticResource incognito_pathicon}" />
</Viewbox>
<TextBlock Name="PART_PrivacyText" Text="{Binding PrivacyText^, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
</Panel>
- <i:Interaction.Behaviors>
- <DataTriggerBehavior Binding="{Binding IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}" Value="True">
- <ChangeAvaloniaPropertyAction TargetObject="PART_Content" TargetProperty="Opacity" Value="1" />
- <ChangeAvaloniaPropertyAction TargetObject="PART_PrivacyReplacement" TargetProperty="Opacity" Value="0" />
- </DataTriggerBehavior>
- <DataTriggerBehavior Binding="{Binding IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}" Value="False">
- <ChangeAvaloniaPropertyAction TargetObject="PART_Content" TargetProperty="Opacity" Value="0" />
- <ChangeAvaloniaPropertyAction TargetObject="PART_PrivacyReplacement" TargetProperty="Opacity" Value="1" />
- </DataTriggerBehavior>
- </i:Interaction.Behaviors>
-
</Panel>
</ControlTemplate>
</Setter>

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -62,7 +62,7 @@ public partial class WalletBalanceTileViewModel : TileViewModel
? "N0"
: "N2";
- BalanceFiat = fiatAmount.GenerateFiatText("USD", fiatFormat);
+ BalanceFiat = fiatAmount.GenerateFiatText("USD", fiatFormat).TrimEnd();
var privateThreshold = _wallet.KeyManager.AnonScoreTarget;
var privateCoins = _wallet.Coins.FilterBy(x => x.HdPubKey.AnonymitySet >= privateThreshold);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/Columns/LabelsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/Columns/LabelsColumnView.axaml
x:DataType="historyItems:HistoryItemViewModelBase"
x:CompileBindings="True">
<c:PrivacyContentControl PrivacyReplacementMode="Text" NumberOfPrivacyChars="15" FontSize="15"
- HorizontalAlignment="Left"
+ HorizontalAlignment="Stretch"
+ VerticalAlignment="Stretch"
Classes="monoSpacedPrivacyReplacement">
- <c:LabelsItemsPresenter Items="{Binding Label}"
- VerticalAlignment="Center" />
+ <Border BorderBrush="Red" Background="Transparent">
+ <c:LabelsItemsPresenter Items="{Binding Label}" />
+ </Border>
</c:PrivacyContentControl>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceTileView.axaml
Content="{Binding BalanceFiat}" />
</StackPanel>
- <Viewbox Margin="0 3" VerticalAlignment="Center" HorizontalAlignment="Center" MaxHeight="40">
+ <Viewbox Margin="0 3" VerticalAlignment="Center" MaxHeight="40">
<controls:PrivacyContentControl NumberOfPrivacyChars="16"
Classes="h2 monoSpaced"
+ HorizontalContentAlignment="Center"
Content="{Binding BalanceBtc}" />
</Viewbox>
</DockPanel>

Fix layout problems