blob: b4eb5a9e1b62fee81d20748c5cd17c2fd1c2895b (
plain)
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
74
75
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Tango.Touch.Controls"
xmlns:local="clr-namespace:Tango.Touch.Styles">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Resources/Colors.xaml" />
<ResourceDictionary Source="../Resources/Fonts.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="TangoRoundTouchButton" TargetType="{x:Type controls:TouchButton}">
<Setter Property="RenderOptions.EdgeMode" Value="Unspecified"></Setter>
<Setter Property="Background" Value="{StaticResource TangoMidAccentBrush}"></Setter>
<Setter Property="CornerRadius" Value="50"></Setter>
<Setter Property="Width" Value="{Binding RelativeSource={RelativeSource Self},Path=ActualHeight}"></Setter>
<Setter Property="TextElement.Foreground" Value="{StaticResource TangoLightForegroundBrush}"></Setter>
</Style>
<Style x:Key="TangoFlatButton" TargetType="{x:Type controls:TouchButton}">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="CornerRadius" Value="0"></Setter>
<Setter Property="TextElement.Foreground" Value="{StaticResource TangoLightForegroundBrush}"></Setter>
<Setter Property="RippleBrush" Value="{StaticResource TangoRippleDarkBrush}"></Setter>
<Setter Property="EnableDropShadow" Value="False"></Setter>
<Setter Property="Foreground" Value="{StaticResource TangoDarkForegroundBrush}"></Setter>
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
<Setter Property="Padding" Value="10"></Setter>
<Setter Property="RippleFactor" Value="10"></Setter>
</Style>
<Style x:Key="TangoLinkButton" TargetType="{x:Type controls:TouchButton}">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
<Setter Property="CornerRadius" Value="20"></Setter>
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="EnableDropShadow" Value="False"></Setter>
<Setter Property="Padding" Value="10 5"></Setter>
<Setter Property="RippleBrush" Value="{StaticResource TangoRippleDarkBrush}"></Setter>
<Setter Property="FontSize" Value="{StaticResource TangoDefaultFontSize}"></Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{StaticResource TangoDisabledBackgroundBrush}"></Setter>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="TangoHollowButton" TargetType="{x:Type controls:TouchButton}">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="CornerRadius" Value="30"></Setter>
<Setter Property="TextElement.Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
<Setter Property="BorderThickness" Value="2"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
<Setter Property="RippleBrush" Value="{StaticResource TangoRippleDarkBrush}"></Setter>
<Setter Property="EnableDropShadow" Value="False"></Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="BorderBrush" Value="{StaticResource TangoDisabledBackgroundBrush}"></Setter>
<Setter Property="Foreground" Value="{StaticResource TangoDisabledBackgroundBrush}"></Setter>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="TangoMessageBoxButton" TargetType="{x:Type controls:TouchButton}" BasedOn="{StaticResource TangoFlatButton}">
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
<Setter Property="TextElement.Foreground" Value="{StaticResource TangoAlternateAccentBrush}"></Setter>
<Setter Property="Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
<Setter Property="FontSize" Value="{StaticResource TangoMessageBoxButtonFontSize}"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource TangoDividerBrush}"></Setter>
<Setter Property="FontWeight" Value="SemiBold"></Setter>
<Setter Property="BorderThickness" Value="0 0 0 0"></Setter>
<Setter Property="CornerRadius" Value="25"></Setter>
<Setter Property="RippleFactor" Value="5"></Setter>
</Style>
</ResourceDictionary>
|