月更
This commit is contained in:
45
AntDesignWPF/Themes/Tokens/Functional.xaml
Normal file
45
AntDesignWPF/Themes/Tokens/Functional.xaml
Normal file
@@ -0,0 +1,45 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!-- 功能色 (Functional Colors) -->
|
||||
<!-- Blue-6 -->
|
||||
<Color x:Key="AntDesign.Color.Link">#1677FF</Color>
|
||||
<!-- Green-6 -->
|
||||
<Color x:Key="AntDesign.Color.Success">#52C41A</Color>
|
||||
<!-- Gold-6 -->
|
||||
<Color x:Key="AntDesign.Color.Warning">#FAAD14</Color>
|
||||
<!-- Red-5 -->
|
||||
<Color x:Key="AntDesign.Color.Error">#FF4D4F</Color>
|
||||
<!-- Blue-6 -->
|
||||
<Color x:Key="AntDesign.Color.Info">#1677FF</Color>
|
||||
|
||||
<!--<Color x:Key="AntDesign.Color.Shadow">#1677FF</Color>-->
|
||||
|
||||
|
||||
<!-- 功能画刷 (Functional Brushes) -->
|
||||
<SolidColorBrush x:Key="AntDesign.Brush.Link" Color="{StaticResource AntDesign.Color.Link}" />
|
||||
<SolidColorBrush x:Key="AntDesign.Brush.Success" Color="{StaticResource AntDesign.Color.Success}" />
|
||||
<SolidColorBrush x:Key="AntDesign.Brush.Warning" Color="{StaticResource AntDesign.Color.Warning}" />
|
||||
<SolidColorBrush x:Key="AntDesign.Brush.Error" Color="{StaticResource AntDesign.Color.Error}" />
|
||||
<SolidColorBrush x:Key="AntDesign.Brush.Info" Color="{StaticResource AntDesign.Color.Info}" />
|
||||
|
||||
<!--<SolidColorBrush x:Key="AntDesign.Brush.Shadow" Color="{StaticResource AntDesign.Color.Shadow}" Opacity="0.2"/>-->
|
||||
|
||||
<!-- 为不同状态定义渐变画刷 -->
|
||||
<LinearGradientBrush x:Key="NormalBrush" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Color="#69b1ff" Offset="0.0" />
|
||||
<GradientStop Color="#1677FF" Offset="1.0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="SuccessBrush" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Color="#a0eac2" Offset="0.0" />
|
||||
<GradientStop Color="#52c41a" Offset="1.0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="ExceptionBrush" StartPoint="0,0.5" EndPoint="1,0.5">
|
||||
<GradientStop Color="#ffccc7" Offset="0.0" />
|
||||
<GradientStop Color="#ff4d4f" Offset="1.0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
|
||||
</ResourceDictionary>
|
||||
4
AntDesignWPF/Themes/Tokens/Geometry.xaml
Normal file
4
AntDesignWPF/Themes/Tokens/Geometry.xaml
Normal file
@@ -0,0 +1,4 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
</ResourceDictionary>
|
||||
117
AntDesignWPF/Themes/Tokens/Sizes.xaml
Normal file
117
AntDesignWPF/Themes/Tokens/Sizes.xaml
Normal file
@@ -0,0 +1,117 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:AntDesignWPF.Controls"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:Options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
||||
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
||||
mc:Ignorable="Options">
|
||||
<!--<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/AntDesignWPF;component/Themes/Tokens/Sizes.xaml" />
|
||||
<ResourceDictionary Source="/AntDesignWPF;component/Themes/Tokens/Functional.xaml" />
|
||||
<ResourceDictionary Source="/AntDesignWPF;component/Themes/Light.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>-->
|
||||
|
||||
<System:Double x:Key="FontSizeBase">14</System:Double>
|
||||
<System:Double x:Key="FontSizeLarge">16</System:Double>
|
||||
<System:Double x:Key="FontSizeSmall">12</System:Double>
|
||||
<CornerRadius x:Key="BorderRadiusBase">4</CornerRadius>
|
||||
<CornerRadius x:Key="BorderRadiusSmall">2</CornerRadius>
|
||||
|
||||
|
||||
<!-- Vertical Paddings -->
|
||||
<!-- containers -->
|
||||
<System:Double x:Key="PaddingLarge">24</System:Double>
|
||||
<!-- small containers and buttons -->
|
||||
<System:Double x:Key="PaddingMedium">16</System:Double>
|
||||
<!-- form controls and items -->
|
||||
<System:Double x:Key="PaddingSmall">12</System:Double>
|
||||
<!-- small items -->
|
||||
<System:Double x:Key="PaddingExtraSmall">8</System:Double>
|
||||
|
||||
<!-- Vertical padding for all form controls -->
|
||||
<!-- @PaddingSmall -->
|
||||
<System:Double x:Key="ControlPaddingHorizontal">12</System:Double>
|
||||
|
||||
<!-- Item -->
|
||||
<Thickness x:Key="ItemPadding">11 5</Thickness>
|
||||
|
||||
<Thickness x:Key="BorderThicknessBase">1</Thickness>
|
||||
<controls:BorderStyle x:Key="BorderStyleBase">Solid</controls:BorderStyle>
|
||||
|
||||
<!-- Outline -->
|
||||
<Thickness x:Key="OutlineThickness">1.6</Thickness>
|
||||
|
||||
|
||||
<!-- Buttons -->
|
||||
<FontWeight x:Key="ButtonFontWeight">Normal</FontWeight>
|
||||
<CornerRadius x:Key="ButtonBorderRadiusBase">4</CornerRadius>
|
||||
<CornerRadius x:Key="ButtonBorderRadiusSmall">4</CornerRadius>
|
||||
|
||||
|
||||
|
||||
<!-- @FontSizeLarge -->
|
||||
<System:Double x:Key="ButtonFontSizeLarge">16</System:Double>
|
||||
<!-- @FontSizeSmall -->
|
||||
<System:Double x:Key="ButtonFontSizeSmall">12</System:Double>
|
||||
|
||||
<Thickness x:Key="ButtonPaddingBase">15 0</Thickness>
|
||||
<Thickness x:Key="ButtonPaddingLarge">15 0</Thickness>
|
||||
<Thickness x:Key="ButtonPaddingSmall">7 0</Thickness>
|
||||
|
||||
<System:Double x:Key="ButtonHeightBase">32</System:Double>
|
||||
<System:Double x:Key="ButtonHeightLarge">40</System:Double>
|
||||
<System:Double x:Key="ButtonHeightSmall">24</System:Double>
|
||||
|
||||
<!-- CheckBox -->
|
||||
<System:Double x:Key="CheckBoxSize">16</System:Double>
|
||||
<System:Double x:Key="CheckBoxIndeterminateSize">8</System:Double>
|
||||
|
||||
|
||||
<!-- Radio -->
|
||||
<System:Double x:Key="RadioSize">16</System:Double>
|
||||
<System:Double x:Key="RadioDotSize">8</System:Double>
|
||||
|
||||
<!-- Input -->
|
||||
<System:Double x:Key="InputHeightBase">32</System:Double>
|
||||
<System:Double x:Key="InputHeightLarge">40</System:Double>
|
||||
<System:Double x:Key="InputHeightSmall">24</System:Double>
|
||||
<Thickness x:Key="InputPaddingBase">11 4</Thickness>
|
||||
<Thickness x:Key="InputPaddingLarge">11 6</Thickness>
|
||||
<Thickness x:Key="InputPaddingSmall">7 1</Thickness>
|
||||
|
||||
<System:Double x:Key="ToolTipArrowSize">5</System:Double>
|
||||
|
||||
<!-- Spin -->
|
||||
<System:Double x:Key="SpinDotSizeSmall">14</System:Double>
|
||||
<System:Double x:Key="SpinDotSize">20</System:Double>
|
||||
<System:Double x:Key="SpinDotSizeLarge">32</System:Double>
|
||||
|
||||
<!-- 标签 Tag -->
|
||||
|
||||
<System:Double x:Key="TagFontSize">12</System:Double>
|
||||
|
||||
<!-- 徽章 Badge -->
|
||||
<System:Double x:Key="BadgeHeight">20</System:Double>
|
||||
<System:Double x:Key="BadgeDotSize">6</System:Double>
|
||||
<!-- @FontSizeSmall -->
|
||||
<System:Double x:Key="BadgeFontSize">12</System:Double>
|
||||
<FontWeight x:Key="BadgeFontWeight">Normal</FontWeight>
|
||||
<System:Double x:Key="BadgeStatusSize">6.5</System:Double>
|
||||
|
||||
<!-- 头像 Avatar -->
|
||||
<System:Double x:Key="AvatarSizeSmall">24</System:Double>
|
||||
<System:Double x:Key="AvatarSizeBase">32</System:Double>
|
||||
<System:Double x:Key="AvatarSizeLarge">40</System:Double>
|
||||
<System:Double x:Key="AvatarFontSizeSmall">14</System:Double>
|
||||
<System:Double x:Key="AvatarFontSizeBase">18</System:Double>
|
||||
<System:Double x:Key="AvatarFontSizeLarge">24</System:Double>
|
||||
|
||||
<!-- @BorderRadiusBase -->
|
||||
<CornerRadius x:Key="AvatarBorderRadius">4</CornerRadius>
|
||||
|
||||
<!-- Switch -->
|
||||
<System:Double x:Key="SwitchHeight">22</System:Double>
|
||||
<System:Double x:Key="SwitchHeightSmall">16</System:Double>
|
||||
<System:Double x:Key="SwitchDisabledOpacity">0.4</System:Double>
|
||||
|
||||
</ResourceDictionary>
|
||||
72
AntDesignWPF/Themes/Tokens/Typography.xaml
Normal file
72
AntDesignWPF/Themes/Tokens/Typography.xaml
Normal file
@@ -0,0 +1,72 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="LineHeight" Value="20" />
|
||||
<Setter Property="FontWeight" Value="Regular" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="CaptionTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
<Setter Property="LineHeight" Value="16" />
|
||||
<Setter Property="FontWeight" Value="Regular" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="BodyTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="LineHeight" Value="20" />
|
||||
<Setter Property="FontWeight" Value="Regular" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="BodyStrongTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="LineHeight" Value="20" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="SubtitleTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="20" />
|
||||
<Setter Property="LineHeight" Value="28" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="TitleTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="28" />
|
||||
<Setter Property="LineHeight" Value="36" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="TitleLargeTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="40" />
|
||||
<Setter Property="LineHeight" Value="52" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
<Style
|
||||
x:Key="DisplayTextBlockStyle"
|
||||
BasedOn="{StaticResource {x:Type TextBlock}}"
|
||||
TargetType="{x:Type TextBlock}">
|
||||
<Setter Property="FontSize" Value="68" />
|
||||
<Setter Property="LineHeight" Value="92" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user