-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml
113 lines (101 loc) · 5.43 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<Application x:Class="Vidiya.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:materialIcons="clr-namespace:Material.Icons.WPF;assembly=Material.Icons.WPF"
xmlns:local="clr-namespace:Vidiya"
StartupUri="Windows/MainWindow.xaml"
>
<Application.Resources>
<BitmapImage x:Key="Vidiya_Icon" UriSource="Assets/Images/Vidiya_Icon.png" />
<BitmapImage x:Key="Vidiya_Logo" UriSource="Assets/Images/Vidiya_Logo.png" />
<BitmapImage x:Key="Vidiya_Banner" UriSource="Assets/Images/Vidiya_Banner.png" />
<BitmapImage x:Key="Vidiya_Splashscreen" UriSource="Assets/Images/Vidiya_Splashscreen.png" />
<BitmapImage x:Key="SidePanel_Logo" UriSource="Assets/Images/SidePanel_Logo.jpg" />
<Color x:Key="TextBoxBackgroundColor">#C4AF8D</Color>
<Color x:Key="TextBoxForegroundColor">#6B4E2C</Color>
<Color x:Key="ToolBarButtonForegroundColor">#6B4E2C</Color>
<Style x:Key="VidiyaButton" TargetType="Button">
<Setter Property="Background" Value="#00000000"/>
<Setter Property="BorderBrush" Value="#00000000"/>
<Setter Property="Foreground" Value="#00000000"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Margin" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Name="Grid">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Grid" Property="Opacity" Value="0.8" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="VidiyaSliderThumb" TargetType="Thumb">
<Setter Property="SnapsToDevicePixels" Value="true"/>
<Setter Property="OverridesDefaultStyle" Value="false"/>
<Setter Property="Height" Value="18"/>
<Setter Property="Width" Value="18"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Ellipse Name="Ellipse" Fill="#8CADB4" />
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Ellipse" Property="Opacity" Value="0.8"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="VidiyaStyle" TargetType="Slider">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Slider">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" Name="row" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" Name="column" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Border Name="PART_Border"
Padding="2"
Grid.Row="1" Grid.Column="1"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Background="#8CADB4"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"/>
<Track Name="PART_Track"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Grid.Row="1" Grid.Column="1"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}">
<Track.Thumb>
<Thumb Style="{StaticResource VidiyaSliderThumb}" />
</Track.Thumb>
</Track>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="PART_Border" Property="Opacity" Value="0.8"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
</Application>