功能更新
This commit is contained in:
111
Melskin/Themes/Accents/LightGreen.xaml
Normal file
111
Melskin/Themes/Accents/LightGreen.xaml
Normal file
@@ -0,0 +1,111 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--
|
||||
品牌主色与变体色
|
||||
用于主要交互元素、视觉强调等场景
|
||||
-->
|
||||
<Color x:Key="PrimaryNormalColor">#34C88A</Color>
|
||||
<SolidColorBrush x:Key="PrimaryNormalBrush" Color="{DynamicResource PrimaryNormalColor}" />
|
||||
|
||||
<Color x:Key="PrimaryVariantColor">#A0DB79</Color>
|
||||
<SolidColorBrush x:Key="PrimaryVariantBrush" Color="{DynamicResource PrimaryVariantColor}" />
|
||||
|
||||
<!--
|
||||
交互状态色组
|
||||
鼠标悬停、按压、聚焦、禁用等状态
|
||||
-->
|
||||
<Color x:Key="PrimaryHoverColor">#2CAB79</Color>
|
||||
<SolidColorBrush x:Key="PrimaryHoverBrush" Color="{DynamicResource PrimaryHoverColor}" />
|
||||
|
||||
<Color x:Key="PrimaryPressedColor">#1F8F65</Color>
|
||||
<SolidColorBrush x:Key="PrimaryPressedBrush" Color="{DynamicResource PrimaryPressedColor}" />
|
||||
|
||||
<Color x:Key="PrimaryFocusedColor">#1F8F65</Color>
|
||||
<SolidColorBrush x:Key="PrimaryFocusedBrush" Color="{DynamicResource PrimaryFocusedColor}" />
|
||||
|
||||
<Color x:Key="PrimaryDisabledColor">#5DD6A4</Color>
|
||||
<SolidColorBrush x:Key="PrimaryDisabledBrush" Color="{DynamicResource PrimaryDisabledColor}" />
|
||||
|
||||
<!--
|
||||
阴影色组
|
||||
用于拟态高光和深度阴影
|
||||
-->
|
||||
<Color x:Key="PrimaryLightShadowColor">#D9F5E6</Color>
|
||||
<SolidColorBrush x:Key="PrimaryLightShadowBrush" Color="{DynamicResource PrimaryLightShadowColor}" />
|
||||
|
||||
<Color x:Key="PrimaryDarkShadowColor">#009966</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>
|
||||
Reference in New Issue
Block a user