-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
141 lines (122 loc) · 7.87 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!--
Copyright (C) 2019 Jacob Zhang
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Application x:Class="Thesis.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Views/MainWindow.xaml"
xmlns:fa5="http://schemas.fontawesome.com/icons/"
xmlns:views="clr-namespace:Thesis.Views">
<Application.Resources>
<ResourceDictionary>
<FontFamily x:Key="FiraCode">pack://application:,,,/Resources/#Fira Code Regular</FontFamily>
<FontFamily x:Key="FiraCodeBold">pack://application:,,,/Resources/#Fira Code Bold</FontFamily>
<FontFamily x:Key="Nunito">pack://application:,,,/Resources/#Nunito Sans Regular</FontFamily>
<FontFamily x:Key="NunitoLight">pack://application:,,,/Resources/#Nunito Sans Light</FontFamily>
<FontFamily x:Key="NunitoSemiBold">pack://application:,,,/Resources/#Nunito Sans SemiBold</FontFamily>
<FontFamily x:Key="NunitoBold">pack://application:,,,/Resources/#Nunito Sans Bold</FontFamily>
<FontFamily x:Key="NunitoExtraBold">pack://application:,,,/Resources/#Nunito Sans ExtraBold</FontFamily>
<Style x:Key="GlobalFont" TargetType="{x:Type Window}">
<Setter Property="FontFamily" Value="{StaticResource Nunito}" />
</Style>
<BooleanToVisibilityConverter x:Key="BoolToVis" />
<views:TypeOfConverter x:Key="TypeOfConverter"/>
<views:ColorToSolidBrushConverter x:Key="ColorToSolidBrushConverter"/>
<views:CellVertexVisibilityConverter x:Key="CellVertexVisibilityConverter"/>
<views:NameConverter x:Key="NameConverter"/>
<Style TargetType="fa5:SvgAwesome">
<Setter Property="Margin" Value="0,0,6,0" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="16" />
</Style>
<Color x:Key="InputColor">#27ae60</Color>
<Color x:Key="ConstantColor">#2980b9</Color>
<Color x:Key="FormulaColor">#8e44ad</Color>
<Color x:Key="OutputColor">#e74c3c</Color>
<Color x:Key="ExternalColor">#1abc9c</Color>
<Color x:Key="RangeColor">#bdc3c7</Color>
<SolidColorBrush x:Key="InputColorBrush" Color="{DynamicResource InputColor}" />
<SolidColorBrush x:Key="ConstantColorBrush" Color="{DynamicResource ConstantColor}" />
<SolidColorBrush x:Key="FormulaColorBrush" Color="{DynamicResource FormulaColor}" />
<SolidColorBrush x:Key="OutputColorBrush" Color="{DynamicResource OutputColor}" />
<SolidColorBrush x:Key="ExternalColorBrush" Color="{DynamicResource ExternalColor}" />
<SolidColorBrush x:Key="RangeColorBrush" Color="{DynamicResource RangeColor}" />
<Color x:Key="HeaderColor">#c9c9c9</Color>
<Color x:Key="AttributeColor">#b4e2de</Color>
<Color x:Key="DataColor">#bad2e3</Color>
<SolidColorBrush x:Key="HeaderColorBrush" Color="{DynamicResource HeaderColor}" />
<SolidColorBrush x:Key="AttributeColorBrush" Color="{DynamicResource AttributeColor}" />
<SolidColorBrush x:Key="DataColorBrush" Color="{DynamicResource DataColor}" />
<SolidColorBrush x:Key="InfoColor" Color="#00529B" />
<SolidColorBrush x:Key="InfoBackground" Color="#BDE5F8" />
<SolidColorBrush x:Key="SuccessColor" Color="#4F8A10" />
<SolidColorBrush x:Key="SuccessBackground" Color="#DFF2BF" />
<SolidColorBrush x:Key="WarningColor" Color="#9F6000" />
<SolidColorBrush x:Key="WarningBackground" Color="#FEEFB3" />
<SolidColorBrush x:Key="ErrorColor" Color="#D8000C" />
<SolidColorBrush x:Key="ErrorBackground" Color="#FFD2D2" />
<Style TargetType="Path" x:Key="ShapeStyle">
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Stroke" Value="#5e5e5e" />
</Style>
<Style TargetType="Path" x:Key="ConnectorGeometryStyle">
<Setter Property="Stroke" Value="Black" />
<Setter Property="StrokeThickness" Value="0.5" />
<Setter Property="Opacity" Value="0.3" />
</Style>
<Style TargetType="Path" x:Key="ExternalConnectorGeometryStyle">
<Setter Property="Stroke" Value="{StaticResource ExternalColorBrush}" />
<Setter Property="StrokeThickness" Value="2"/>
<Setter Property="StrokeDashArray" Value="1.2"/>
</Style>
<Style TargetType="Path" x:Key="TargetDecoratorStyle">
<Setter Property="Stroke" Value="Black" />
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Fill" Value="Black" />
<Setter Property="Height" Value="5" />
<Setter Property="Width" Value="5" />
<Setter Property="Opacity" Value="0.3" />
</Style>
<Style TargetType="Path" x:Key="ExternalTargetDecoratorStyle">
<Setter Property="Stroke" Value="{StaticResource ExternalColorBrush}" />
<Setter Property="Stretch" Value="Fill" />
<Setter Property="Fill" Value="{StaticResource ExternalColorBrush}" />
<Setter Property="Height" Value="7.5" />
<Setter Property="Width" Value="7.5" />
</Style>
<DataTemplate x:Key="normalLabel">
<TextBlock Text="{Binding Path=Content}" FontSize="10" FontFamily="{StaticResource FiraCode}" />
</DataTemplate>
<DataTemplate x:Key="redLabel">
<TextBlock Text="{Binding Path=Content}" FontSize="10" Foreground="Red" FontFamily="{StaticResource FiraCode}" />
</DataTemplate>
<DataTemplate x:Key="rangeLabel">
<TextBlock Text="{Binding Path=Content}" FontSize="14" FontFamily="{StaticResource FiraCodeBold}"/>
</DataTemplate>
<ResourceDictionary.MergedDictionaries>
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />
<!-- Accent and AppTheme setting -->
<ResourceDictionary
Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/light.steel.xaml" />
<ResourceDictionary
Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
<ResourceDictionary Source="/Syncfusion.SfDiagram.Wpf;component/Resources/BasicShapes.xaml" />
<ResourceDictionary Source="/Syncfusion.SfDiagram.Wpf;component/Resources/BindingStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>