-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStyles.xaml
73 lines (73 loc) · 2.67 KB
/
Styles.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:System="clr-namespace:System;assembly=mscorlib">
<!--font-->
<FontFamily x:Key="FontFamily">Open Sans</FontFamily>
<System:Double x:Key="FontSize">12</System:Double>
<!-- Buttons -->
<Style TargetType="{x:Type Button}">
<Setter Property="FontSize"
Value="{StaticResource FontSize}" />
<Setter Property="HorizontalAlignment"
Value="Center" />
<Setter Property="FontFamily"
Value="{StaticResource FontFamily}" />
<Setter Property="Foreground"
Value="Black" />
<Setter Property="HorizontalAlignment"
Value="Stretch" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="MinWidth"
Value="28" />
<Setter Property="Height"
Value="35" />
<Setter Property="Margin"
Value="3" />
<Setter Property="Background"
Value="White" />
<Setter Property="BorderBrush"
Value="LightGray" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Padding"
Value="0" />
<Style.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius"
Value="2" />
</Style>
</Style.Resources>
</Style>
<!-- TextBlock -->
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground"
Value="Black" />
<Setter Property="FontFamily"
Value="{StaticResource FontFamily}" />
<Setter Property="FontSize"
Value="{StaticResource FontSize}" />
<Setter Property="VerticalAlignment"
Value="Center" />
<Style.Triggers>
<Trigger Property="IsEnabled"
Value="False">
<Setter Property="Opacity"
Value="0.3" />
</Trigger>
</Style.Triggers>
</Style>
<!-- Labels -->
<Style TargetType="{x:Type Label}">
<Setter Property="Foreground"
Value="Gray" />
<Setter Property="FontFamily"
Value="{StaticResource FontFamily}" />
<Setter Property="FontSize"
Value="{StaticResource FontSize}" />
<Setter Property="Margin"
Value="0" />
<Setter Property="Padding"
Value="5" />
</Style>
</ResourceDictionary>