-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathThemeOptionsPane.xaml
More file actions
345 lines (335 loc) · 18.1 KB
/
ThemeOptionsPane.xaml
File metadata and controls
345 lines (335 loc) · 18.1 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<UserControl x:Class="MarkdownTextBlockExperiment.Samples.ThemeOptionsPane"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:MarkdownTextBlockExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">
<ScrollViewer>
<StackPanel Spacing="12">
<!-- Actions -->
<StackPanel Orientation="Horizontal"
Spacing="8">
<Button Click="ResetTheme_Click"
Content="Reset to Defaults" />
</StackPanel>
<!-- Headings Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
IsExpanded="True">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Headings" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="H1FontSizeBox"
Header="H1 Font Size"
Maximum="48"
Minimum="8"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<ComboBox x:Name="H1ColorComboBox"
HorizontalAlignment="Stretch"
Header="H1 Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="DodgerBlue" />
<ComboBoxItem Content="Coral" />
<ComboBoxItem Content="MediumSeaGreen" />
<ComboBoxItem Content="Gold" />
<ComboBoxItem Content="Orchid" />
<ComboBoxItem Content="Default (Primary)" />
</ComboBox>
<muxc:NumberBox x:Name="H2FontSizeBox"
Header="H2 Font Size"
Maximum="48"
Minimum="8"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="H3FontSizeBox"
Header="H3 Font Size"
Maximum="48"
Minimum="8"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
</StackPanel>
</muxc:Expander>
<!-- Text Styling Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Text Styling" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<ComboBox x:Name="BoldFontWeightComboBox"
HorizontalAlignment="Stretch"
Header="Bold Font Weight"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Bold" />
<ComboBoxItem Content="SemiBold" />
<ComboBoxItem Content="Medium" />
<ComboBoxItem Content="Normal" />
<ComboBoxItem Content="ExtraBold" />
</ComboBox>
</StackPanel>
</muxc:Expander>
<!-- Inline Code Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Inline Code" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="InlineCodeFontSizeBox"
Header="Font Size"
Maximum="24"
Minimum="8"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="InlineCodePaddingBox"
Header="Padding"
Maximum="16"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="InlineCodeCornerRadiusBox"
Header="Corner Radius"
Maximum="16"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="InlineCodeBorderThicknessBox"
Header="Border Thickness"
Maximum="4"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<ComboBox x:Name="InlineCodeColorComboBox"
HorizontalAlignment="Stretch"
Header="Foreground Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Orange" />
<ComboBoxItem Content="Coral" />
<ComboBoxItem Content="LimeGreen" />
<ComboBoxItem Content="DeepSkyBlue" />
<ComboBoxItem Content="Default (Primary)" />
</ComboBox>
<ComboBox x:Name="InlineCodeBackgroundColorComboBox"
HorizontalAlignment="Stretch"
Header="Background Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Blue Tint" />
<ComboBoxItem Content="Dark Tint" />
<ComboBoxItem Content="Black Tint" />
<ComboBoxItem Content="Green Tint" />
<ComboBoxItem Content="Default (Theme)" />
</ComboBox>
<ComboBox x:Name="InlineCodeBorderColorComboBox"
HorizontalAlignment="Stretch"
Header="Border Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="SlateGray" />
<ComboBoxItem Content="DimGray" />
<ComboBoxItem Content="DarkSlateGray" />
<ComboBoxItem Content="MediumSlateBlue" />
<ComboBoxItem Content="Transparent" />
</ComboBox>
</StackPanel>
</muxc:Expander>
<!-- Code Block Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Code Blocks" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="CodeBlockPaddingBox"
Header="Padding"
Maximum="24"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="CodeBlockCornerRadiusBox"
Header="Corner Radius"
Maximum="16"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="CodeBlockBorderThicknessBox"
Header="Border Thickness"
Maximum="4"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<ComboBox x:Name="CodeBlockFontComboBox"
HorizontalAlignment="Stretch"
Header="Font Family"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Cascadia Code" />
<ComboBoxItem Content="Consolas" />
<ComboBoxItem Content="Courier New" />
<ComboBoxItem Content="Segoe UI" />
</ComboBox>
<ComboBox x:Name="CodeBlockBackgroundColorComboBox"
HorizontalAlignment="Stretch"
Header="Background Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Blue Tint" />
<ComboBoxItem Content="Dark Tint" />
<ComboBoxItem Content="Black Tint" />
<ComboBoxItem Content="Green Tint" />
<ComboBoxItem Content="Default (Theme)" />
</ComboBox>
<ComboBox x:Name="CodeBlockBorderColorComboBox"
HorizontalAlignment="Stretch"
Header="Border Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="SlateGray" />
<ComboBoxItem Content="DimGray" />
<ComboBoxItem Content="DarkSlateGray" />
<ComboBoxItem Content="MediumSlateBlue" />
<ComboBoxItem Content="Transparent" />
</ComboBox>
</StackPanel>
</muxc:Expander>
<!-- Quote Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Block Quotes" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="QuoteBorderWidthBox"
Header="Border Width"
Maximum="12"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="QuotePaddingBox"
Header="Padding"
Maximum="24"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="QuoteCornerRadiusBox"
Header="Corner Radius"
Maximum="16"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<ComboBox x:Name="QuoteColorComboBox"
HorizontalAlignment="Stretch"
Header="Border Color"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="DodgerBlue" />
<ComboBoxItem Content="Gray" />
<ComboBoxItem Content="MediumSeaGreen" />
<ComboBoxItem Content="Coral" />
</ComboBox>
</StackPanel>
</muxc:Expander>
<!-- Lists Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Lists" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="ListBulletSpacingBox"
Header="Bullet Spacing"
Maximum="20"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="ListGutterWidthBox"
Header="Gutter Width (Indent)"
Maximum="60"
Minimum="10"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
</StackPanel>
</muxc:Expander>
<!-- Table Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Tables" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="TableCellPaddingBox"
Header="Cell Padding"
Maximum="16"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="TableBorderThicknessBox"
Header="Border Thickness"
Maximum="4"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
</StackPanel>
</muxc:Expander>
<!-- Horizontal Rule Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Horizontal Rule" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="HorizontalRuleThicknessBox"
Header="Thickness"
Maximum="8"
Minimum="1"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="HorizontalRuleMarginBox"
Header="Vertical Margin"
Maximum="32"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
</StackPanel>
</muxc:Expander>
<!-- Images Section -->
<muxc:Expander HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<muxc:Expander.Header>
<TextBlock FontWeight="SemiBold"
Text="Images" />
</muxc:Expander.Header>
<StackPanel Spacing="8">
<muxc:NumberBox x:Name="ImageMaxWidthBox"
Header="Max Width (0 = no limit)"
Maximum="1000"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<muxc:NumberBox x:Name="ImageMaxHeightBox"
Header="Max Height (0 = no limit)"
Maximum="1000"
Minimum="0"
SpinButtonPlacementMode="Compact"
ValueChanged="OnValueChanged" />
<ComboBox x:Name="ImageStretchComboBox"
HorizontalAlignment="Stretch"
Header="Stretch"
SelectionChanged="OnSelectionChanged">
<ComboBoxItem Content="Uniform" />
<ComboBoxItem Content="None" />
<ComboBoxItem Content="Fill" />
<ComboBoxItem Content="UniformToFill" />
</ComboBox>
</StackPanel>
</muxc:Expander>
</StackPanel>
</ScrollViewer>
</UserControl>