Make TorIssuesControl have a proper size in StatusIcon
MODIFY
WalletWasabi.Fluent/Controls/StatusItem.axaml
WalletWasabi.Fluent/Controls/StatusItem.axaml
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:c="using:WalletWasabi.Fluent.Controls">
+ xmlns:c="using:WalletWasabi.Fluent.Controls"
+ xmlns:statusIcon="clr-namespace:WalletWasabi.Fluent.Views.StatusIcon">
+
+ <Design.PreviewWith>
+ <Border Width="200" >
+ <c:StatusItem Title="Title" StatusText="Item text" >
+ <c:StatusItem.Icon>
+ <statusIcon:TorIssuesControl />
+ </c:StatusItem.Icon>
+ </c:StatusItem>
+ </Border>
+ </Design.PreviewWith>
<Style Selector="c|StatusItem">
<Setter Property="Template">
<ControlTemplate>
<Grid ColumnDefinitions="Auto,*"
RowDefinitions="Auto,Auto">
- <Viewbox Stretch="UniformToFill" Height="13" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 5 0" >
+ <Viewbox Stretch="UniformToFill" Height="13" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 8 0" >
<ContentPresenter Content="{TemplateBinding Icon}" />
</Viewbox>
<TextBlock Grid.Column="1" Grid.Row="0" Text="{TemplateBinding Title}" VerticalAlignment="Center" />

MODIFY
WalletWasabi.Fluent/Controls/StatusItem.axaml.cs
WalletWasabi.Fluent/Controls/StatusItem.axaml.cs
using Avalonia;
using Avalonia.Controls;
-using Avalonia.Media;
namespace WalletWasabi.Fluent.Controls;

MODIFY
WalletWasabi.Fluent/Views/StatusIcon/TorIssuesControl.axaml
WalletWasabi.Fluent/Views/StatusIcon/TorIssuesControl.axaml
<statusIcon:StatusIconDesignViewModel />
</Design.DataContext>
- <DockPanel>
-
- <Button Classes="activeHyperLink" Margin="5" VerticalAlignment="Center" Foreground="Gold"
+ <Button Classes="activeHyperLink" VerticalAlignment="Center" Foreground="Gold"
Command="{Binding OpenTorStatusSiteCommand}">
<Button.Content>
<PathIcon Foreground="Gold" VerticalAlignment="Center" Data="{StaticResource warning_filled}" />
</DockPanel>
</ToolTip.Tip>
</Button>
- </DockPanel>
</UserControl>

Make TorIssuesControl have a proper size in StatusIcon