Files
Shrlalgo.RvKits/AntDesignWPF/Themes/Tokens/Sizes.xaml
2025-07-31 20:12:24 +08:00

117 lines
4.8 KiB
XML

<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>