94 lines
3.7 KiB
XML
94 lines
3.7 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol">
|
|
|
|
|
|
<!--整体样式-->
|
|
<Style x:Key="BorderBG" TargetType="Border">
|
|
<Style.Setters>
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<LinearGradientBrush Opacity="0.97">
|
|
<GradientStop Color="#EBF7E3" Offset="0"/>
|
|
<GradientStop Color="#A8E4C0" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="CornerRadius" Value="8"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style.Setters>
|
|
</Style>
|
|
|
|
<LinearGradientBrush x:Key="BtnBG" Opacity="0.7">
|
|
<GradientStop Color="White" Offset="0"/>
|
|
<GradientStop Color="White" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
|
|
<!--按钮样式-->
|
|
<Style x:Key="MyBtnStyle" TargetType="Button" BasedOn="{StaticResource ButtonInfo}">
|
|
<Setter Property="Background" Value="{StaticResource BtnBG}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#E5E5E2"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<LinearGradientBrush Opacity="1">
|
|
<GradientStop Color="White" Offset="0"/>
|
|
<GradientStop Color="White" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="true">
|
|
<Setter Property="Opacity" Value="1"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
|
|
<!--CheckBox样式-->
|
|
<Style x:Key="MyCheckBoxStyle" TargetType="CheckBox" BasedOn="{StaticResource CheckBoxBaseStyle}">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<LinearGradientBrush EndPoint="1,0" StartPoint="0,0" Opacity="0.6">
|
|
<GradientStop Color="#FF9EA3A6"/>
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<LinearGradientBrush EndPoint="1,0" StartPoint="0,0" Opacity="0.6">
|
|
<GradientStop Color="#FF9EA3A6"/>
|
|
</LinearGradientBrush>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!--菜单样式-->
|
|
<Style x:Key="MyMenuStyle" TargetType="hc:SideMenuItem" BasedOn="{StaticResource SideMenuItemBaseStyle}">
|
|
<Style.Setters>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Style.Setters>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
|
|
</ResourceDictionary> |