-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
68 lines (50 loc) · 2.54 KB
/
App.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
<Application x:Class="Microsoft.Samples.Kinect.BodyIndexBasics.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<Style TargetType="{x:Type Image}">
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
<!-- ====== Header ====== -->
<Style x:Key="HeaderTextBlockStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="60" />
<Setter Property="FontWeight" Value="Light" />
<Setter Property="Foreground" Value="#FF387F37" />
</Style>
<!-- ====== Subheader ====== -->
<Style x:Key="SubheaderTextBlockStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="24" />
<Setter Property="FontWeight" Value="Light" />
<Setter Property="Foreground" Value="#222222" />
</Style>
<!-- =========== Buttons ============== -->
<Style x:Key="SmallButton" TargetType="Button">
<Setter Property="Background" Value="#387F37" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontSize" Value="30" />
<Setter Property="FontWeight" Value="Light" />
<Setter Property="Width" Value="200" />
<Setter Property="Height" Value="80" />
<!-- disables mouse hover effects -->
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- =========== Footer ============== -->
<Style x:Key="FooterButton" TargetType="Button" BasedOn="{StaticResource MainPageButton}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="FontSize" Value="24" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="Margin" Value="0" />
<Setter Property="Background" Value="#333333" />
</Style>
</Application.Resources>
</Application>