feat: update checkbox theme.
This commit is contained in:
parent
cd09457710
commit
8c19376e7c
@ -1,63 +1,57 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<ControlTheme TargetType="CheckBox" x:Key="{x:Type 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="HorizontalAlignment" Value="Left" />
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
<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 FontCheckboxFontSize}" />
|
<Setter Property="FontSize" Value="{DynamicResource CheckboxFontSize}" />
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource CornerRadiusCheckboxBox}" />
|
<Setter Property="CornerRadius" Value="{DynamicResource CheckboxBoxCornerRadius}" />
|
||||||
<Setter Property="MinHeight" Value="32" />
|
<Setter Property="MinHeight" Value="32" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ColorCheckboxForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckboxForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxDefaultBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorCheckboxDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxDefaultBorderBrush}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<Grid ColumnDefinitions="Auto,*" x:Name="RootGrid">
|
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
||||||
<Border
|
<Border
|
||||||
|
x:Name="PART_Border" Grid.ColumnSpan="2"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
Grid.ColumnSpan="2"
|
|
||||||
x:Name="PART_Border" />
|
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Column="0"
|
Grid.Column="0" Margin="0,2,0,0"
|
||||||
Margin="0,2,0,0"
|
|
||||||
VerticalAlignment="Top">
|
VerticalAlignment="Top">
|
||||||
<Border
|
<Border
|
||||||
Background="{DynamicResource ColorCheckboxDefaultBackground}"
|
x:Name="NormalRectangle"
|
||||||
BorderBrush="{DynamicResource ColorCheckboxDefaultBorderBrush}"
|
Width="{DynamicResource CheckboxBoxWidth}"
|
||||||
BorderThickness="{DynamicResource ThicknessCheckboxBoxBorderThickness}"
|
Height="{DynamicResource CheckboxBoxHeight}"
|
||||||
|
Background="{DynamicResource CheckboxDefaultBackground}"
|
||||||
|
BorderBrush="{DynamicResource CheckboxDefaultBorderBrush}"
|
||||||
|
BorderThickness="{DynamicResource CheckboxBoxBorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
Height="{DynamicResource SizeCheckboxBoxHeight}"
|
UseLayoutRounding="False" />
|
||||||
UseLayoutRounding="False"
|
|
||||||
Width="{DynamicResource SizeCheckboxBoxWidth}"
|
|
||||||
x:Name="NormalRectangle" />
|
|
||||||
|
|
||||||
<Viewbox Height="{DynamicResource SizeCheckboxBoxWidth}" UseLayoutRounding="False">
|
<Viewbox Height="{DynamicResource CheckboxBoxWidth}" UseLayoutRounding="False">
|
||||||
<Panel>
|
<Panel>
|
||||||
<Panel Height="{DynamicResource SizeCheckboxBoxWidth}" Width="{DynamicResource SizeCheckboxBoxWidth}" />
|
<Panel Width="{DynamicResource CheckboxBoxWidth}" Height="{DynamicResource CheckboxBoxWidth}" />
|
||||||
<Path
|
<Path
|
||||||
Fill="{DynamicResource ColorCheckboxGlyphFill}"
|
x:Name="CheckGlyph" VerticalAlignment="Center"
|
||||||
Opacity="0"
|
Fill="{DynamicResource CheckboxGlyphFill}"
|
||||||
Stretch="Uniform"
|
Opacity="0" Stretch="Uniform" />
|
||||||
VerticalAlignment="Center"
|
|
||||||
x:Name="CheckGlyph" />
|
|
||||||
</Panel>
|
</Panel>
|
||||||
</Viewbox>
|
</Viewbox>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
x:Name="ContentPresenter" Grid.Column="1"
|
||||||
|
Margin="{TemplateBinding Padding}"
|
||||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
|
VerticalAlignment="Top"
|
||||||
Content="{TemplateBinding Content}"
|
Content="{TemplateBinding Content}"
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||||
Grid.Column="1"
|
RecognizesAccessKey="True" TextWrapping="Wrap" />
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
||||||
Margin="{TemplateBinding Padding}"
|
|
||||||
RecognizesAccessKey="True"
|
|
||||||
TextWrapping="Wrap"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
x:Name="ContentPresenter" />
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
@ -65,118 +59,114 @@
|
|||||||
<!-- 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 ColorCheckboxPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxPointOverBackground}" />
|
<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 ColorCheckboxPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxPressedBackground}" />
|
<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 ColorCheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorCheckboxDefaultDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxDefaultDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxDefaultDisabledBackground}" />
|
<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 ColorCheckboxCheckedDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDefaultBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDefaultBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource ColorCheckboxGlyphFill}" />
|
|
||||||
<Setter Property="Data" Value="M1507 31L438 1101L-119 543L-29 453L438 919L1417 -59L1507 31Z" />
|
<Setter Property="Data" Value="M1507 31L438 1101L-119 543L-29 453L438 919L1417 -59L1507 31Z" />
|
||||||
<Setter Property="Width" Value="9" />
|
<Setter Property="Width" Value="9" />
|
||||||
<Setter Property="Opacity" Value="1" />
|
<Setter Property="Opacity" Value="1" />
|
||||||
<Setter Property="FlowDirection" Value="LeftToRight" />
|
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- 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 ColorCheckboxCheckedPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedPointOverBackground}" />
|
<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 ColorCheckboxCheckedPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Disabled State -->
|
<!-- Checked Disabled State -->
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ ContentPresenter#ContentPresenter">
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ColorCheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorCheckboxCheckedDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource ColorCheckboxGlyphDisabledFill}" />
|
<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 ColorCheckboxCheckedDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDefaultBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDefaultBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource ColorCheckboxGlyphFill}" />
|
|
||||||
<Setter Property="Data" Value="M1536 1536v-0h-1024v128h1024z" />
|
<Setter Property="Data" Value="M1536 1536v-0h-1024v128h1024z" />
|
||||||
<Setter Property="Width" Value="9" />
|
<Setter Property="Width" Value="9" />
|
||||||
<Setter Property="Opacity" Value="1" />
|
<Setter Property="Opacity" Value="1" />
|
||||||
<Setter Property="FlowDirection" Value="LeftToRight" />
|
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- 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 ColorCheckboxCheckedPointOverBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPointOverBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedPointOverBackground}" />
|
<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 ColorCheckboxCheckedPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedPressedBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Checked Disabled State -->
|
<!-- Checked Disabled State -->
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
<Style Selector="^ ContentPresenter#ContentPresenter">
|
<Style Selector="^ /template/ ContentPresenter#ContentPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ColorCheckboxDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource CheckboxDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^ /template/ Border#NormalRectangle">
|
<Style Selector="^ /template/ Border#NormalRectangle">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorCheckboxCheckedDisabledBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckboxCheckedDisabledBorderBrush}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorCheckboxCheckedDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource CheckboxCheckedDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^ /template/ Path#CheckGlyph">
|
<Style Selector="^ /template/ Path#CheckGlyph">
|
||||||
<Setter Property="Fill" Value="{DynamicResource ColorCheckboxGlyphDisabledFill}" />
|
<Setter Property="Fill" Value="{DynamicResource CheckboxGlyphDisabledFill}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
@ -1,54 +1,38 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui" 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">
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
||||||
|
|
||||||
<SolidColorBrush Color="#1C1F23" x:Key="ColorCheckboxForeground" />
|
<SolidColorBrush x:Key="CheckboxForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
||||||
Color="#1C1F23"
|
|
||||||
Opacity="0.35"
|
|
||||||
x:Key="ColorCheckboxDisabledForeground" />
|
|
||||||
|
|
||||||
<SolidColorBrush Color="White" x:Key="ColorCheckboxGlyphFill" />
|
<SolidColorBrush x:Key="CheckboxGlyphFill" Color="White" />
|
||||||
<SolidColorBrush Color="White" x:Key="ColorCheckboxGlyphDisabledFill" />
|
<SolidColorBrush x:Key="CheckboxGlyphDisabledFill" Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush Color="Transparent" x:Key="ColorCheckboxDefaultBackground" />
|
<SolidColorBrush x:Key="CheckboxDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxDefaultBorderBrush" Opacity="0.35" Color="#1C1F23" />
|
||||||
Color="#1C1F23"
|
<SolidColorBrush x:Key="CheckboxPointOverBackground" Opacity="0.05" Color="#2E3238" />
|
||||||
Opacity="0.35"
|
<SolidColorBrush x:Key="CheckboxPointOverBorderBrush" Color="#0077FA" />
|
||||||
x:Key="ColorCheckboxDefaultBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxPressedBorderBrush" Color="#004FB3" />
|
||||||
Color="#2E3238"
|
|
||||||
Opacity="0.05"
|
|
||||||
x:Key="ColorCheckboxPointOverBackground" />
|
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxPointOverBorderBrush" />
|
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxPressedBackground" />
|
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxPressedBorderBrush" />
|
|
||||||
|
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxCheckedDefaultBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedDefaultBackground" Color="#0077FA" />
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxCheckedDefaultBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedDefaultBorderBrush" Color="#0077FA" />
|
||||||
<SolidColorBrush Color="#0062D6" x:Key="ColorCheckboxCheckedPointOverBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedPointOverBackground" Color="#0062D6" />
|
||||||
<SolidColorBrush Color="#0062D6" x:Key="ColorCheckboxCheckedPointOverBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedPointOverBorderBrush" Color="#0062D6" />
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxCheckedPressedBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxCheckedPressedBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedPressedBorderBrush" Color="#004FB3" />
|
||||||
|
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxDefaultDisabledBackground" Opacity="0.04" Color="#2E3238" />
|
||||||
Color="#2E3238"
|
<SolidColorBrush x:Key="CheckboxDefaultDisabledBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
Opacity="0.04"
|
<SolidColorBrush x:Key="CheckboxCheckedDisabledBackground" Color="#98CDFD" />
|
||||||
x:Key="ColorCheckboxDefaultDisabledBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedDisabledBorderBrush" Color="#98CDFD" />
|
||||||
<SolidColorBrush
|
|
||||||
Color="#1C1F23"
|
|
||||||
Opacity="0.08"
|
|
||||||
x:Key="ColorCheckboxDefaultDisabledBorderBrush" />
|
|
||||||
<SolidColorBrush Color="#98CDFD" x:Key="ColorCheckboxCheckedDisabledBackground" />
|
|
||||||
<SolidColorBrush Color="#98CDFD" x:Key="ColorCheckboxCheckedDisabledBorderBrush" />
|
|
||||||
|
|
||||||
<sys:Double x:Key="FontCheckboxFontSize">14</sys:Double>
|
<sys:Double x:Key="CheckboxFontSize">14</sys:Double>
|
||||||
<sys:Double x:Key="SizeCheckboxBoxWidth">16</sys:Double>
|
<sys:Double x:Key="CheckboxBoxWidth">16</sys:Double>
|
||||||
<sys:Double x:Key="SizeCheckboxBoxHeight">16</sys:Double>
|
<sys:Double x:Key="CheckboxBoxHeight">16</sys:Double>
|
||||||
<FontWeight x:Key="FontCheckboxFontWeight">400</FontWeight>
|
<FontWeight x:Key="CheckboxFontWeight">400</FontWeight>
|
||||||
|
|
||||||
<CornerRadius x:Key="CornerRadiusCheckboxBox">3</CornerRadius>
|
<CornerRadius x:Key="CornerRadius">3</CornerRadius>
|
||||||
<Thickness x:Key="ThicknessCheckboxContentMargin">8 0 0 0</Thickness>
|
<Thickness x:Key="CheckboxContentMargin">8 0 0 0</Thickness>
|
||||||
<Thickness x:Key="ThicknessCheckboxBoxBorderThickness">1</Thickness>
|
<Thickness x:Key="CheckboxBoxBorderThickness">1</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
<ResourceDictionary
|
||||||
|
xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
|
|
||||||
<sys:Double x:Key="ButtonDefaultFontSize">14</sys:Double>
|
<sys:Double x:Key="ButtonDefaultFontSize">14</sys:Double>
|
||||||
<FontWeight x:Key="ButtonDefaultFontWeight">600</FontWeight>
|
<FontWeight x:Key="ButtonDefaultFontWeight">600</FontWeight>
|
||||||
@ -24,10 +26,10 @@
|
|||||||
<SolidColorBrush x:Key="ButtonDefaultPressedBackground" Opacity="0.13" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultPressedBackground" Opacity="0.13" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="ButtonDefaultDisabledBackground" Opacity="0.05" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultDisabledBackground" Opacity="0.05" Color="#2E3238" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultBorderBrush" Opacity="0.05" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultBorderBrush" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPointeroverBorderBrush" Opacity="0.09" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultPointeroverBorderBrush" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPressedBorderBrush" Opacity="0.13" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultPressedBorderBrush" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="ButtonDefaultDisabledBorderBrush" Opacity="0.05" Color="#2E3238" />
|
<SolidColorBrush x:Key="ButtonDefaultDisabledBorderBrush" Color="Transparent" />
|
||||||
|
|
||||||
<!-- end Light -->
|
<!-- end Light -->
|
||||||
|
|
||||||
@ -80,30 +82,4 @@
|
|||||||
<SolidColorBrush x:Key="ButtonSolidDisabledBorderBrush" Color="Gray" />
|
<SolidColorBrush x:Key="ButtonSolidDisabledBorderBrush" Color="Gray" />
|
||||||
<!-- end Solid -->
|
<!-- end Solid -->
|
||||||
|
|
||||||
<!--
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultBackground" Color="#0077FA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultBorderBrush" Color="#0077FA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPointerOverForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPointerOverBackground" Color="#0062D6" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPointerOverBorderBrush" Color="#0062D6" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPressedForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPressedBackground" Color="#004FB3" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultPressedBorderBrush" Color="#004FB3" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultDisabledForeground" Color="#E6E8EA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultDisabledBackground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonDefaultDisabledBorderBrush" Color="#E6E8EA" />
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidBackground" Color="#0077FA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidBorderBrush" Color="#0077FA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPointerOverForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPointerOverBackground" Color="#0062D6" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPointerOverBorderBrush" Color="#0062D6" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPressedForeground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPressedBackground" Color="#004FB3" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidPressedBorderBrush" Color="#004FB3" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidDisabledForeground" Color="#E6E8EA" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidDisabledBackground" Color="White" />
|
|
||||||
<SolidColorBrush x:Key="ButtonSolidDisabledBorderBrush" Color="#E6E8EA" />-->
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
@ -1,53 +1,37 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui" 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">
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<SolidColorBrush x:Key="CheckboxForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush Color="#1C1F23" x:Key="ColorCheckboxForeground" />
|
<SolidColorBrush x:Key="CheckboxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
||||||
<SolidColorBrush
|
|
||||||
Color="#1C1F23"
|
|
||||||
Opacity="0.35"
|
|
||||||
x:Key="ColorCheckboxDisabledForeground" />
|
|
||||||
|
|
||||||
<SolidColorBrush Color="White" x:Key="ColorCheckboxGlyphFill" />
|
<SolidColorBrush x:Key="CheckboxGlyphFill" Color="White" />
|
||||||
<SolidColorBrush Color="White" x:Key="ColorCheckboxGlyphDisabledFill" />
|
<SolidColorBrush x:Key="CheckboxGlyphDisabledFill" Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush Color="Transparent" x:Key="ColorCheckboxDefaultBackground" />
|
<SolidColorBrush x:Key="CheckboxDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxDefaultBorderBrush" Opacity="0.35" Color="#1C1F23" />
|
||||||
Color="#1C1F23"
|
<SolidColorBrush x:Key="CheckboxPointOverBackground" Opacity="0.05" Color="#2E3238" />
|
||||||
Opacity="0.35"
|
<SolidColorBrush x:Key="CheckboxPointOverBorderBrush" Color="#0077FA" />
|
||||||
x:Key="ColorCheckboxDefaultBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxPressedBorderBrush" Color="#004FB3" />
|
||||||
Color="#2E3238"
|
|
||||||
Opacity="0.05"
|
|
||||||
x:Key="ColorCheckboxPointOverBackground" />
|
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxPointOverBorderBrush" />
|
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxPressedBackground" />
|
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxPressedBorderBrush" />
|
|
||||||
|
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxCheckedDefaultBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedDefaultBackground" Color="#0077FA" />
|
||||||
<SolidColorBrush Color="#0077FA" x:Key="ColorCheckboxCheckedDefaultBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedDefaultBorderBrush" Color="#0077FA" />
|
||||||
<SolidColorBrush Color="#0062D6" x:Key="ColorCheckboxCheckedPointOverBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedPointOverBackground" Color="#0062D6" />
|
||||||
<SolidColorBrush Color="#0062D6" x:Key="ColorCheckboxCheckedPointOverBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedPointOverBorderBrush" Color="#0062D6" />
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxCheckedPressedBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedPressedBackground" Color="#004FB3" />
|
||||||
<SolidColorBrush Color="#004FB3" x:Key="ColorCheckboxCheckedPressedBorderBrush" />
|
<SolidColorBrush x:Key="CheckboxCheckedPressedBorderBrush" Color="#004FB3" />
|
||||||
|
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="CheckboxDefaultDisabledBackground" Opacity="0.04" Color="#2E3238" />
|
||||||
Color="#2E3238"
|
<SolidColorBrush x:Key="CheckboxDefaultDisabledBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
Opacity="0.04"
|
<SolidColorBrush x:Key="CheckboxCheckedDisabledBackground" Color="#98CDFD" />
|
||||||
x:Key="ColorCheckboxDefaultDisabledBackground" />
|
<SolidColorBrush x:Key="CheckboxCheckedDisabledBorderBrush" Color="#98CDFD" />
|
||||||
<SolidColorBrush
|
|
||||||
Color="#1C1F23"
|
|
||||||
Opacity="0.08"
|
|
||||||
x:Key="ColorCheckboxDefaultDisabledBorderBrush" />
|
|
||||||
<SolidColorBrush Color="#98CDFD" x:Key="ColorCheckboxCheckedDisabledBackground" />
|
|
||||||
<SolidColorBrush Color="#98CDFD" x:Key="ColorCheckboxCheckedDisabledBorderBrush" />
|
|
||||||
|
|
||||||
<sys:Double x:Key="FontCheckboxFontSize">14</sys:Double>
|
<sys:Double x:Key="CheckboxFontSize">14</sys:Double>
|
||||||
<sys:Double x:Key="SizeCheckboxBoxWidth">16</sys:Double>
|
<sys:Double x:Key="CheckboxBoxWidth">16</sys:Double>
|
||||||
<sys:Double x:Key="SizeCheckboxBoxHeight">16</sys:Double>
|
<sys:Double x:Key="CheckboxBoxHeight">16</sys:Double>
|
||||||
<FontWeight x:Key="FontCheckboxFontWeight">400</FontWeight>
|
<FontWeight x:Key="CheckboxFontWeight">400</FontWeight>
|
||||||
|
|
||||||
<CornerRadius x:Key="CornerRadiusCheckboxBox">3</CornerRadius>
|
<CornerRadius x:Key="CheckboxBoxCornerRadius">3</CornerRadius>
|
||||||
<Thickness x:Key="ThicknessCheckboxContentMargin">8 0 0 0</Thickness>
|
<Thickness x:Key="CheckboxContentMargin">8 0 0 0</Thickness>
|
||||||
<Thickness x:Key="ThicknessCheckboxBoxBorderThickness">1</Thickness>
|
<Thickness x:Key="CheckboxBoxBorderThickness">1</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user