Merge pull request #129 from irihitech/121-add-checkbox-as-card
Add Checkbox new theme
This commit is contained in:
commit
a3eb8ec90e
@ -7,18 +7,138 @@
|
|||||||
d:DesignHeight="450"
|
d:DesignHeight="450"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel Spacing="20">
|
<ScrollViewer HorizontalScrollBarVisibility="Auto">
|
||||||
<CheckBox>Unchecked</CheckBox>
|
<StackPanel HorizontalAlignment="Left">
|
||||||
<CheckBox IsEnabled="False">Unchecked</CheckBox>
|
<CheckBox>Unchecked</CheckBox>
|
||||||
<CheckBox IsChecked="True">Checked</CheckBox>
|
<CheckBox IsEnabled="False">Unchecked</CheckBox>
|
||||||
<CheckBox IsChecked="True" IsEnabled="False">Checked</CheckBox>
|
<CheckBox IsChecked="True">Checked</CheckBox>
|
||||||
<CheckBox IsChecked="{x:Null}" IsThreeState="True">Indeterminate</CheckBox>
|
<CheckBox IsChecked="True" IsEnabled="False">Checked</CheckBox>
|
||||||
<CheckBox
|
<CheckBox IsChecked="{x:Null}" IsThreeState="True">Indeterminate</CheckBox>
|
||||||
IsChecked="{x:Null}"
|
<CheckBox
|
||||||
IsEnabled="False"
|
IsChecked="{x:Null}"
|
||||||
IsThreeState="True">
|
IsEnabled="False"
|
||||||
Indeterminate
|
IsThreeState="True">
|
||||||
</CheckBox>
|
Indeterminate
|
||||||
<CheckBox Width="120">Checkbox should wrap its text</CheckBox>
|
</CheckBox>
|
||||||
</StackPanel>
|
<CheckBox Width="120" HorizontalAlignment="Left">Checkbox should wrap its text</CheckBox>
|
||||||
|
<TextBlock Margin="0,16" Text="CardCheckBox" />
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
|
<CheckBox Width="300" Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="True"
|
||||||
|
Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsEnabled="False"
|
||||||
|
Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="True"
|
||||||
|
IsEnabled="False"
|
||||||
|
Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="{x:Null}"
|
||||||
|
IsEnabled="True"
|
||||||
|
IsThreeState="True"
|
||||||
|
Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="{x:Null}"
|
||||||
|
IsEnabled="False"
|
||||||
|
IsThreeState="True"
|
||||||
|
Theme="{DynamicResource CardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
</StackPanel>
|
||||||
|
<TextBlock Margin="0,16" Text="PureCardCheckBox" />
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
|
<CheckBox Width="300" Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="True"
|
||||||
|
Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsEnabled="False"
|
||||||
|
Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="True"
|
||||||
|
IsEnabled="False"
|
||||||
|
Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="{x:Null}"
|
||||||
|
IsEnabled="True"
|
||||||
|
IsThreeState="True"
|
||||||
|
Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
<CheckBox
|
||||||
|
Width="300"
|
||||||
|
IsChecked="{x:Null}"
|
||||||
|
IsEnabled="False"
|
||||||
|
IsThreeState="True"
|
||||||
|
Theme="{DynamicResource PureCardCheckBox}">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock FontWeight="Bold">复选框标题</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap">Semi Design 是由互娱社区前端团队与 UED 团队共同设计开发并维护的设计系统</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</CheckBox>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
@ -4,16 +4,17 @@
|
|||||||
x:CompileBindings="True">
|
x:CompileBindings="True">
|
||||||
<ControlTheme x:Key="{x:Type CheckBox}" TargetType="CheckBox">
|
<ControlTheme x:Key="{x:Type CheckBox}" TargetType="CheckBox">
|
||||||
<Setter Property="Padding" Value="8,0,0,0" />
|
<Setter Property="Padding" Value="8,0,0,0" />
|
||||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource CheckboxFontSize}" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource CheckboxBoxCornerRadius}" />
|
<Setter Property="FontSize" Value="{DynamicResource CheckBoxFontSize}" />
|
||||||
|
<Setter Property="CornerRadius" Value="{DynamicResource CheckBoxBoxCornerRadius}" />
|
||||||
<Setter Property="MinHeight" Value="32" />
|
<Setter Property="MinHeight" Value="32" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource CheckboxForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxDefaultBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxDefaultBorderBrush}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
||||||
@ -21,6 +22,7 @@
|
|||||||
x:Name="PART_Border"
|
x:Name="PART_Border"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -32,18 +34,18 @@
|
|||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
x:Name="NormalRectangle"
|
||||||
Width="{DynamicResource CheckboxBoxWidth}"
|
Width="{DynamicResource CheckBoxBoxWidth}"
|
||||||
Height="{DynamicResource CheckboxBoxHeight}"
|
Height="{DynamicResource CheckBoxBoxHeight}"
|
||||||
Background="{DynamicResource CheckboxDefaultBackground}"
|
Background="{DynamicResource CheckBoxDefaultBackground}"
|
||||||
BorderBrush="{DynamicResource CheckboxDefaultBorderBrush}"
|
BorderBrush="{DynamicResource CheckBoxDefaultBorderBrush}"
|
||||||
BorderThickness="{DynamicResource CheckboxBoxBorderThickness}"
|
BorderThickness="{DynamicResource CheckBoxBoxBorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource CheckboxBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource CheckboxBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Foreground="{DynamicResource CheckboxGlyphFill}" />
|
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
@ -65,34 +67,34 @@
|
|||||||
<!-- Unchecked PointerOver State -->
|
<!-- Unchecked PointerOver State -->
|
||||||
<Style Selector="^:pointerover">
|
<Style Selector="^:pointerover">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxPointOverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxPointOverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Unchecked Pressed State -->
|
<!-- Unchecked Pressed State -->
|
||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Unchecked Disabled state -->
|
<!-- Unchecked Disabled state -->
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxDefaultDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxDefaultDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxDefaultDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxDefaultDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:checked">
|
<Style Selector="^:checked">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDefaultBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDefaultBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
||||||
@ -103,39 +105,39 @@
|
|||||||
<!-- Checked PointerOver State -->
|
<!-- Checked PointerOver State -->
|
||||||
<Style Selector="^:pointerover">
|
<Style Selector="^:pointerover">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPointOverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPointOverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Pressed State -->
|
<!-- Checked Pressed State -->
|
||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Disabled State -->
|
<!-- Checked Disabled State -->
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource CheckboxGlyphDisabledFill}" />
|
<Setter Property="Fill" Value="{DynamicResource CheckBoxGlyphDisabledFill}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:indeterminate">
|
<Style Selector="^:indeterminate">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDefaultBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDefaultBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
||||||
@ -146,31 +148,317 @@
|
|||||||
<!-- Checked PointerOver State -->
|
<!-- Checked PointerOver State -->
|
||||||
<Style Selector="^:pointerover">
|
<Style Selector="^:pointerover">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPointOverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPointOverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Pressed State -->
|
<!-- Checked Pressed State -->
|
||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Disabled State -->
|
<!-- Checked Disabled State -->
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource CheckboxGlyphDisabledFill}" />
|
<Setter Property="Fill" Value="{DynamicResource CheckBoxGlyphDisabledFill}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme x:Key="CardCheckBox" TargetType="CheckBox">
|
||||||
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
|
<Setter Property="Padding" Value="{DynamicResource CheckBoxCardPadding}" />
|
||||||
|
<Setter Property="BorderThickness" Value="{DynamicResource CheckBoxCardBorderThickness}" />
|
||||||
|
<Setter Property="CornerRadius" Value="{DynamicResource CheckBoxCardCornerRadius}" />
|
||||||
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="CheckBox.Template">
|
||||||
|
<ControlTemplate TargetType="CheckBox">
|
||||||
|
<Border
|
||||||
|
Name="RootBorder"
|
||||||
|
Padding="{TemplateBinding Padding}"
|
||||||
|
Background="{TemplateBinding Background}"
|
||||||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
|
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
||||||
|
<Grid Grid.Column="0" VerticalAlignment="Top">
|
||||||
|
<Border
|
||||||
|
x:Name="NormalRectangle"
|
||||||
|
Width="{DynamicResource CheckBoxBoxWidth}"
|
||||||
|
Height="{DynamicResource CheckBoxBoxHeight}"
|
||||||
|
Background="{DynamicResource CheckBoxDefaultBackground}"
|
||||||
|
BorderBrush="{DynamicResource CheckBoxDefaultBorderBrush}"
|
||||||
|
BorderThickness="{DynamicResource CheckBoxBoxBorderThickness}"
|
||||||
|
CornerRadius="{DynamicResource CheckBoxBoxCornerRadius}"
|
||||||
|
UseLayoutRounding="False" />
|
||||||
|
<PathIcon
|
||||||
|
Name="CheckGlyph"
|
||||||
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
|
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<ContentPresenter
|
||||||
|
x:Name="ContentPresenter"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="8,0,0,0"
|
||||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Content="{TemplateBinding Content}"
|
||||||
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||||
|
IsVisible="{TemplateBinding Content,
|
||||||
|
Converter={x:Static ObjectConverters.IsNotNull}}"
|
||||||
|
RecognizesAccessKey="True"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter>
|
||||||
|
|
||||||
|
<!-- Unchecked PointerOver State -->
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxPointOverBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Unchecked Pressed State -->
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxPressedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Unchecked Disabled state -->
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxDefaultDisabledBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxDefaultDisabledBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:checked">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardCheckedBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDefaultBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDefaultBackground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
||||||
|
<Setter Property="Data" Value="{DynamicResource CheckBoxCheckGlyph}" />
|
||||||
|
<Setter Property="Opacity" Value="1" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked PointerOver State -->
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPointOverBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPointOverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPointeroverBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked Pressed State -->
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPressedBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPressedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked Disabled State -->
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedDisabledBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDisabledBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDisabledBackground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
|
<Setter Property="Fill" Value="{DynamicResource CheckBoxGlyphDisabledFill}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:indeterminate">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDefaultBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDefaultBackground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ PathIcon#CheckGlyph">
|
||||||
|
<Setter Property="Data" Value="{DynamicResource CheckBoxIndeterminateGlyph}" />
|
||||||
|
<Setter Property="Opacity" Value="1" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked PointerOver State -->
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPointOverBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPointOverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPointeroverBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked Pressed State -->
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedPressedBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPressedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Checked Disabled State -->
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedDisabledBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCheckedDisabledBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCheckedDisabledBackground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
|
<Setter Property="Fill" Value="{DynamicResource CheckBoxGlyphDisabledFill}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme x:Key="PureCardCheckBox" TargetType="CheckBox">
|
||||||
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
|
<Setter Property="Padding" Value="{DynamicResource CheckBoxCardPadding}" />
|
||||||
|
<Setter Property="BorderThickness" Value="{DynamicResource CheckBoxCardBorderThickness}" />
|
||||||
|
<Setter Property="CornerRadius" Value="{DynamicResource CheckBoxCardCornerRadius}" />
|
||||||
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="CheckBox.Template">
|
||||||
|
<ControlTemplate TargetType="CheckBox">
|
||||||
|
<Border
|
||||||
|
Name="RootBorder"
|
||||||
|
Padding="{TemplateBinding Padding}"
|
||||||
|
Background="{TemplateBinding Background}"
|
||||||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
|
<ContentPresenter
|
||||||
|
x:Name="ContentPresenter"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="8,0,0,0"
|
||||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Content="{TemplateBinding Content}"
|
||||||
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||||
|
IsVisible="{TemplateBinding Content,
|
||||||
|
Converter={x:Static ObjectConverters.IsNotNull}}"
|
||||||
|
RecognizesAccessKey="True"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter>
|
||||||
|
|
||||||
|
<!-- Unchecked PointerOver State -->
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Unchecked Pressed State -->
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<!-- Unchecked Disabled state -->
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:checked">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedBorderBrush}" />
|
||||||
|
<Setter Property="Background" Value="{DynamicResource CheckBoxCardCheckedBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pointerover /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPointeroverBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPressedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<!-- Checked Disabled State -->
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedDisabledBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:indeterminate">
|
||||||
|
<!-- Checked Disabled State -->
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pointerover /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPointeroverBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedPressedBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ Border#RootBorder">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxCardCheckedDisabledBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
@ -2,42 +2,54 @@
|
|||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
<SolidColorBrush x:Key="CheckboxForeground" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="CheckBoxForeground" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="CheckboxDisabledForeground" Opacity="0.35" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="CheckBoxDisabledForeground" Opacity="0.35" Color="#F9F9F9" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxGlyphFill" Color="#16161A" />
|
<SolidColorBrush x:Key="CheckBoxGlyphFill" Color="White" />
|
||||||
<SolidColorBrush x:Key="CheckboxGlyphDisabledFill" Color="#16161A" />
|
<SolidColorBrush x:Key="CheckBoxGlyphDisabledFill" Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CheckBoxDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultBorderBrush" Opacity="0.35" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="CheckBoxDefaultBorderBrush" Opacity="0.35" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="CheckboxPointOverBackground" Opacity="0.12" Color="White" />
|
<SolidColorBrush x:Key="CheckBoxPointOverBackground" Opacity="0.12" Color="White" />
|
||||||
<SolidColorBrush x:Key="CheckboxPointOverBorderBrush" Color="#54A9FF" />
|
<SolidColorBrush x:Key="CheckBoxPointOverBorderBrush" Color="#54A9FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxPressedBackground" Color="#A9D7FF" />
|
<SolidColorBrush x:Key="CheckBoxPressedBackground" Color="#A9D7FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxPressedBorderBrush" Color="#A9D7FF" />
|
<SolidColorBrush x:Key="CheckBoxPressedBorderBrush" Color="#A9D7FF" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDefaultBackground" Color="#54A9FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDefaultBackground" Color="#54A9FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDefaultBorderBrush" Color="#54A9FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDefaultBorderBrush" Color="#54A9FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPointOverBackground" Color="#7FC1FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPointOverBackground" Color="#7FC1FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPointOverBorderBrush" Color="#7FC1FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPointOverBorderBrush" Color="#7FC1FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPressedBackground" Color="#A9D7FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPressedBackground" Color="#A9D7FF" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPressedBorderBrush" Color="#A9D7FF" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPressedBorderBrush" Color="#A9D7FF" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
<SolidColorBrush x:Key="CheckBoxDefaultDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultDisabledBorderBrush" Opacity="0.08" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="CheckBoxDefaultDisabledBorderBrush" Opacity="0.08" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDisabledBackground" Color="#135cb8" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDisabledBackground" Color="#135cb8" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDisabledBorderBrush" Color="#135cb8" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDisabledBorderBrush" Color="#135cb8" />
|
||||||
|
|
||||||
<sys:Double x:Key="CheckboxFontSize">14</sys:Double>
|
<sys:Double x:Key="CheckBoxFontSize">14</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxWidth">16</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxWidth">16</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxHeight">16</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxHeight">16</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxGlyphWidth">12</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxGlyphWidth">10</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxGlyphHeight">12</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxGlyphHeight">10</sys:Double>
|
||||||
<FontWeight x:Key="CheckboxFontWeight">400</FontWeight>
|
<FontWeight x:Key="CheckBoxFontWeight">400</FontWeight>
|
||||||
|
|
||||||
<CornerRadius x:Key="CheckboxBoxCornerRadius">3</CornerRadius>
|
<CornerRadius x:Key="CheckBoxBoxCornerRadius">3</CornerRadius>
|
||||||
<Thickness x:Key="CheckboxContentMargin">8 0 0 0</Thickness>
|
<Thickness x:Key="CheckBoxContentMargin">8 0 0 0</Thickness>
|
||||||
<Thickness x:Key="CheckboxBoxBorderThickness">1</Thickness>
|
<Thickness x:Key="CheckBoxBoxBorderThickness">1</Thickness>
|
||||||
|
|
||||||
<PathGeometry x:Key="CheckBoxCheckGlyph">M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z</PathGeometry>
|
<PathGeometry x:Key="CheckBoxCheckGlyph">M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z</PathGeometry>
|
||||||
<PathGeometry x:Key="CheckBoxIndeterminateGlyph">M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z</PathGeometry>
|
<PathGeometry x:Key="CheckBoxIndeterminateGlyph">M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z</PathGeometry>
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedBackground" Opacity="0.2" Color="#FF54A9FF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedBorderBrush" Color="#FF54A9FF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedDisabledBorderBrush" Color="#FF135CB8" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardPointeroverBackground" Opacity="0.05" Color="#FFFFFFFF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardPressedBackground" Opacity="0.09" Color="#FFFFFFFF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedPointeroverBorderBrush" Color="#FF7FC1FF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedPressedBorderBrush" Color="#FFA9D7FF" />
|
||||||
|
|
||||||
|
<Thickness x:Key="CheckBoxCardBorderThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="CheckBoxCardPadding">16</Thickness>
|
||||||
|
<CornerRadius x:Key="CheckBoxCardCornerRadius">3</CornerRadius>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<SolidColorBrush x:Key="RadioButtonCheckIconPressedBorderBrush" Color="#A9D7FF" />
|
<SolidColorBrush x:Key="RadioButtonCheckIconPressedBorderBrush" Color="#A9D7FF" />
|
||||||
<SolidColorBrush x:Key="RadioButtonCheckIconDisabledBorderBrush" Color="#135cb8" />
|
<SolidColorBrush x:Key="RadioButtonCheckIconDisabledBorderBrush" Color="#135cb8" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RadioButtonCheckGlyphFill" Color="#16161A" />
|
<SolidColorBrush x:Key="RadioButtonCheckGlyphFill" Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="RadioButtonForeground" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="RadioButtonForeground" Color="#F9F9F9" />
|
||||||
|
|
||||||
|
@ -2,42 +2,55 @@
|
|||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
<SolidColorBrush x:Key="CheckboxForeground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="CheckBoxForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="CheckboxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
<SolidColorBrush x:Key="CheckBoxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxGlyphFill" Color="White" />
|
<SolidColorBrush x:Key="CheckBoxGlyphFill" Color="White" />
|
||||||
<SolidColorBrush x:Key="CheckboxGlyphDisabledFill" Color="White" />
|
<SolidColorBrush x:Key="CheckBoxGlyphDisabledFill" Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CheckBoxDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultBorderBrush" Opacity="0.35" Color="#1C1F23" />
|
<SolidColorBrush x:Key="CheckBoxDefaultBorderBrush" Opacity="0.35" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="CheckboxPointOverBackground" Opacity="0.05" Color="#2E3238" />
|
<SolidColorBrush x:Key="CheckBoxPointOverBackground" Opacity="0.05" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="CheckboxPointOverBorderBrush" Color="#0077FA" />
|
<SolidColorBrush x:Key="CheckBoxPointOverBorderBrush" Color="#0077FA" />
|
||||||
<SolidColorBrush x:Key="CheckboxPressedBackground" Color="#004FB3" />
|
<SolidColorBrush x:Key="CheckBoxPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush x:Key="CheckboxPressedBorderBrush" Color="#004FB3" />
|
<SolidColorBrush x:Key="CheckBoxPressedBorderBrush" Color="#004FB3" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDefaultBackground" Color="#0077FA" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDefaultBackground" Color="#0077FA" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDefaultBorderBrush" Color="#0077FA" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDefaultBorderBrush" Color="#0077FA" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPointOverBackground" Color="#0062D6" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPointOverBackground" Color="#0062D6" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPointOverBorderBrush" Color="#0062D6" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPointOverBorderBrush" Color="#0062D6" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPressedBackground" Color="#004FB3" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedPressedBorderBrush" Color="#004FB3" />
|
<SolidColorBrush x:Key="CheckBoxCheckedPressedBorderBrush" Color="#004FB3" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
<SolidColorBrush x:Key="CheckBoxDefaultDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="CheckboxDefaultDisabledBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="CheckBoxDefaultDisabledBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDisabledBackground" Color="#98CDFD" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDisabledBackground" Color="#98CDFD" />
|
||||||
<SolidColorBrush x:Key="CheckboxCheckedDisabledBorderBrush" Color="#98CDFD" />
|
<SolidColorBrush x:Key="CheckBoxCheckedDisabledBorderBrush" Color="#98CDFD" />
|
||||||
|
|
||||||
<sys:Double x:Key="CheckboxFontSize">14</sys:Double>
|
<sys:Double x:Key="CheckBoxFontSize">14</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxWidth">16</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxWidth">16</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxHeight">16</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxHeight">16</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxGlyphWidth">12</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxGlyphWidth">10</sys:Double>
|
||||||
<sys:Double x:Key="CheckboxBoxGlyphHeight">12</sys:Double>
|
<sys:Double x:Key="CheckBoxBoxGlyphHeight">10</sys:Double>
|
||||||
<FontWeight x:Key="CheckboxFontWeight">400</FontWeight>
|
<FontWeight x:Key="CheckBoxFontWeight">400</FontWeight>
|
||||||
|
|
||||||
<CornerRadius x:Key="CheckboxBoxCornerRadius">3</CornerRadius>
|
<CornerRadius x:Key="CheckBoxBoxCornerRadius">3</CornerRadius>
|
||||||
<Thickness x:Key="CheckboxContentMargin">8 0 0 0</Thickness>
|
<Thickness x:Key="CheckBoxContentMargin">8 0 0 0</Thickness>
|
||||||
<Thickness x:Key="CheckboxBoxBorderThickness">1</Thickness>
|
<Thickness x:Key="CheckBoxBoxBorderThickness">1</Thickness>
|
||||||
|
|
||||||
<PathGeometry x:Key="CheckBoxCheckGlyph">M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z</PathGeometry>
|
<PathGeometry x:Key="CheckBoxCheckGlyph">M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z</PathGeometry>
|
||||||
<PathGeometry x:Key="CheckBoxIndeterminateGlyph">M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z</PathGeometry>
|
<PathGeometry x:Key="CheckBoxIndeterminateGlyph">M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z</PathGeometry>
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedBackground" Color="#FFEAF5FF" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedBorderBrush" Color="#FF0077FA" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedDisabledBorderBrush" Color="#FF98CDFD" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardPointeroverBackground" Opacity="0.05" Color="#FF2E3238" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardPressedBackground" Opacity="0.09" Color="#FF2E3238" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedPointeroverBorderBrush" Color="#FF0062D6" />
|
||||||
|
<SolidColorBrush x:Key="CheckBoxCardCheckedPressedBorderBrush" Color="#FF004FB3" />
|
||||||
|
|
||||||
|
<Thickness x:Key="CheckBoxCardBorderThickness">1</Thickness>
|
||||||
|
<Thickness x:Key="CheckBoxCardPadding">16</Thickness>
|
||||||
|
<CornerRadius x:Key="CheckBoxCardCornerRadius">3</CornerRadius>
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user