-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathTheme.g.cs
More file actions
976 lines (803 loc) · 25.2 KB
/
Theme.g.cs
File metadata and controls
976 lines (803 loc) · 25.2 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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by MaterialDesignToolkit.ResourceGeneration.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace MaterialDesignThemes.Wpf;
partial class Theme
{
public Theme()
{
Badgeds = new(this);
Buttons = new(this);
SnackBars = new(this);
Cards = new(this);
CheckBoxes = new(this);
Chips = new(this);
ColorZones = new(this);
ComboBoxes = new(this);
DataGrids = new(this);
TextBoxes = new(this);
PasswordBoxes = new(this);
GridSplitters = new(this);
Headers = new(this);
ListBoxItems = new(this);
ListViews = new(this);
RadioButtons = new(this);
ScrollBars = new(this);
Separators = new(this);
TabControls = new(this);
ToolBars = new(this);
ToggleButtons = new(this);
ToolTips = new(this);
}
private ColorReference _background;
public ColorReference Background
{
get => Resolve(_background);
set => _background = value;
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => Resolve(_foreground);
set => _foreground = value;
}
private ColorReference _foregroundLight;
public ColorReference ForegroundLight
{
get => Resolve(_foregroundLight);
set => _foregroundLight = value;
}
private ColorReference _validationError;
public ColorReference ValidationError
{
get => Resolve(_validationError);
set => _validationError = value;
}
public Badged Badgeds { get; set; }
public Button Buttons { get; set; }
public SnackBar SnackBars { get; set; }
public Card Cards { get; set; }
public CheckBox CheckBoxes { get; set; }
public Chip Chips { get; set; }
public ColorZone ColorZones { get; set; }
public ComboBox ComboBoxes { get; set; }
public DataGrid DataGrids { get; set; }
public TextBox TextBoxes { get; set; }
public PasswordBox PasswordBoxes { get; set; }
public GridSplitter GridSplitters { get; set; }
public Header Headers { get; set; }
public ListBoxItem ListBoxItems { get; set; }
public ListView ListViews { get; set; }
public RadioButton RadioButtons { get; set; }
public ScrollBar ScrollBars { get; set; }
public Separator Separators { get; set; }
public TabControl TabControls { get; set; }
public ToolBar ToolBars { get; set; }
public ToggleButton ToggleButtons { get; set; }
public ToolTip ToolTips { get; set; }
public class Badged
{
private readonly Theme _theme;
public Badged(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _darkBackground;
public ColorReference DarkBackground
{
get => _theme.Resolve(_darkBackground);
set => _darkBackground = value;
}
private ColorReference _darkForeground;
public ColorReference DarkForeground
{
get => _theme.Resolve(_darkForeground);
set => _darkForeground = value;
}
private ColorReference _lightBackground;
public ColorReference LightBackground
{
get => _theme.Resolve(_lightBackground);
set => _lightBackground = value;
}
private ColorReference _lightForeground;
public ColorReference LightForeground
{
get => _theme.Resolve(_lightForeground);
set => _lightForeground = value;
}
}
public class Button
{
private readonly Theme _theme;
public Button(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _flatClick;
public ColorReference FlatClick
{
get => _theme.Resolve(_flatClick);
set => _flatClick = value;
}
private ColorReference _ripple;
public ColorReference Ripple
{
get => _theme.Resolve(_ripple);
set => _ripple = value;
}
private ColorReference _flatRipple;
public ColorReference FlatRipple
{
get => _theme.Resolve(_flatRipple);
set => _flatRipple = value;
}
}
public class SnackBar
{
private readonly Theme _theme;
public SnackBar(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _ripple;
public ColorReference Ripple
{
get => _theme.Resolve(_ripple);
set => _ripple = value;
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _mouseOver;
public ColorReference MouseOver
{
get => _theme.Resolve(_mouseOver);
set => _mouseOver = value;
}
}
public class Card
{
private readonly Theme _theme;
public Card(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
}
public class CheckBox
{
private readonly Theme _theme;
public CheckBox(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _disabled;
public ColorReference Disabled
{
get => _theme.Resolve(_disabled);
set => _disabled = value;
}
private ColorReference _uncheckedBorder;
public ColorReference UncheckedBorder
{
get => _theme.Resolve(_uncheckedBorder);
set => _uncheckedBorder = value;
}
private ColorReference _off;
public ColorReference Off
{
get => _theme.Resolve(_off);
set => _off = value;
}
}
public class Chip
{
private readonly Theme _theme;
public Chip(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _outlineBorder;
public ColorReference OutlineBorder
{
get => _theme.Resolve(_outlineBorder);
set => _outlineBorder = value;
}
}
public class ColorZone
{
private readonly Theme _theme;
public ColorZone(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _darkBackground;
public ColorReference DarkBackground
{
get => _theme.Resolve(_darkBackground);
set => _darkBackground = value;
}
private ColorReference _darkForeground;
public ColorReference DarkForeground
{
get => _theme.Resolve(_darkForeground);
set => _darkForeground = value;
}
private ColorReference _lightBackground;
public ColorReference LightBackground
{
get => _theme.Resolve(_lightBackground);
set => _lightBackground = value;
}
private ColorReference _lightForeground;
public ColorReference LightForeground
{
get => _theme.Resolve(_lightForeground);
set => _lightForeground = value;
}
}
public class ComboBox
{
private readonly Theme _theme;
public ComboBox(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
Popups = new(theme);
}
private ColorReference _disabled;
public ColorReference Disabled
{
get => _theme.Resolve(_disabled);
set => _disabled = value;
}
private ColorReference _filledBackground;
public ColorReference FilledBackground
{
get => _theme.Resolve(_filledBackground);
set => _filledBackground = value;
}
private ColorReference _hoverBackground;
public ColorReference HoverBackground
{
get => _theme.Resolve(_hoverBackground);
set => _hoverBackground = value;
}
private ColorReference _outlineInactiveBorder;
public ColorReference OutlineInactiveBorder
{
get => _theme.Resolve(_outlineInactiveBorder);
set => _outlineInactiveBorder = value;
}
private ColorReference _hoverBorder;
public ColorReference HoverBorder
{
get => _theme.Resolve(_hoverBorder);
set => _hoverBorder = value;
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _outlineBorder;
public ColorReference OutlineBorder
{
get => _theme.Resolve(_outlineBorder);
set => _outlineBorder = value;
}
public Popup Popups { get; set; }
public class Popup
{
private readonly Theme _theme;
public Popup(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _darkBackground;
public ColorReference DarkBackground
{
get => _theme.Resolve(_darkBackground);
set => _darkBackground = value;
}
private ColorReference _darkForeground;
public ColorReference DarkForeground
{
get => _theme.Resolve(_darkForeground);
set => _darkForeground = value;
}
private ColorReference _lightBackground;
public ColorReference LightBackground
{
get => _theme.Resolve(_lightBackground);
set => _lightBackground = value;
}
private ColorReference _lightForeground;
public ColorReference LightForeground
{
get => _theme.Resolve(_lightForeground);
set => _lightForeground = value;
}
}
}
public class DataGrid
{
private readonly Theme _theme;
public DataGrid(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _buttonPressed;
public ColorReference ButtonPressed
{
get => _theme.Resolve(_buttonPressed);
set => _buttonPressed = value;
}
private ColorReference _comboBoxHover;
public ColorReference ComboBoxHover
{
get => _theme.Resolve(_comboBoxHover);
set => _comboBoxHover = value;
}
private ColorReference _comboBoxSelected;
public ColorReference ComboBoxSelected
{
get => _theme.Resolve(_comboBoxSelected);
set => _comboBoxSelected = value;
}
private ColorReference _popupBorder;
public ColorReference PopupBorder
{
get => _theme.Resolve(_popupBorder);
set => _popupBorder = value;
}
private ColorReference _rowHoverBackground;
public ColorReference RowHoverBackground
{
get => _theme.Resolve(_rowHoverBackground);
set => _rowHoverBackground = value;
}
private ColorReference _selected;
public ColorReference Selected
{
get => _theme.Resolve(_selected);
set => _selected = value;
}
private ColorReference _columnHeaderForeground;
public ColorReference ColumnHeaderForeground
{
get => _theme.Resolve(_columnHeaderForeground);
set => _columnHeaderForeground = value;
}
}
public class TextBox
{
private readonly Theme _theme;
public TextBox(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _hoverBorder;
public ColorReference HoverBorder
{
get => _theme.Resolve(_hoverBorder);
set => _hoverBorder = value;
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _outlineBorder;
public ColorReference OutlineBorder
{
get => _theme.Resolve(_outlineBorder);
set => _outlineBorder = value;
}
private ColorReference _disabledBackground;
public ColorReference DisabledBackground
{
get => _theme.Resolve(_disabledBackground);
set => _disabledBackground = value;
}
private ColorReference _filledBackground;
public ColorReference FilledBackground
{
get => _theme.Resolve(_filledBackground);
set => _filledBackground = value;
}
private ColorReference _hoverBackground;
public ColorReference HoverBackground
{
get => _theme.Resolve(_hoverBackground);
set => _hoverBackground = value;
}
private ColorReference _outlineInactiveBorder;
public ColorReference OutlineInactiveBorder
{
get => _theme.Resolve(_outlineInactiveBorder);
set => _outlineInactiveBorder = value;
}
}
public class PasswordBox
{
private readonly Theme _theme;
public PasswordBox(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _hoverBorder;
public ColorReference HoverBorder
{
get => _theme.Resolve(_hoverBorder);
set => _hoverBorder = value;
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _outlineBorder;
public ColorReference OutlineBorder
{
get => _theme.Resolve(_outlineBorder);
set => _outlineBorder = value;
}
private ColorReference _filledBackground;
public ColorReference FilledBackground
{
get => _theme.Resolve(_filledBackground);
set => _filledBackground = value;
}
private ColorReference _hoverBackground;
public ColorReference HoverBackground
{
get => _theme.Resolve(_hoverBackground);
set => _hoverBackground = value;
}
private ColorReference _outlineInactiveBorder;
public ColorReference OutlineInactiveBorder
{
get => _theme.Resolve(_outlineInactiveBorder);
set => _outlineInactiveBorder = value;
}
}
public class GridSplitter
{
private readonly Theme _theme;
public GridSplitter(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _previewBackground;
public ColorReference PreviewBackground
{
get => _theme.Resolve(_previewBackground);
set => _previewBackground = value;
}
}
public class Header
{
private readonly Theme _theme;
public Header(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => _theme.Resolve(_foreground);
set => _foreground = value;
}
}
public class ListBoxItem
{
private readonly Theme _theme;
public ListBoxItem(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _selected;
public ColorReference Selected
{
get => _theme.Resolve(_selected);
set => _selected = value;
}
}
public class ListView
{
private readonly Theme _theme;
public ListView(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _hover;
public ColorReference Hover
{
get => _theme.Resolve(_hover);
set => _hover = value;
}
private ColorReference _selected;
public ColorReference Selected
{
get => _theme.Resolve(_selected);
set => _selected = value;
}
private ColorReference _separator;
public ColorReference Separator
{
get => _theme.Resolve(_separator);
set => _separator = value;
}
}
public class RadioButton
{
private readonly Theme _theme;
public RadioButton(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
Chips = new(theme);
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
private ColorReference _checked;
public ColorReference Checked
{
get => _theme.Resolve(_checked);
set => _checked = value;
}
private ColorReference _disabled;
public ColorReference Disabled
{
get => _theme.Resolve(_disabled);
set => _disabled = value;
}
private ColorReference _outline;
public ColorReference Outline
{
get => _theme.Resolve(_outline);
set => _outline = value;
}
public Chip Chips { get; set; }
public class Chip
{
private readonly Theme _theme;
public Chip(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _checkedBackground;
public ColorReference CheckedBackground
{
get => _theme.Resolve(_checkedBackground);
set => _checkedBackground = value;
}
}
}
public class ScrollBar
{
private readonly Theme _theme;
public ScrollBar(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _activeBackground;
public ColorReference ActiveBackground
{
get => _theme.Resolve(_activeBackground);
set => _activeBackground = value;
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => _theme.Resolve(_foreground);
set => _foreground = value;
}
private ColorReference _repeatButtonBackground;
public ColorReference RepeatButtonBackground
{
get => _theme.Resolve(_repeatButtonBackground);
set => _repeatButtonBackground = value;
}
}
public class Separator
{
private readonly Theme _theme;
public Separator(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
}
public class TabControl
{
private readonly Theme _theme;
public TabControl(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _divider;
public ColorReference Divider
{
get => _theme.Resolve(_divider);
set => _divider = value;
}
}
public class ToolBar
{
private readonly Theme _theme;
public ToolBar(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
Thumbs = new(theme);
Items = new(theme);
Overflows = new(theme);
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _separator;
public ColorReference Separator
{
get => _theme.Resolve(_separator);
set => _separator = value;
}
public Thumb Thumbs { get; set; }
public Item Items { get; set; }
public Overflow Overflows { get; set; }
public class Thumb
{
private readonly Theme _theme;
public Thumb(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => _theme.Resolve(_foreground);
set => _foreground = value;
}
}
public class Item
{
private readonly Theme _theme;
public Item(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => _theme.Resolve(_foreground);
set => _foreground = value;
}
}
public class Overflow
{
private readonly Theme _theme;
public Overflow(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _border;
public ColorReference Border
{
get => _theme.Resolve(_border);
set => _border = value;
}
}
}
public class ToggleButton
{
private readonly Theme _theme;
public ToggleButton(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
Switches = new(theme);
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
private ColorReference _foreground;
public ColorReference Foreground
{
get => _theme.Resolve(_foreground);
set => _foreground = value;
}
public Switch Switches { get; set; }
public class Switch
{
private readonly Theme _theme;
public Switch(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _trackOffBackground;
public ColorReference TrackOffBackground
{
get => _theme.Resolve(_trackOffBackground);
set => _trackOffBackground = value;
}
}
}
public class ToolTip
{
private readonly Theme _theme;
public ToolTip(Theme theme)
{
_theme = theme ?? throw new ArgumentNullException(nameof(theme));
}
private ColorReference _background;
public ColorReference Background
{
get => _theme.Resolve(_background);
set => _background = value;
}
}
}