功能完善

This commit is contained in:
ShrlAlgo
2025-08-20 12:10:13 +08:00
parent d0cfc64450
commit fcd306b0f7
270 changed files with 11503 additions and 7193 deletions

View File

@@ -0,0 +1,44 @@
<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 Color="{StaticResource AntDesign.Color.Link}" x:Key="AntDesign.Brush.Link" />
<SolidColorBrush Color="{StaticResource AntDesign.Color.Success}" x:Key="AntDesign.Brush.Success" />
<SolidColorBrush Color="{StaticResource AntDesign.Color.Warning}" x:Key="AntDesign.Brush.Warning" />
<SolidColorBrush Color="{StaticResource AntDesign.Color.Error}" x:Key="ErrorNormalBrush" />
<SolidColorBrush Color="{StaticResource AntDesign.Color.Info}" x:Key="AntDesign.Brush.Info" />
<!--<SolidColorBrush x:Key="AntDesign.Brush.Shadow" Color="{StaticResource AntDesign.Color.Shadow}" Opacity="0.2"/>-->
<!-- 为不同状态定义渐变画刷 -->
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5" x:Key="NormalBrush">
<GradientStop Color="#69b1ff" Offset="0.0" />
<GradientStop Color="#1677FF" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5" x:Key="SuccessNormalBrush">
<GradientStop Color="#a0eac2" Offset="0.0" />
<GradientStop Color="#52c41a" Offset="1.0" />
</LinearGradientBrush>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5" x:Key="ExceptionBrush">
<GradientStop Color="#ffccc7" Offset="0.0" />
<GradientStop Color="#ff4d4f" Offset="1.0" />
</LinearGradientBrush>
</ResourceDictionary>

View File

@@ -0,0 +1,50 @@
<ResourceDictionary
mc:Ignorable="Options"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:Options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Vertical Paddings -->
<!-- Vertical padding for all form controls -->
<System:Double x:Key="ControlPaddingHorizontal">12</System:Double>
<!-- Item -->
<Thickness x:Key="ItemPadding">11 5</Thickness>
<Thickness x:Key="BorderThicknessBase">1</Thickness>
<!-- Outline -->
<Thickness x:Key="OutlineThickness">1.6</Thickness>
<!-- 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>
<System:Double x:Key="ToolTipArrowSize">5</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>
<!-- @BorderRadiusBase -->
<CornerRadius x:Key="AvatarBorderRadius">4</CornerRadius>
<System:Double x:Key="SwitchDisabledOpacity">0.4</System:Double>
</ResourceDictionary>

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