110 lines
4.4 KiB
XML
110 lines
4.4 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<!--
|
|
品牌主色与变体色
|
|
用于主要交互元素、视觉强调等场景
|
|
-->
|
|
<Color x:Key="PrimaryNormalColor">#B67ED6</Color>
|
|
<SolidColorBrush x:Key="PrimaryNormalBrush" Color="{DynamicResource PrimaryNormalColor}" />
|
|
|
|
<Color x:Key="PrimaryVariantColor">#B8428F</Color>
|
|
<SolidColorBrush x:Key="PrimaryVariantBrush" Color="{DynamicResource PrimaryVariantColor}" />
|
|
|
|
<!--
|
|
交互状态色组
|
|
鼠标悬停、按压、聚焦、禁用等状态
|
|
-->
|
|
<Color x:Key="PrimaryHoverColor">#BE90D4</Color>
|
|
<SolidColorBrush x:Key="PrimaryHoverBrush" Color="{DynamicResource PrimaryHoverColor}" />
|
|
|
|
<Color x:Key="PrimaryPressedColor">#D2B4E4</Color>
|
|
<SolidColorBrush x:Key="PrimaryPressedBrush" Color="{DynamicResource PrimaryPressedColor}" />
|
|
|
|
<Color x:Key="PrimaryFocusedColor">#9B59B6</Color>
|
|
<SolidColorBrush x:Key="PrimaryFocusedBrush" Color="{DynamicResource PrimaryFocusedColor}" />
|
|
|
|
<Color x:Key="PrimaryDisabledColor">#5E376E</Color>
|
|
<SolidColorBrush x:Key="PrimaryDisabledBrush" Color="{DynamicResource PrimaryDisabledColor}" />
|
|
|
|
<!--
|
|
阴影色组
|
|
用于拟态高光和深度阴影
|
|
-->
|
|
<Color x:Key="PrimaryLightShadowColor">#2A1A40</Color>
|
|
<SolidColorBrush x:Key="PrimaryLightShadowBrush" Color="{DynamicResource PrimaryLightShadowColor}" />
|
|
|
|
<Color x:Key="PrimaryDarkShadowColor">#C49BD9</Color>
|
|
<SolidColorBrush x:Key="PrimaryDarkShadowBrush" Color="{DynamicResource PrimaryDarkShadowColor}" />
|
|
|
|
<!--
|
|
渐变色与特效(未改动,保持原样)
|
|
-->
|
|
<LinearGradientBrush x:Key="PrimaryGradientBrush" StartPoint="0,1" EndPoint="1,0">
|
|
<GradientStop Offset="0" Color="{StaticResource PrimaryNormalColor}" />
|
|
<GradientStop Offset="1" Color="{StaticResource PrimaryVariantColor}" />
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="PrimaryIndeterminateGradientBrush" StartPoint="0,1" EndPoint="1,0">
|
|
<GradientStop Offset="0" Color="{StaticResource PrimaryNormalColor}" />
|
|
<GradientStop Offset="0.7" Color="{StaticResource PrimaryVariantColor}" />
|
|
<GradientStop Offset="0.8" Color="{StaticResource PrimaryNormalColor}" />
|
|
<LinearGradientBrush.RelativeTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform />
|
|
<SkewTransform />
|
|
<RotateTransform />
|
|
<TranslateTransform />
|
|
</TransformGroup>
|
|
</LinearGradientBrush.RelativeTransform>
|
|
</LinearGradientBrush>
|
|
|
|
<Style x:Key="NeumorphicFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle>
|
|
<Rectangle.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="10"
|
|
Opacity="0.18"
|
|
ShadowDepth="0"
|
|
Color="{StaticResource PrimaryNormalColor}" />
|
|
</Rectangle.Effect>
|
|
</Rectangle>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="FocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="0"
|
|
RadiusX="5"
|
|
RadiusY="5"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="{StaticResource PrimaryNormalBrush}"
|
|
StrokeThickness="2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="OptionMarkFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="0"
|
|
RadiusX="5"
|
|
RadiusY="5"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="{StaticResource PrimaryNormalBrush}"
|
|
StrokeThickness="2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |