-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml
More file actions
103 lines (103 loc) · 5.6 KB
/
App.xaml
File metadata and controls
103 lines (103 loc) · 5.6 KB
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
<Application x:Class="Pin.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Pin" StartupUri="MainWindow.xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d1p1:Ignorable="d" xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006">
<Application.Resources>
<SolidColorBrush x:Key="MainAppThemeColor" Color="#FF646769" />
<SolidColorBrush x:Key="MainAppLightColor" Color="#FF848789" />
<SolidColorBrush x:Key="HoverColor" Color="#FF747779" />
<SolidColorBrush x:Key="PressedColor" Color="#FF949799" />
<SolidColorBrush x:Key="MainTextColor" Color="White" />
<SolidColorBrush x:Key="PopupBackground" Color="#FF848789" />
<SolidColorBrush x:Key="PopupTextColor" Color="White" />
<BitmapImage x:Key="Menu" UriSource="./images/menu.png" />
<BitmapImage x:Key="Exit" UriSource="./images/Exit.png" />
<BitmapImage x:Key="CloseArrow" UriSource="./images/CloseArrow.png" />
<BitmapImage x:Key="OpenArrow" UriSource="./images/OpenArrow.png" />
<BitmapImage x:Key="Folder" UriSource="./images/Folder.png" />
<BitmapImage x:Key="Tack-90deg" UriSource="./images/tack-90deg.png" />
<BitmapImage x:Key="Tack-45deg" UriSource="./images/tack-45deg.png" />
<ControlTemplate x:Key="StyledButton" TargetType="Button">
<Border CornerRadius="5" Background="{TemplateBinding Background}">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
</Trigger>
<Trigger Property="IsPressed" Value="True">
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="RadioButton">
<Setter Property="Background" Value="{StaticResource MainAppThemeColor}" />
<Setter Property="Foreground" Value="{StaticResource MainTextColor}" />
</Style>
<!-- most of the Radio button styling-->
<ControlTemplate x:Key="StyledRadioButton" TargetType="{x:Type RadioButton}">
<Grid x:Name="templateRoot" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" Focusable="False" Margin="0" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="HasContent" Value="True">
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Style>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="0,0,0,0" SnapsToDevicePixels="True" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
<Setter Property="Padding" Value="0,0,0,0" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF747779" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#FF949799" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" Value="#FF848789" />
</Trigger>
<Trigger Property="IsChecked" Value="{x:Null}">
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate x:Key="PinBtn" TargetType="Button">
<Border Background="{TemplateBinding Background}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="20" Height="20" Padding="0">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" />
</Grid>
</Border>
</ControlTemplate>
<Style TargetType="Button">
<Setter Property="Foreground" Value="{StaticResource MainTextColor}" />
<Setter Property="Background" Value="{StaticResource MainAppLightColor}" />
<Setter Property="BorderBrush" Value="{StaticResource MainAppThemeColor}" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<ControlTemplate x:Key="SaveBtn" TargetType="Button">
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF747779" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#FF949799" />
</Trigger>
</ControlTemplate.Triggers>
<Border Background="{TemplateBinding Background}" BorderBrush="LightGray" BorderThickness="1">
<Grid>
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" />
</Grid>
</Border>
</ControlTemplate>
<!--<ResourceDictionary>
<vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" xmlns:vm="clr-namespace:Pin.ViewModel" />
</ResourceDictionary>-->
</Application.Resources>
</Application>