-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathThemeExtensions.g.cs
More file actions
197 lines (192 loc) · 11.9 KB
/
ThemeExtensions.g.cs
File metadata and controls
197 lines (192 loc) · 11.9 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
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by MaterialDesignToolkit.ResourceGeneration.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
using System.Windows.Media;
using MaterialDesignThemes.Wpf.Themes.Internal;
namespace MaterialDesignThemes.Wpf;
static partial class ThemeExtensions
{
public static partial void SetLightTheme(this Theme theme)
{
theme.Background = BaseThemeColors.Neutral900;
theme.Foreground = BaseThemeColors.Black900;
theme.ForegroundLight = BaseThemeColors.Black500;
theme.ValidationError = Color.FromArgb(0xFF, 0xB0, 0x00, 0x20);
theme.Badgeds.DarkBackground = BaseThemeColors.Neutral100;
theme.Badgeds.DarkForeground = BaseThemeColors.Neutral900;
theme.Badgeds.LightBackground = BaseThemeColors.Neutral900;
theme.Badgeds.LightForeground = BaseThemeColors.Black900;
theme.Buttons.FlatClick = BaseThemeColors.Neutral800;
theme.Buttons.Ripple = BaseThemeColors.Neutral700;
theme.Buttons.FlatRipple = BaseThemeColors.Neutral700;
theme.SnackBars.Ripple = BaseThemeColors.Neutral700;
theme.SnackBars.Background = BaseThemeColors.Neutral100;
theme.SnackBars.MouseOver = BaseThemeColors.Neutral200;
theme.Cards.Background = BaseThemeColors.White1000;
theme.Cards.Border = BaseThemeColors.Neutral700;
theme.CheckBoxes.Disabled = BaseThemeColors.Neutral700;
theme.CheckBoxes.UncheckedBorder = BaseThemeColors.Black100;
theme.CheckBoxes.Off = BaseThemeColors.Black500;
theme.Chips.Background = BaseThemeColors.Black50;
theme.Chips.OutlineBorder = BaseThemeColors.Black100;
theme.ColorZones.DarkBackground = BaseThemeColors.Neutral100;
theme.ColorZones.DarkForeground = BaseThemeColors.Neutral900;
theme.ColorZones.LightBackground = BaseThemeColors.Neutral900;
theme.ColorZones.LightForeground = BaseThemeColors.Black900;
theme.ComboBoxes.Disabled = BaseThemeColors.Neutral700;
theme.ComboBoxes.FilledBackground = BaseThemeColors.Black50;
theme.ComboBoxes.HoverBackground = BaseThemeColors.Black100;
theme.ComboBoxes.OutlineInactiveBorder = BaseThemeColors.Black200;
theme.ComboBoxes.HoverBorder = BaseThemeColors.Black900;
theme.ComboBoxes.Border = BaseThemeColors.Black500;
theme.ComboBoxes.OutlineBorder = BaseThemeColors.Black700;
theme.ComboBoxes.Popups.DarkBackground = BaseThemeColors.Neutral100;
theme.ComboBoxes.Popups.DarkForeground = BaseThemeColors.Neutral900;
theme.ComboBoxes.Popups.LightBackground = BaseThemeColors.Neutral900;
theme.ComboBoxes.Popups.LightForeground = BaseThemeColors.Black900;
theme.DataGrids.Border = BaseThemeColors.Black100;
theme.DataGrids.ButtonPressed = BaseThemeColors.Neutral800;
theme.DataGrids.ComboBoxHover = BaseThemeColors.Black100;
theme.DataGrids.ComboBoxSelected = BaseThemeColors.Neutral800;
theme.DataGrids.PopupBorder = BaseThemeColors.Black100;
theme.DataGrids.RowHoverBackground = BaseThemeColors.Black50;
theme.DataGrids.Selected = BaseThemeColors.Neutral800;
theme.DataGrids.ColumnHeaderForeground = BaseThemeColors.Black700;
theme.TextBoxes.HoverBorder = BaseThemeColors.Black900;
theme.TextBoxes.Border = BaseThemeColors.Black500;
theme.TextBoxes.OutlineBorder = BaseThemeColors.Black700;
theme.TextBoxes.DisabledBackground = BaseThemeColors.Black50;
theme.TextBoxes.FilledBackground = BaseThemeColors.Black50;
theme.TextBoxes.HoverBackground = BaseThemeColors.Black100;
theme.TextBoxes.OutlineInactiveBorder = BaseThemeColors.Black200;
theme.PasswordBoxes.HoverBorder = BaseThemeColors.Black900;
theme.PasswordBoxes.Border = BaseThemeColors.Black500;
theme.PasswordBoxes.OutlineBorder = BaseThemeColors.Black700;
theme.PasswordBoxes.FilledBackground = BaseThemeColors.Black50;
theme.PasswordBoxes.HoverBackground = BaseThemeColors.Black100;
theme.PasswordBoxes.OutlineInactiveBorder = BaseThemeColors.Black200;
theme.GridSplitters.Background = BaseThemeColors.Black100;
theme.GridSplitters.PreviewBackground = BaseThemeColors.Neutral800;
theme.Headers.Foreground = BaseThemeColors.Black700;
theme.ListBoxItems.Border = BaseThemeColors.Black100;
theme.ListBoxItems.Selected = BaseThemeColors.Black100;
theme.ListViews.Hover = BaseThemeColors.Black100;
theme.ListViews.Selected = BaseThemeColors.Neutral800;
theme.ListViews.Separator = BaseThemeColors.Black100;
theme.RadioButtons.Border = BaseThemeColors.Black100;
theme.RadioButtons.Checked = BaseThemeColors.Black100;
theme.RadioButtons.Disabled = BaseThemeColors.Neutral700;
theme.RadioButtons.Outline = BaseThemeColors.Black500;
theme.RadioButtons.Chips.CheckedBackground = BaseThemeColors.Black100;
theme.ScrollBars.ActiveBackground = BaseThemeColors.Black100;
theme.ScrollBars.Foreground = BaseThemeColors.Neutral800;
theme.ScrollBars.RepeatButtonBackground = BaseThemeColors.Neutral800;
theme.Separators.Background = BaseThemeColors.Neutral800;
theme.StatusBars.Background = BaseThemeColors.Neutral900;
theme.StatusBars.Foreground = BaseThemeColors.Black900;
theme.TabControls.Divider = BaseThemeColors.Black100;
theme.ToolBars.Background = BaseThemeColors.Neutral900;
theme.ToolBars.Separator = BaseThemeColors.Black100;
theme.ToolBars.Thumbs.Foreground = BaseThemeColors.Black100;
theme.ToolBars.Items.Background = BaseThemeColors.Neutral800;
theme.ToolBars.Items.Foreground = BaseThemeColors.Neutral300;
theme.ToolBars.Overflows.Border = BaseThemeColors.Black100;
theme.ToggleButtons.Background = BaseThemeColors.Neutral800;
theme.ToggleButtons.Foreground = BaseThemeColors.Neutral300;
theme.ToggleButtons.Switches.TrackOffBackground = BaseThemeColors.White1000;
theme.ToolTips.Background = BaseThemeColors.Neutral400;
}
public static partial void SetDarkTheme(this Theme theme)
{
theme.Background = BaseThemeColors.Neutral100;
theme.Foreground = BaseThemeColors.White900;
theme.ForegroundLight = BaseThemeColors.White500;
theme.ValidationError = Color.FromArgb(0xFF, 0xCF, 0x66, 0x79);
theme.Badgeds.DarkBackground = BaseThemeColors.Neutral100;
theme.Badgeds.DarkForeground = BaseThemeColors.Neutral900;
theme.Badgeds.LightBackground = BaseThemeColors.Neutral900;
theme.Badgeds.LightForeground = BaseThemeColors.Black900;
theme.Buttons.FlatClick = Color.FromArgb(0x19, 0x75, 0x75, 0x75);
theme.Buttons.Ripple = BaseThemeColors.Neutral700;
theme.Buttons.FlatRipple = BaseThemeColors.Neutral700;
theme.SnackBars.Ripple = BaseThemeColors.Neutral700;
theme.SnackBars.Background = BaseThemeColors.Neutral800;
theme.SnackBars.MouseOver = BaseThemeColors.Neutral700;
theme.Cards.Background = BaseThemeColors.Neutral200;
theme.Cards.Border = BaseThemeColors.Neutral500;
theme.CheckBoxes.Disabled = BaseThemeColors.Neutral300;
theme.CheckBoxes.UncheckedBorder = BaseThemeColors.White100;
theme.CheckBoxes.Off = BaseThemeColors.White500;
theme.Chips.Background = BaseThemeColors.White50;
theme.Chips.OutlineBorder = BaseThemeColors.White100;
theme.ColorZones.DarkBackground = BaseThemeColors.Neutral100;
theme.ColorZones.DarkForeground = BaseThemeColors.Neutral900;
theme.ColorZones.LightBackground = BaseThemeColors.Neutral900;
theme.ColorZones.LightForeground = BaseThemeColors.Black900;
theme.ComboBoxes.Disabled = BaseThemeColors.Neutral300;
theme.ComboBoxes.FilledBackground = BaseThemeColors.White100;
theme.ComboBoxes.HoverBackground = BaseThemeColors.White100;
theme.ComboBoxes.OutlineInactiveBorder = BaseThemeColors.White200;
theme.ComboBoxes.HoverBorder = BaseThemeColors.White900;
theme.ComboBoxes.Border = BaseThemeColors.White500;
theme.ComboBoxes.OutlineBorder = BaseThemeColors.White700;
theme.ComboBoxes.Popups.DarkBackground = BaseThemeColors.Neutral100;
theme.ComboBoxes.Popups.DarkForeground = BaseThemeColors.Neutral900;
theme.ComboBoxes.Popups.LightBackground = BaseThemeColors.Neutral900;
theme.ComboBoxes.Popups.LightForeground = BaseThemeColors.Black900;
theme.DataGrids.Border = BaseThemeColors.White100;
theme.DataGrids.ButtonPressed = BaseThemeColors.Neutral400;
theme.DataGrids.ComboBoxHover = BaseThemeColors.White100;
theme.DataGrids.ComboBoxSelected = BaseThemeColors.Neutral400;
theme.DataGrids.PopupBorder = BaseThemeColors.White100;
theme.DataGrids.RowHoverBackground = BaseThemeColors.White100;
theme.DataGrids.Selected = BaseThemeColors.Neutral400;
theme.DataGrids.ColumnHeaderForeground = BaseThemeColors.White700;
theme.TextBoxes.HoverBorder = BaseThemeColors.White900;
theme.TextBoxes.Border = BaseThemeColors.White500;
theme.TextBoxes.OutlineBorder = BaseThemeColors.White700;
theme.TextBoxes.DisabledBackground = BaseThemeColors.White50;
theme.TextBoxes.FilledBackground = BaseThemeColors.White100;
theme.TextBoxes.HoverBackground = BaseThemeColors.White100;
theme.TextBoxes.OutlineInactiveBorder = BaseThemeColors.White200;
theme.PasswordBoxes.HoverBorder = BaseThemeColors.White900;
theme.PasswordBoxes.Border = BaseThemeColors.White500;
theme.PasswordBoxes.OutlineBorder = BaseThemeColors.White700;
theme.PasswordBoxes.FilledBackground = BaseThemeColors.White100;
theme.PasswordBoxes.HoverBackground = BaseThemeColors.White100;
theme.PasswordBoxes.OutlineInactiveBorder = BaseThemeColors.White200;
theme.GridSplitters.Background = BaseThemeColors.White100;
theme.GridSplitters.PreviewBackground = BaseThemeColors.Neutral400;
theme.Headers.Foreground = BaseThemeColors.White700;
theme.ListBoxItems.Border = BaseThemeColors.White100;
theme.ListBoxItems.Selected = BaseThemeColors.White100;
theme.ListViews.Hover = BaseThemeColors.White100;
theme.ListViews.Selected = BaseThemeColors.Neutral400;
theme.ListViews.Separator = BaseThemeColors.White100;
theme.RadioButtons.Border = BaseThemeColors.White100;
theme.RadioButtons.Checked = BaseThemeColors.White100;
theme.RadioButtons.Disabled = BaseThemeColors.Neutral300;
theme.RadioButtons.Outline = BaseThemeColors.White500;
theme.RadioButtons.Chips.CheckedBackground = BaseThemeColors.White100;
theme.ScrollBars.ActiveBackground = BaseThemeColors.White100;
theme.ScrollBars.Foreground = BaseThemeColors.Neutral400;
theme.ScrollBars.RepeatButtonBackground = BaseThemeColors.Neutral400;
theme.Separators.Background = BaseThemeColors.Neutral400;
theme.StatusBars.Background = BaseThemeColors.Neutral50;
theme.StatusBars.Foreground = BaseThemeColors.White900;
theme.TabControls.Divider = BaseThemeColors.White100;
theme.ToolBars.Background = BaseThemeColors.Neutral50;
theme.ToolBars.Separator = BaseThemeColors.White100;
theme.ToolBars.Thumbs.Foreground = BaseThemeColors.White100;
theme.ToolBars.Items.Background = BaseThemeColors.Neutral800;
theme.ToolBars.Items.Foreground = BaseThemeColors.Neutral300;
theme.ToolBars.Overflows.Border = BaseThemeColors.White100;
theme.ToggleButtons.Background = BaseThemeColors.Neutral800;
theme.ToggleButtons.Foreground = BaseThemeColors.Neutral300;
theme.ToggleButtons.Switches.TrackOffBackground = BaseThemeColors.Neutral200;
theme.ToolTips.Background = BaseThemeColors.Neutral900;
}
}