TileButton size adjustment
MODIFY
WalletWasabi.Fluent/Controls/TileButton.axaml
WalletWasabi.Fluent/Controls/TileButton.axaml
Foreground="{TemplateBinding Foreground}"/>
<TextBlock x:Name="PART_Text"
Text="{TemplateBinding Text}"
- Foreground="{TemplateBinding Foreground}"/>
+ Foreground="{TemplateBinding Foreground}"
+ DockPanel.Dock="Bottom"/>
</Panel>
</Border>
</ControlTemplate>
<Setter Property="Opacity" Value="0.8"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
+ <Setter Property="Margin" Value="0 0 0 15"/>
</Style>
<Style Selector="c|TileButton /template/ TextBlock#PART_Text">
- <Setter Property="Margin" Value="0 0 0 15"/>
+ <Setter Property="Margin" Value="10 0 10 15"/>
+ <Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Bottom"/>
+ <Setter Property="TextAlignment" Value="Center"/>
</Style>
<Style Selector="c|TileButton /template/ Border#PART_Border">
</Style>
<Style Selector="c|TileButton">
- <Setter Property="Width" Value="250"/>
- <Setter Property="Height" Value="250"/>
+ <Setter Property="Width" Value="150"/>
+ <Setter Property="Height" Value="150"/>
<Setter Property="ClipToBounds" Value="False" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Background" Value="{DynamicResource OptionButtonBackground}" />

MODIFY
WalletWasabi.Fluent/Controls/TileButton.axaml.cs
WalletWasabi.Fluent/Controls/TileButton.axaml.cs
@@ -8,7 +8,7 @@ namespace WalletWasabi.Fluent.Controls
public class TileButton : Button
{
public static readonly StyledProperty<int> IconSizeProperty =
- AvaloniaProperty.Register<TileButton, int>(nameof(IconSize), 80);
+ AvaloniaProperty.Register<TileButton, int>(nameof(IconSize), 40);
public static readonly StyledProperty<string> TextProperty =
AvaloniaProperty.Register<TileButton, string>(nameof(Text));

MODIFY
WalletWasabi.Fluent/Views/AddWallet/AddWalletPageView.axaml
WalletWasabi.Fluent/Views/AddWallet/AddWalletPageView.axaml
<WrapPanel Orientation="Horizontal" Margin="0 0 0 20" HorizontalAlignment="Center">
<WrapPanel.Styles>
<Style Selector="c|TileButton">
- <Setter Property="Margin" Value="10"/>
+ <Setter Property="Margin" Value="15"/>
<Setter Property="IsEnabled" Value="{Binding OptionsEnabled}"/>
</Style>
</WrapPanel.Styles>

MODIFY
WalletWasabi.Fluent/Views/TransactionBroadcasting/LoadTransactionView.axaml
WalletWasabi.Fluent/Views/TransactionBroadcasting/LoadTransactionView.axaml
Caption="Paste or import the transaction and broadcast it to the network."
EnableCancel="True">
<StackPanel Orientation="Horizontal" Spacing="50" HorizontalAlignment="Center" VerticalAlignment="Center">
+ <StackPanel.Styles>
+ <Style Selector="c|TileButton">
+ <Setter Property="Height" Value="250"/>
+ <Setter Property="Width" Value="250"/>
+ <Setter Property="IconSize" Value="80"/>
+ </Style>
+ </StackPanel.Styles>
<c:TileButton Text="Import transaction"
Icon="{StaticResource folder_move_regular}"
Command="{Binding ImportTransactionCommand}"/>

TileButton size adjustment