|
17 | 17 | <!-- Button --> |
18 | 18 | <Style x:Key="GitHubButton" TargetType="{x:Type Button}"> |
19 | 19 | <Style.Resources> |
20 | | - <LinearGradientBrush x:Key="GitHubButtonBackgroundGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"> |
21 | | - <GradientStop Color="#FFF1F1F1" Offset="0" /> |
22 | | - <GradientStop Color="#FFE1E1E1" Offset="1" /> |
23 | | - </LinearGradientBrush> |
24 | | - <LinearGradientBrush x:Key="GitHubButtonBackgroundMouseOverGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"> |
25 | | - <GradientStop Color="#FFE8E8E8" Offset="0" /> |
26 | | - <GradientStop Color="#FFD7D7D7" Offset="1" /> |
27 | | - </LinearGradientBrush> |
28 | | - <LinearGradientBrush x:Key="GitHubButtonBackgroundPressedGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"> |
29 | | - <GradientStop Color="#FFE8E8E8" Offset="0" /> |
30 | | - <GradientStop Color="#FFCDCDCD" Offset="1" /> |
31 | | - </LinearGradientBrush> |
32 | | - <LinearGradientBrush x:Key="GitHubButtonBackgroundDisabledGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"> |
33 | | - <GradientStop Color="#FFFCFCFC" Offset="0" /> |
34 | | - <GradientStop Color="#FFEBEBEB" Offset="1" /> |
35 | | - </LinearGradientBrush> |
| 20 | + <SolidColorBrush x:Key="GitHubButtonBackgroundBrush" Color="#FFECECF1" /> |
| 21 | + <SolidColorBrush x:Key="GitHubButtonBackgroundMouseOverBrush" Color="#FFDDDDE6" /> |
| 22 | + <SolidColorBrush x:Key="GitHubButtonBackgroundPressedBrush" Color="#FFCFCFDB" /> |
| 23 | + <SolidColorBrush x:Key="GitHubButtonBackgroundDisabledBrush" Color="#FFFCFCFC" /> |
36 | 24 | <SolidColorBrush x:Key="GitHubButtonForegroundBrush" Color="#FF666666" /> |
37 | 25 | <SolidColorBrush x:Key="GitHubButtonBorderBrush" Color="#FFCACACA" /> |
38 | 26 | <SolidColorBrush x:Key="GitHubButtonBorderMouseOverBrush" Color="#FFCACACA" /> |
39 | 27 | <SolidColorBrush x:Key="GitHubButtonBorderPressedBrush" Color="#FFBFBFBF" /> |
40 | 28 | </Style.Resources> |
41 | | - <Setter Property="Background" Value="{DynamicResource GitHubButtonBackgroundGradientBrush}" /> |
| 29 | + <Setter Property="Background" Value="{DynamicResource GitHubButtonBackgroundBrush}" /> |
42 | 30 | <Setter Property="BorderBrush" Value="{DynamicResource GitHubButtonBorderBrush}" /> |
43 | 31 | <Setter Property="Foreground" Value="{DynamicResource GitHubButtonForegroundBrush}" /> |
44 | 32 | <Setter Property="FontFamily" Value="{DynamicResource GitHubFontFamilyNormal}" /> |
|
96 | 84 | BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True" |
97 | 85 | Background="{TemplateBinding Background}" /> |
98 | 86 | <Rectangle x:Name="DisabledVisualElement" |
99 | | - Fill="{StaticResource GitHubButtonBackgroundDisabledGradientBrush}" SnapsToDevicePixels="True" IsHitTestVisible="false" |
| 87 | + Fill="{StaticResource GitHubButtonBackgroundDisabledBrush}" SnapsToDevicePixels="True" IsHitTestVisible="false" |
100 | 88 | Opacity="0" /> |
101 | 89 | <Border x:Name="MouseOverBorder" BorderBrush="{StaticResource GitHubButtonBorderMouseOverBrush}" |
102 | | - Background="{StaticResource GitHubButtonBackgroundMouseOverGradientBrush}" |
| 90 | + Background="{StaticResource GitHubButtonBackgroundMouseOverBrush}" |
103 | 91 | BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True" Opacity="0" /> |
104 | 92 | <Border x:Name="PressedBorder" BorderBrush="{StaticResource GitHubButtonBorderPressedBrush}" |
105 | | - Background="{StaticResource GitHubButtonBackgroundPressedGradientBrush}" |
| 93 | + Background="{StaticResource GitHubButtonBackgroundPressedBrush}" |
106 | 94 | BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True" Opacity="0" /> |
107 | 95 | <Border x:Name="DefaultVisualElement" BorderBrush="{DynamicResource GitHubAccentBrush}" |
108 | 96 | Background="Transparent" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True" Opacity="0" /> |
|
231 | 219 | </Setter.Value> |
232 | 220 | </Setter> |
233 | 221 | </Style> |
| 222 | + |
234 | 223 | </ResourceDictionary> |
0 commit comments