Browse Source

Merge pull request #4289 from AvaloniaUI/fixes/toggleswitch-content-alignment

make toggle switch use verticalcontentalignment center by default.
pull/4290/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
aa78e41b66
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Avalonia.Themes.Default/ToggleSwitch.xaml
  2. 3
      src/Avalonia.Themes.Fluent/ToggleSwitch.xaml

3
src/Avalonia.Themes.Default/ToggleSwitch.xaml

@ -43,7 +43,8 @@
<Setter Property="Foreground" Value="{DynamicResource ToggleSwitchContentForeground}" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
<Setter Property="Template">
<ControlTemplate>

3
src/Avalonia.Themes.Fluent/ToggleSwitch.xaml

@ -43,7 +43,8 @@
<Setter Property="Foreground" Value="{DynamicResource ToggleSwitchContentForeground}" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
<Setter Property="Template">
<ControlTemplate>

Loading…
Cancel
Save