This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Styles.xaml
140 lines (114 loc) · 5.19 KB
/
Styles.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
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:XivToolsWpf.Controls"
xmlns:converters="clr-namespace:XivToolsWpf.Converters">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/Dark.xaml" />
<!-- Custom -->
<ResourceDictionary Source="Styles/BorderStyles.xaml" />
<ResourceDictionary Source="Styles/GroupBoxStyles.xaml" />
<ResourceDictionary Source="Styles/ButtonStyles.xaml" />
<ResourceDictionary Source="Styles/TextBlockStyles.xaml" />
<ResourceDictionary Source="Styles/ToggleButtonStyles.xaml" />
<ResourceDictionary Source="Styles/ExpanderStyles.xaml" />
<ResourceDictionary Source="Styles/TabControlStyles.xaml" />
<ResourceDictionary Source="Styles/TextBoxStyles.xaml" />
<ResourceDictionary Source="Styles/ComboBoxStyles.xaml" />
<ResourceDictionary Source="Styles/MenuStyles.xaml" />
<ResourceDictionary Source="Styles/WindowStyles.xaml" />
<ResourceDictionary Source="Styles/ScrollBarStyles.xaml" />
<ResourceDictionary Source="Styles/SliderStyles.xaml" />
<ResourceDictionary Source="Styles/ProgressBarStyles.xaml" />
<ResourceDictionary Source="Styles/CheckBoxStyles.xaml" />
<ResourceDictionary Source="Styles/ListBoxStyles.xaml" />
<!-- Controls -->
<ResourceDictionary Source="Controls/MultiNumberBoxStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style
BasedOn="{StaticResource XivToolsButton}"
TargetType="{x:Type Button}" />
<Style
BasedOn="{StaticResource XivToolsComboBox}"
TargetType="{x:Type ComboBox}" />
<Style
BasedOn="{StaticResource XivToolsListBox}"
TargetType="{x:Type ListBox}" />
<Style
BasedOn="{StaticResource XivToolsListBoxItem}"
TargetType="{x:Type ListBoxItem}" />
<Style
BasedOn="{StaticResource XivToolsSlider}"
TargetType="{x:Type Slider}" />
<Style
BasedOn="{StaticResource XivToolsToggleButton}"
TargetType="{x:Type ToggleButton}" />
<Style
BasedOn="{StaticResource ScrollViewerStyle}"
TargetType="{x:Type ScrollViewer}" />
<Style
BasedOn="{StaticResource XivToolsTabControl}"
TargetType="{x:Type TabControl}" />
<Style
BasedOn="{StaticResource XivToolsTextBox}"
TargetType="{x:Type TextBox}" />
<Style
BasedOn="{StaticResource XivToolsProgressBar}"
TargetType="{x:Type ProgressBar}" />
<Style
BasedOn="{StaticResource XivToolsCheckBox}"
TargetType="{x:Type CheckBox}" />
<Style
BasedOn="{StaticResource XivToolsMenuItem}"
TargetType="{x:Type MenuItem}" />
<Style
BasedOn="{StaticResource XivToolsGroupBox}"
TargetType="{x:Type GroupBox}" />
<Style
BasedOn="{StaticResource XivToolsTextBlock}"
TargetType="{x:Type TextBlock}" />
<Style
BasedOn="{StaticResource XivToolsExpander}"
TargetType="{x:Type Expander}" />
<Style
BasedOn="{StaticResource XivToolsMultiNumberBox}"
TargetType="{x:Type controls:MultiNumberBox}" />
<Style
BasedOn="{StaticResource XivToolsSlider}"
TargetType="{x:Type controls:Slider}" />
<Style
BasedOn="{StaticResource XivToolsSlider}"
TargetType="{x:Type controls:RelativeSlider}" />
<!-- Custom converters -->
<converters:StringHasContentToVisibilityConverter x:Key="StringHasContentToVisibility" />
<converters:StringHasContentToBoolConverter x:Key="StringHasContentToBool" />
<converters:NotNullToVisibilityConverter x:Key="NotNullToVisibilityConverter" />
<converters:NotEmptyToVisibilityConverter x:Key="NotEmptyToVisibilityConverter" />
<converters:IsEmptyToVisibilityConverter x:Key="IsEmptyToVisibilityConverter" />
<converters:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
<converters:NotNullToBoolConverter x:Key="NotNullToBoolConverter" />
<converters:NullToBoolConverter x:Key="NullToBoolConverter" />
<BooleanToVisibilityConverter x:Key="B2V" />
<converters:InvertedBoolToVisibilityConverter x:Key="!B2V" />
<converters:RadiansToDegreesConverter x:Key="Rad2Deg" />
<converters:NotZeroToVisibilityConverter x:Key="NotZeroToVisibility" />
<converters:IsZeroToVisibilityConverter x:Key="IsZeroToVisibility" />
<converters:NotZeroToBoolConverter x:Key="NotZeroToBool" />
<converters:IsZeroToBoolConverter x:Key="IsZeroToBool" />
<converters:BoolInversionConverter x:Key="!B" />
<converters:ListToStringConverter x:Key="ListToStringConverter" />
<converters:ColorToBrushConverter x:Key="ColorToBrush" />
<converters:EnumToBoolConverter x:Key="EnumToBool" />
<converters:EnumToVisibilityConverter x:Key="EnumToVisibility" />
<converters:LessThanToVisibilityConverter x:Key="LessThanToVisibility" />
<converters:LessThanToBoolConverter x:Key="LessThanToBool" />
<converters:GreaterThanToVisibilityConverter x:Key="GreaterThanToVisibility" />
<converters:AbsoluteNumberConverter x:Key="AbsoluteNumber" />
<converters:NumberConverter x:Key="NumberConverter" />
<!-- Multi converters -->
<converters:MultiBoolAndConverter x:Key="MultiBoolAnd" />
<converters:MultiBoolOrConverter x:Key="MultiBoolOr" />
<converters:MultiBoolOrToVisibilityConverter x:Key="MultiBoolOrToVisibility" />
<converters:MultiBoolAndToVisibilityConverter x:Key="MultiBoolAndToVisibility" />
<converters:AnyBoolIsFalseToBoolMultiConverter x:Key="AnyBoolIsFalseToBool" />
</ResourceDictionary>