csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
4.8 KiB
116 lines
4.8 KiB
<!--
|
|
// (c) Copyright Microsoft Corporation.
|
|
// This source is subject to the Microsoft Public License (Ms-PL).
|
|
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
|
|
// All other rights reserved.
|
|
-->
|
|
|
|
<Styles xmlns="https://github.com/avaloniaui">
|
|
<Style Selector="CalendarDayButton">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush2}" />
|
|
<Setter Property="FontSize" Value="{DynamicResource FontSizeSmall}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="MinWidth" Value="5" />
|
|
<Setter Property="MinHeight" Value="5" />
|
|
<Setter Property="Focusable" Value="False"/>
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<Panel Background="Transparent">
|
|
|
|
<Rectangle Name="TodayBackground"
|
|
Fill="{DynamicResource HighlightBrush}"/>
|
|
|
|
<Rectangle Name="SelectedBackground"
|
|
Opacity="0.75"
|
|
Fill="{TemplateBinding Background}"/>
|
|
|
|
<Rectangle Name="Background"
|
|
Opacity="0.5"
|
|
Fill="{TemplateBinding Background}"/>
|
|
|
|
<ContentControl Name="Content"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
Content="{TemplateBinding Content}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
Margin="5,1,5,1"/>
|
|
|
|
<Path Name="BlackoutVisual"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Fill="{DynamicResource ThemeForegroundBrush}"
|
|
Stretch="Fill"
|
|
Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364 z" />
|
|
|
|
<Rectangle Name="FocusVisual"
|
|
StrokeThickness="1"
|
|
Stroke="{DynamicResource HighlightBrush}"
|
|
IsHitTestVisible="False"/>
|
|
|
|
</Panel>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ Rectangle#Background">
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:pointerover /template/ Rectangle#Background">
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:pressed /template/ Rectangle#Background">
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ Rectangle#SelectedBackground">
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:selected /template/ Rectangle#SelectedBackground">
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ ContentControl#Content">
|
|
<Setter Property="Opacity" Value="1"/>
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:disabled /template/ Rectangle#Background">
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:disabled /template/ ContentControl#Content">
|
|
<Setter Property="Opacity" Value="0.3"/>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ Rectangle#FocusVisual">
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:dayfocused /template/ Rectangle#FocusVisual">
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ Rectangle#TodayBackground">
|
|
<Setter Property="IsVisible" Value="False"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:today /template/ Rectangle#TodayBackground">
|
|
<Setter Property="IsVisible" Value="True"/>
|
|
</Style>
|
|
|
|
|
|
<Style Selector="CalendarDayButton:inactive /template/ ContentControl#Content">
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundLowBrush}"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:today /template/ ContentControl#Content">
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeControlLowBrush}"/>
|
|
</Style>
|
|
|
|
<Style Selector="CalendarDayButton /template/ Path#BlackoutVisual">
|
|
<Setter Property="Opacity" Value="0"/>
|
|
</Style>
|
|
<Style Selector="CalendarDayButton:blackout /template/ Path#BlackoutVisual">
|
|
<Setter Property="Opacity" Value="0.3"/>
|
|
</Style>
|
|
|
|
</Styles>
|
|
|