Browse Source

Merge pull request #7365 from amwx/FixCalendarHeaderAlignment

[Calendar] Fix vertical alignments
pull/7373/head
Max Katz 4 years ago
committed by GitHub
parent
commit
2491c0b56f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Themes.Fluent/Controls/CalendarButton.xaml
  2. 2
      src/Avalonia.Themes.Fluent/Controls/CalendarDayButton.xaml
  3. 1
      src/Avalonia.Themes.Fluent/Controls/CalendarItem.xaml

2
src/Avalonia.Themes.Fluent/Controls/CalendarButton.xaml

@ -11,7 +11,7 @@
<Setter Property="MinWidth" Value="40"/> <Setter Property="MinWidth" Value="40"/>
<Setter Property="MinHeight" Value="40"/> <Setter Property="MinHeight" Value="40"/>
<Setter Property="Margin" Value="1"/> <Setter Property="Margin" Value="1"/>
<Setter Property="Padding" Value="0,0,0,4"/> <Setter Property="Padding" Value="0,0,0,0"/>
<!--These are actually set on the CalendarView in WinUI--> <!--These are actually set on the CalendarView in WinUI-->
<Setter Property="Foreground" Value="{DynamicResource CalendarViewCalendarItemForeground}"/> <Setter Property="Foreground" Value="{DynamicResource CalendarViewCalendarItemForeground}"/>
<Setter Property="Background" Value="{DynamicResource CalendarViewCalendarItemRevealBackground}"/> <Setter Property="Background" Value="{DynamicResource CalendarViewCalendarItemRevealBackground}"/>

2
src/Avalonia.Themes.Fluent/Controls/CalendarDayButton.xaml

@ -11,7 +11,7 @@
<Setter Property="MinWidth" Value="40"/> <Setter Property="MinWidth" Value="40"/>
<Setter Property="MinHeight" Value="40"/> <Setter Property="MinHeight" Value="40"/>
<Setter Property="Margin" Value="1"/> <Setter Property="Margin" Value="1"/>
<Setter Property="Padding" Value="0,0,0,4"/> <Setter Property="Padding" Value="0,0,0,0"/>
<!--These are actually set on the CalendarView in WinUI--> <!--These are actually set on the CalendarView in WinUI-->
<Setter Property="Foreground" Value="{DynamicResource CalendarViewCalendarItemForeground}"/> <Setter Property="Foreground" Value="{DynamicResource CalendarViewCalendarItemForeground}"/>
<Setter Property="Background" Value="{DynamicResource CalendarViewCalendarItemRevealBackground}"/> <Setter Property="Background" Value="{DynamicResource CalendarViewCalendarItemRevealBackground}"/>

1
src/Avalonia.Themes.Fluent/Controls/CalendarItem.xaml

@ -32,6 +32,7 @@
<Style Selector="Button.CalendarHeader"> <Style Selector="Button.CalendarHeader">
<Setter Property="HorizontalAlignment" Value="Stretch" /> <Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" /> <Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="FontSize" Value="20" /> <Setter Property="FontSize" Value="20" />
<Setter Property="Background" Value="{DynamicResource CalendarViewNavigationButtonBackground}"/> <Setter Property="Background" Value="{DynamicResource CalendarViewNavigationButtonBackground}"/>
<Setter Property="Template"> <Setter Property="Template">

Loading…
Cancel
Save