129 lines
6.8 KiB
Plaintext
129 lines
6.8 KiB
Plaintext
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
|
|
||
|
|
<Style TargetType="Button" x:Key="NormalButtonStyle">
|
||
|
|
<Setter Property="Effect">
|
||
|
|
<Setter.Value>
|
||
|
|
<DropShadowEffect BlurRadius="10" Color="#333" ShadowDepth="0" Opacity="0.1"/>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border BorderBrush="#16a1ff" BorderThickness="0" CornerRadius="5" ClipToBounds="True">
|
||
|
|
<Border.Background>
|
||
|
|
<LinearGradientBrush StartPoint="0,1" EndPoint="1,0">
|
||
|
|
<GradientStop Color="#16a1ff" Offset="0.3"/>
|
||
|
|
<GradientStop Color="#01c8fe" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</Border.Background>
|
||
|
|
<Grid>
|
||
|
|
<Border CornerRadius="5">
|
||
|
|
<Border.Background>
|
||
|
|
<RadialGradientBrush Center="0,1" GradientOrigin="0,1" RadiusX="0.4" RadiusY="0.8">
|
||
|
|
<GradientStop Color="#88b4fee7" Offset="0.2"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</RadialGradientBrush>
|
||
|
|
</Border.Background>
|
||
|
|
</Border>
|
||
|
|
<Border CornerRadius="4" Background="{TemplateBinding Background}"/>
|
||
|
|
<Border Background="#11000000" CornerRadius="5" Visibility="Collapsed" Name="mask"/>
|
||
|
|
|
||
|
|
<ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="mask" Property="Visibility" Value="Visible"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style TargetType="Button" x:Key="CancelButtonStyle">
|
||
|
|
<Setter Property="Effect">
|
||
|
|
<Setter.Value>
|
||
|
|
<DropShadowEffect BlurRadius="10" Color="#333" ShadowDepth="0" Opacity="0.1"/>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="Foreground" Value="#555"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border BorderBrush="#DDD" BorderThickness="1" CornerRadius="5" ClipToBounds="True">
|
||
|
|
<Border.Background>
|
||
|
|
<LinearGradientBrush StartPoint="0,1" EndPoint="1,0">
|
||
|
|
<GradientStop Color="#DDD" Offset="0.3"/>
|
||
|
|
<GradientStop Color="#EEE" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</Border.Background>
|
||
|
|
<Grid>
|
||
|
|
<Border CornerRadius="5">
|
||
|
|
<Border.Background>
|
||
|
|
<RadialGradientBrush Center="0,1" GradientOrigin="0,1" RadiusX="0.4" RadiusY="0.8">
|
||
|
|
<GradientStop Color="#EEE" Offset="0.2"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</RadialGradientBrush>
|
||
|
|
</Border.Background>
|
||
|
|
</Border>
|
||
|
|
<Border Background="#08000000" CornerRadius="5" Visibility="Collapsed" Name="mask"/>
|
||
|
|
|
||
|
|
<ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="mask" Property="Visibility" Value="Visible"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style TargetType="Button" x:Key="WindowControlButtonStyle">
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Grid Background="Transparent">
|
||
|
|
<Border Background="#11000000" Visibility="Collapsed" Name="mask"/>
|
||
|
|
<ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||
|
|
</Grid>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="mask" Property="Visibility" Value="Visible"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style TargetType="Button" x:Key="ToolButtonStlye">
|
||
|
|
<Setter Property="Foreground" Value="#888"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border CornerRadius="3" BorderBrush="#EEE" BorderThickness="1"
|
||
|
|
Background="#F7F9FA" Name="border">
|
||
|
|
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"
|
||
|
|
Margin="10,6"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="border" Property="BorderBrush" Value="#EEE"/>
|
||
|
|
<Setter TargetName="border" Property="Background" Value="#EEE"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
</ResourceDictionary>
|