Browse Source
Merge pull request #4631 from AvaloniaUI/fixes/vertical-alignment-radio-checkbox
Radio button and checkbox vertically center the content.
pull/4649/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
4 deletions
-
src/Avalonia.Themes.Fluent/CheckBox.xaml
-
src/Avalonia.Themes.Fluent/RadioButton.xaml
|
|
|
@ -8,11 +8,10 @@ |
|
|
|
<Setter Property="Background" Value="{DynamicResource CheckBoxBackgroundUnchecked}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxForegroundUnchecked}" /> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxBorderBrushUnchecked}" /> |
|
|
|
<Setter Property="Padding" Value="8,5,0,0" /> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Top" /> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" /> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" /> |
|
|
|
<Setter Property="MinWidth" Value="120" /> |
|
|
|
<Setter Property="MinHeight" Value="32" /> |
|
|
|
|
|
|
|
@ -13,11 +13,10 @@ |
|
|
|
<Setter Property="Background" Value="{DynamicResource RadioButtonBackground}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource RadioButtonForeground}" /> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrush}" /> |
|
|
|
<Setter Property="Padding" Value="8,6,0,0" /> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Top" /> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" /> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" /> |
|
|
|
<Setter Property="MinWidth" Value="120" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
|