1166 references to SystemColors
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
209
SystemColors
.ButtonFace
DesignSurface (1)
MainForm.Designer.cs (1)
72
this.splitContainer.Panel1.BackColor = System.Drawing.
SystemColors
.Window;
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (5)
145
this._tabControl.BackColor = System.Drawing.
SystemColors
.Control;
150
this._summaryTab.BackColor = System.Drawing.
SystemColors
.Control;
218
this._title.BackColor = System.Drawing.
SystemColors
.Control;
345
this._author.BackColor = System.Drawing.
SystemColors
.Control;
422
this._infoTab.BackColor = System.Drawing.
SystemColors
.Control;
MS\Internal\Documents\DialogBaseForm.cs (1)
71
BackColor = System.Drawing.
SystemColors
.Control;
MS\Internal\Documents\DialogDivider.cs (1)
74
new Pen(new SolidBrush(System.Drawing.
SystemColors
.ControlDark)),
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (4)
137
_columnHeaderPanel.BackColor = System.Drawing.
SystemColors
.Control;
147
_listBoxSummary.BackColor = System.Drawing.
SystemColors
.Window;
164
_listboxMainPanel.BackColor = System.Drawing.
SystemColors
.Info;
174
_listboxItemPanel.BackColor = System.Drawing.
SystemColors
.GradientActiveCaption;
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
18
FillWithProperties(colors, typeof(
SystemColors
));
System\Drawing\ColorConverter.cs (1)
107
member = typeof(Color).GetProperty(c.Name) ?? typeof(
SystemColors
).GetProperty(c.Name);
System.Drawing (1)
System.Drawing.cs (1)
155
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SystemColors
))]
System.Drawing.Common (1)
Special\Forwards.cs (1)
18
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SystemColors
))]
System.Drawing.Common.Tests (140)
System\Drawing\ColorTranslatorTests.cs (70)
12
yield return (unchecked((int)0x8000000A),
SystemColors
.ActiveBorder);
13
yield return (unchecked((int)0x80000002),
SystemColors
.ActiveCaption);
14
yield return (unchecked((int)0x80000009),
SystemColors
.ActiveCaptionText);
15
yield return (unchecked((int)0x8000000C),
SystemColors
.AppWorkspace);
16
yield return (unchecked((int)0x8000000F),
SystemColors
.Control);
17
yield return (unchecked((int)0x80000010),
SystemColors
.ControlDark);
18
yield return (unchecked((int)0x80000015),
SystemColors
.ControlDarkDark);
19
yield return (unchecked((int)0x80000016),
SystemColors
.ControlLight);
20
yield return (unchecked((int)0x80000014),
SystemColors
.ControlLightLight);
21
yield return (unchecked((int)0x80000012),
SystemColors
.ControlText);
22
yield return (unchecked((int)0x80000001),
SystemColors
.Desktop);
23
yield return (unchecked((int)0x8000001B),
SystemColors
.GradientActiveCaption);
24
yield return (unchecked((int)0x8000001C),
SystemColors
.GradientInactiveCaption);
25
yield return (unchecked((int)0x80000011),
SystemColors
.GrayText);
26
yield return (unchecked((int)0x8000000D),
SystemColors
.Highlight);
27
yield return (unchecked((int)0x8000000E),
SystemColors
.HighlightText);
28
yield return (unchecked((int)0x8000001A),
SystemColors
.HotTrack);
29
yield return (unchecked((int)0x8000000B),
SystemColors
.InactiveBorder);
30
yield return (unchecked((int)0x80000003),
SystemColors
.InactiveCaption);
31
yield return (unchecked((int)0x80000013),
SystemColors
.InactiveCaptionText);
32
yield return (unchecked((int)0x80000018),
SystemColors
.Info);
33
yield return (unchecked((int)0x80000017),
SystemColors
.InfoText);
34
yield return (unchecked((int)0x80000004),
SystemColors
.Menu);
35
yield return (unchecked((int)0x8000001E),
SystemColors
.MenuBar);
36
yield return (unchecked((int)0x8000001D),
SystemColors
.MenuHighlight);
37
yield return (unchecked((int)0x80000007),
SystemColors
.MenuText);
38
yield return (unchecked((int)0x80000000),
SystemColors
.ScrollBar);
39
yield return (unchecked((int)0x80000005),
SystemColors
.Window);
40
yield return (unchecked((int)0x80000006),
SystemColors
.WindowFrame);
41
yield return (unchecked((int)0x80000008),
SystemColors
.WindowText);
61
yield return new object[] { int.MinValue,
SystemColors
.ScrollBar };
97
yield return new object[] {
SystemColors
.ButtonFace, unchecked((int)0x8000000F) };
98
yield return new object[] {
SystemColors
.ButtonHighlight, unchecked((int)0x80000014) };
99
yield return new object[] {
SystemColors
.ButtonShadow, unchecked((int)0x80000010) };
111
yield return ("activeborder",
SystemColors
.ActiveBorder);
112
yield return ("activecaption",
SystemColors
.ActiveCaption);
113
yield return ("appworkspace",
SystemColors
.AppWorkspace);
114
yield return ("background",
SystemColors
.Desktop);
115
yield return ("buttonface",
SystemColors
.Control);
116
yield return ("buttonhighlight",
SystemColors
.ControlLightLight);
117
yield return ("buttonshadow",
SystemColors
.ControlDark);
118
yield return ("buttontext",
SystemColors
.ControlText);
119
yield return ("captiontext",
SystemColors
.ActiveCaptionText);
120
yield return ("graytext",
SystemColors
.GrayText);
121
yield return ("highlight",
SystemColors
.Highlight);
122
yield return ("highlighttext",
SystemColors
.HighlightText);
123
yield return ("inactiveborder",
SystemColors
.InactiveBorder);
124
yield return ("inactivecaption",
SystemColors
.InactiveCaption);
125
yield return ("inactivecaptiontext",
SystemColors
.InactiveCaptionText);
126
yield return ("infobackground",
SystemColors
.Info);
127
yield return ("infotext",
SystemColors
.InfoText);
128
yield return ("menu",
SystemColors
.Menu);
129
yield return ("menutext",
SystemColors
.MenuText);
130
yield return ("scrollbar",
SystemColors
.ScrollBar);
131
yield return ("window",
SystemColors
.Window);
132
yield return ("windowframe",
SystemColors
.WindowFrame);
133
yield return ("windowtext",
SystemColors
.WindowText);
134
yield return ("threeddarkshadow",
SystemColors
.ControlDarkDark);
152
yield return new object[] { "ActiveBorder",
SystemColors
.ActiveBorder };
153
yield return new object[] { "ACTIVEBORDER",
SystemColors
.ActiveBorder };
178
yield return new object[] { "threedface",
SystemColors
.Control };
179
yield return new object[] { "threedhighlight",
SystemColors
.ControlLight };
180
yield return new object[] { "threedlightshadow",
SystemColors
.ControlLightLight };
245
yield return new object[] {
SystemColors
.ControlLight, "buttonface" };
246
yield return new object[] {
SystemColors
.GradientActiveCaption, "activecaption" };
247
yield return new object[] {
SystemColors
.HotTrack, "highlight" };
248
yield return new object[] {
SystemColors
.MenuHighlight, "highlighttext" };
249
yield return new object[] {
SystemColors
.GradientInactiveCaption, "inactivecaption" };
250
yield return new object[] {
SystemColors
.MenuBar, "menu" };
251
yield return new object[] {
SystemColors
.ButtonShadow, "" };
System\Drawing\Drawing2D\HatchBrushTests.cs (2)
74
clone.Color =
SystemColors
.AppWorkspace;
75
Assert.Equal(
SystemColors
.AppWorkspace, clone.Color);
System\Drawing\SolidBrushTests.cs (2)
45
clone.Color =
SystemColors
.AppWorkspace;
46
Assert.Equal(
SystemColors
.AppWorkspace, clone.Color);
System\Drawing\SystemBrushesTests.cs (33)
10
yield return Brush(() => SystemBrushes.ActiveBorder,
SystemColors
.ActiveBorder);
11
yield return Brush(() => SystemBrushes.ActiveCaption,
SystemColors
.ActiveCaption);
12
yield return Brush(() => SystemBrushes.ActiveCaptionText,
SystemColors
.ActiveCaptionText);
13
yield return Brush(() => SystemBrushes.AppWorkspace,
SystemColors
.AppWorkspace);
14
yield return Brush(() => SystemBrushes.ButtonFace,
SystemColors
.ButtonFace);
15
yield return Brush(() => SystemBrushes.ButtonHighlight,
SystemColors
.ButtonHighlight);
16
yield return Brush(() => SystemBrushes.ButtonShadow,
SystemColors
.ButtonShadow);
17
yield return Brush(() => SystemBrushes.Control,
SystemColors
.Control);
18
yield return Brush(() => SystemBrushes.ControlDark,
SystemColors
.ControlDark);
19
yield return Brush(() => SystemBrushes.ControlDarkDark,
SystemColors
.ControlDarkDark);
20
yield return Brush(() => SystemBrushes.ControlLight,
SystemColors
.ControlLight);
21
yield return Brush(() => SystemBrushes.ControlLightLight,
SystemColors
.ControlLightLight);
22
yield return Brush(() => SystemBrushes.ControlText,
SystemColors
.ControlText);
23
yield return Brush(() => SystemBrushes.Desktop,
SystemColors
.Desktop);
24
yield return Brush(() => SystemBrushes.GradientActiveCaption,
SystemColors
.GradientActiveCaption);
25
yield return Brush(() => SystemBrushes.GradientInactiveCaption,
SystemColors
.GradientInactiveCaption);
26
yield return Brush(() => SystemBrushes.GrayText,
SystemColors
.GrayText);
27
yield return Brush(() => SystemBrushes.Highlight,
SystemColors
.Highlight);
28
yield return Brush(() => SystemBrushes.HighlightText,
SystemColors
.HighlightText);
29
yield return Brush(() => SystemBrushes.HotTrack,
SystemColors
.HotTrack);
30
yield return Brush(() => SystemBrushes.InactiveBorder,
SystemColors
.InactiveBorder);
31
yield return Brush(() => SystemBrushes.InactiveCaption,
SystemColors
.InactiveCaption);
32
yield return Brush(() => SystemBrushes.InactiveCaptionText,
SystemColors
.InactiveCaptionText);
33
yield return Brush(() => SystemBrushes.Info,
SystemColors
.Info);
34
yield return Brush(() => SystemBrushes.InfoText,
SystemColors
.InfoText);
35
yield return Brush(() => SystemBrushes.Menu,
SystemColors
.Menu);
36
yield return Brush(() => SystemBrushes.MenuBar,
SystemColors
.MenuBar);
37
yield return Brush(() => SystemBrushes.MenuHighlight,
SystemColors
.MenuHighlight);
38
yield return Brush(() => SystemBrushes.MenuText,
SystemColors
.MenuText);
39
yield return Brush(() => SystemBrushes.ScrollBar,
SystemColors
.ScrollBar);
40
yield return Brush(() => SystemBrushes.Window,
SystemColors
.Window);
41
yield return Brush(() => SystemBrushes.WindowFrame,
SystemColors
.WindowFrame);
42
yield return Brush(() => SystemBrushes.WindowText,
SystemColors
.WindowText);
System\Drawing\SystemPensTest.cs (33)
12
yield return Pen(() => SystemPens.ActiveBorder,
SystemColors
.ActiveBorder);
13
yield return Pen(() => SystemPens.ActiveCaption,
SystemColors
.ActiveCaption);
14
yield return Pen(() => SystemPens.ActiveCaptionText,
SystemColors
.ActiveCaptionText);
15
yield return Pen(() => SystemPens.AppWorkspace,
SystemColors
.AppWorkspace);
16
yield return Pen(() => SystemPens.ButtonFace,
SystemColors
.ButtonFace);
17
yield return Pen(() => SystemPens.ButtonHighlight,
SystemColors
.ButtonHighlight);
18
yield return Pen(() => SystemPens.ButtonShadow,
SystemColors
.ButtonShadow);
19
yield return Pen(() => SystemPens.Control,
SystemColors
.Control);
20
yield return Pen(() => SystemPens.ControlDark,
SystemColors
.ControlDark);
21
yield return Pen(() => SystemPens.ControlDarkDark,
SystemColors
.ControlDarkDark);
22
yield return Pen(() => SystemPens.ControlLight,
SystemColors
.ControlLight);
23
yield return Pen(() => SystemPens.ControlLightLight,
SystemColors
.ControlLightLight);
24
yield return Pen(() => SystemPens.ControlText,
SystemColors
.ControlText);
25
yield return Pen(() => SystemPens.Desktop,
SystemColors
.Desktop);
26
yield return Pen(() => SystemPens.GradientActiveCaption,
SystemColors
.GradientActiveCaption);
27
yield return Pen(() => SystemPens.GradientInactiveCaption,
SystemColors
.GradientInactiveCaption);
28
yield return Pen(() => SystemPens.GrayText,
SystemColors
.GrayText);
29
yield return Pen(() => SystemPens.Highlight,
SystemColors
.Highlight);
30
yield return Pen(() => SystemPens.HighlightText,
SystemColors
.HighlightText);
31
yield return Pen(() => SystemPens.HotTrack,
SystemColors
.HotTrack);
32
yield return Pen(() => SystemPens.InactiveBorder,
SystemColors
.InactiveBorder);
33
yield return Pen(() => SystemPens.InactiveCaption,
SystemColors
.InactiveCaption);
34
yield return Pen(() => SystemPens.InactiveCaptionText,
SystemColors
.InactiveCaptionText);
35
yield return Pen(() => SystemPens.Info,
SystemColors
.Info);
36
yield return Pen(() => SystemPens.InfoText,
SystemColors
.InfoText);
37
yield return Pen(() => SystemPens.Menu,
SystemColors
.Menu);
38
yield return Pen(() => SystemPens.MenuBar,
SystemColors
.MenuBar);
39
yield return Pen(() => SystemPens.MenuHighlight,
SystemColors
.MenuHighlight);
40
yield return Pen(() => SystemPens.MenuText,
SystemColors
.MenuText);
41
yield return Pen(() => SystemPens.ScrollBar,
SystemColors
.ScrollBar);
42
yield return Pen(() => SystemPens.Window,
SystemColors
.Window);
43
yield return Pen(() => SystemPens.WindowFrame,
SystemColors
.WindowFrame);
44
yield return Pen(() => SystemPens.WindowText,
SystemColors
.WindowText);
System.Drawing.Primitives (3)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
18
FillWithProperties(colors, typeof(
SystemColors
));
System\Drawing\KnownColorTable.cs (1)
543
return (!
SystemColors
.s_useAlternativeColorSet)
System\Drawing\SystemColors.cs (1)
57
/// the alternative color set (as returned by <see cref="
SystemColors
"/> statics or
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.GetSysColorBrush.cs (1)
15
bool useSolidBrush =
SystemColors
.UseAlternativeColorSet;
System.Windows.Forms (350)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3335
qaContainer.colorFore = GetOleColorFromColor(
SystemColors
.WindowText);
3336
qaContainer.colorBack = GetOleColorFromColor(
SystemColors
.Window);
System\Windows\Forms\Application.cs (2)
309
bool useAlternateColorSet =
SystemColors
.UseAlternativeColorSet;
314
SystemColors
.UseAlternativeColorSet = darkModeEnabled;
System\Windows\Forms\Control.cs (4)
1545
public static Color DefaultBackColor =>
SystemColors
.Control;
1576
public static Color DefaultForeColor =>
SystemColors
.ControlText;
1625
color =
SystemColors
.Control;
8194
using CreateBrushScope hbrush = new(
SystemColors
.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1265
get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor ==
SystemColors
.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (6)
40
if (_backColor ==
SystemColors
.Control)
42
colors.ButtonShadow =
SystemColors
.ControlDark;
43
colors.ButtonShadowDark =
SystemColors
.ControlDarkDark;
44
colors.Highlight =
SystemColors
.ControlLightLight;
62
colors.WindowDisabled = HighContrast ?
SystemColors
.GrayText : colors.ButtonShadow;
88
if (HighContrast && _backColor !=
SystemColors
.Control)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (15)
105
if (Control.BackColor !=
SystemColors
.Control && SystemInformation.HighContrast)
131
bool stockColor = colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
146
: stockColor ?
SystemColors
.ControlLightLight : colors.Highlight);
155
: stockColor ?
SystemColors
.ControlDarkDark : colors.ButtonShadowDark);
164
? SystemInformation.HighContrast ?
SystemColors
.ControlLight :
SystemColors
.Control
180
: stockColor ?
SystemColors
.ControlDark : colors.ButtonShadow);
223
colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor()
224
?
SystemColors
.ControlLight
234
bool stockColor = colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
249
: stockColor ?
SystemColors
.ControlLightLight : colors.Highlight);
258
: stockColor ?
SystemColors
.ControlDarkDark : colors.ButtonShadowDark);
273
: SystemInformation.HighContrast ?
SystemColors
.ControlLight :
SystemColors
.Control);
284
: stockColor ?
SystemColors
.ControlDark : colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (4)
67
PaintBackground(e, r, IsHighContrastHighlighted() ?
SystemColors
.Highlight : backColor);
75
PaintField(e, layout, colors, IsHighContrastHighlighted() ?
SystemColors
.HighlightText : colors.WindowText, drawFocus: false);
244
PaintBackground(e, r, IsHighContrastHighlighted() ?
SystemColors
.Highlight : backColor);
256
IsHighContrastHighlighted() ?
SystemColors
.HighlightText : colors.WindowText,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (4)
27
Control.PaintBackground(e, r, IsHighContrastHighlighted() ?
SystemColors
.Highlight : Control.BackColor, r.Location);
40
state != CheckState.Indeterminate && IsHighContrastHighlighted() ?
SystemColors
.HighlightText : colors.WindowText,
73
Control.PaintBackground(e, r, IsHighContrastHighlighted() ?
SystemColors
.Highlight : Control.BackColor, r.Location);
82
PaintField(e, layout, colors, IsHighContrastHighlighted() ?
SystemColors
.HighlightText : colors.WindowText, drawFocus: true);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (3)
73
Color color = isHighContrastHighlighted ?
SystemColors
.Highlight : Control.BackColor;
167
Color highlightTextColor =
SystemColors
.HighlightText;
178
PaintField(e, layout, colors,
SystemColors
.HighlightText, drawFocus: true);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (7)
96
color =
SystemColors
.Control;
98
else if (controlCheckState == CheckState.Indeterminate && checkBackground ==
SystemColors
.Window && disabledColors)
100
Color comboColor = SystemInformation.HighContrast ?
SystemColors
.ControlDark :
SystemColors
.Control;
102
(byte)((comboColor.R +
SystemColors
.Window.R) / 2),
103
(byte)((comboColor.G +
SystemColors
.Window.G) / 2),
104
(byte)((comboColor.B +
SystemColors
.Window.B) / 2));
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (3)
37
field =
SystemColors
.Control;
72
field =
SystemColors
.Control;
142
checkColor =
SystemColors
.ControlDark;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
159
textColor =
SystemColors
.ControlText;
270
textColor =
SystemColors
.ControlText;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
144
textColor =
SystemColors
.ControlText;
216
textColor =
SystemColors
.ControlText;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
144
textColor =
SystemColors
.ControlText;
237
textColor =
SystemColors
.ControlText;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
258
get => ShouldSerializeBackColor() ? base.BackColor :
SystemColors
.Window;
538
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
3455
using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ??
SystemColors
.Control);
3734
&& !(SystemInformation.HighContrast && BackColor ==
SystemColors
.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
171
=> comboBox.Enabled ?
SystemColors
.Window :
SystemColors
.ControlDark;
177
return
SystemColors
.ControlDark;
180
return focused ?
SystemColors
.ControlDark :
SystemColors
.Window;
184
=> comboBox.Enabled ? comboBox.BackColor :
SystemColors
.Control;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
35
if (windowColor !=
SystemColors
.Window)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
356
private static readonly Color s_defaultBackColor =
SystemColors
.Window;
357
private static readonly Color s_defaultBackgroundColor =
SystemColors
.ControlDark;
2080
private static Color DefaultGridColor =>
SystemColors
.WindowFrame;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
5672
using var brush =
SystemColors
.HotTrack.GetCachedSolidBrushScope();
16715
ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(),
SystemColors
.ActiveCaptionText);
19329
using var pen =
SystemColors
.ControlText.GetCachedPenScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
752
SystemColors
.Control,
788
using CreateBrushScope hbrush = new(
SystemColors
.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
1433
int darkDistance = ColorDistance(baseline,
SystemColors
.ControlDark);
1434
int lightDistance = ColorDistance(baseline,
SystemColors
.ControlLightLight);
1443
:
SystemColors
.ControlDark;
1447
:
SystemColors
.ControlLightLight;
1453
:
SystemColors
.WindowFrame;
1457
:
SystemColors
.ControlLightLight;
3157
DataGridViewAdvancedCellBorderStyle.Inset =>
SystemColors
.ControlLightLight,
3158
_ =>
SystemColors
.ControlDark,
3192
DataGridViewAdvancedCellBorderStyle.Inset =>
SystemColors
.ControlLightLight,
3193
_ =>
SystemColors
.ControlDark,
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (9)
58
return Selected ?
SystemColors
.HighlightText : LinkUtilities.IEActiveLinkColor;
96
return !ActiveLinkColor.Equals(
SystemColors
.HotTrack);
166
return Selected ?
SystemColors
.HighlightText : LinkUtilities.IELinkColor;
201
? !LinkColor.Equals(
SystemColors
.HotTrack)
298
return Selected ?
SystemColors
.HighlightText : LinkUtilities.GetVisitedLinkColor();
303
return Selected ?
SystemColors
.HighlightText : LinkUtilities.IEVisitedLinkColor;
343
return !VisitedLinkColor.Equals(
SystemColors
.HotTrack);
356
return Selected ?
SystemColors
.HighlightText :
SystemColors
.HotTrack;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (3)
70
return !ActiveLinkColor.Equals(
SystemColors
.HotTrack);
181
return !LinkColor.Equals(
SystemColors
.HotTrack);
361
return !VisitedLinkColor.Equals(
SystemColors
.HotTrack);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (6)
28
protected static readonly Color DefaultTitleBackColor =
SystemColors
.ActiveCaption;
33
protected static readonly Color DefaultTitleForeColor =
SystemColors
.ActiveCaptionText;
38
protected static readonly Color DefaultMonthBackColor =
SystemColors
.Window;
43
protected static readonly Color DefaultTrailingForeColor =
SystemColors
.GrayText;
130
get => ShouldSerializeBackColor() ? base.BackColor :
SystemColors
.Window;
495
:
SystemColors
.WindowText;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
547
Color boxColor = Enabled ? ForeColor :
SystemColors
.GrayText;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (4)
248
Color backColor =
SystemColors
.Control;
328
using CreatePenScope hpenDark = new(
SystemColors
.ControlDark);
340
using CreatePenScope hpenLight = new(
SystemColors
.ControlLight);
353
return
SystemColors
.ControlText;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
238
? SystemInformation.HighContrast ?
SystemColors
.HotTrack : IELinkColor
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (5)
116
int r = (
SystemColors
.Window.R +
SystemColors
.WindowText.R + 1) / 2;
117
int g =
SystemColors
.WindowText.G;
118
int b = (
SystemColors
.Window.B +
SystemColors
.WindowText.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (6)
585
foreColor =
SystemColors
.GrayText;
598
backColor =
SystemColors
.Highlight;
599
foreColor =
SystemColors
.HighlightText;
603
backColor =
SystemColors
.InactiveBorder;
604
foreColor =
SystemColors
.GrayText;
731
foreColor =
SystemColors
.GrayText;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
163
return
SystemColors
.Window;
456
return
SystemColors
.WindowText;
System\Windows\Forms\Controls\ListView\ListView.cs (7)
106
private Color _odCacheForeColor =
SystemColors
.WindowText;
107
private Color _odCacheBackColor =
SystemColors
.Window;
348
get => ShouldSerializeBackColor() ? base.BackColor :
SystemColors
.Window;
833
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
2854
if (nmcd->clrText == ColorTranslator.ToWin32(
SystemColors
.HotTrack))
4939
if (c !=
SystemColors
.Window || Application.IsDarkModeEnabled)
4946
if (c !=
SystemColors
.WindowText || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
291
return
SystemColors
.Window;
422
return
SystemColors
.WindowText;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (2)
80
return _owner?._listView?.BackColor ??
SystemColors
.Window;
173
return _owner?._listView?.ForeColor ??
SystemColors
.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (5)
62
private static readonly Color s_defaultTitleBackColor =
SystemColors
.ActiveCaption;
63
private static readonly Color s_defaultTitleForeColor =
SystemColors
.ActiveCaptionText;
64
private static readonly Color s_trailingForeColor =
SystemColors
.GrayText;
205
return
SystemColors
.Window;
421
return
SystemColors
.WindowText;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
28
private static readonly Color s_defaultForeColor =
SystemColors
.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
73
private Color _lineColor = SystemInformation.HighContrast ?
SystemColors
.ControlDarkDark :
SystemColors
.InactiveBorder;
74
private Color _categoryForegroundColor =
SystemColors
.ControlText;
75
private Color _categorySplitterColor =
SystemColors
.Control;
76
private Color _viewBorderColor =
SystemColors
.ControlDark;
77
private Color _selectedItemWithFocusForeColor =
SystemColors
.HighlightText;
78
private Color _selectedItemWithFocusBackColor =
SystemColors
.Highlight;
214
_helpPane.BackColor =
SystemColors
.Control;
215
_helpPane.ForeColor =
SystemColors
.ControlText;
3700
=> _commandsPane.SetColors(
SystemColors
.Control,
SystemColors
.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
35
public Color BorderColor { get; set; } =
SystemColors
.ControlDark;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
125
ControlPaint.DrawFocusRectangle(g, focusRect,
SystemColors
.ControlText, OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
78
DisabledLinkColor =
SystemColors
.ControlDark
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (3)
18
if (Control.BackColor !=
SystemColors
.Control && SystemInformation.HighContrast)
75
Color c = (ARGB)
SystemColors
.Window;
90
Color backgroundColor = isHighContrastHighlighted ?
SystemColors
.Highlight : Control.BackColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
138
BackColor =
SystemColors
.Window;
139
ForeColor =
SystemColors
.WindowText;
140
_grayTextColor =
SystemColors
.GrayText;
208
_dropDownButton.BackColor =
SystemColors
.Control;
209
_dropDownButton.ForeColor =
SystemColors
.ControlText;
244
BackColor =
SystemColors
.Control,
245
ForeColor =
SystemColors
.ControlText,
360
if (ForeColor.ToArgb() ==
SystemColors
.WindowText.ToArgb())
362
return
SystemColors
.GrayText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
515
using Pen pen = new(
SystemColors
.ControlDark, 1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (2)
49
Pen focusPen1 = new(
SystemColors
.ControlText, penWidth)
54
Pen focusPen2 = new(
SystemColors
.Control, penWidth)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
177
return
SystemColors
.Control;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
910
TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle,
SystemColors
.GrayText, TextRenderer.DefaultQuality, flags);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
292
return
SystemColors
.Control;
296
return
SystemColors
.Window;
506
return
SystemColors
.WindowText;
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
31
if (windowColor !=
SystemColors
.Window)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (32)
116
public virtual Color ButtonPressedHighlightBorder =>
SystemColors
.Highlight;
122
public virtual Color ButtonCheckedHighlightBorder =>
SystemColors
.Highlight;
178
public virtual Color ImageMarginGradientEnd => (_usingSystemColors) ?
SystemColors
.Control : FromKnownColor(KnownColors.msocbvcrCBGradVertEnd);
233
public virtual Color StatusStripBorder =>
SystemColors
.ButtonHighlight;
346
SystemColors
.Window,
347
GetAlphaBlendedColor(screen,
SystemColors
.Highlight,
SystemColors
.Window, 160),
351
SystemColors
.Window,
352
GetAlphaBlendedColor(screen,
SystemColors
.Highlight,
SystemColors
.Window, 80),
358
rgbTable[KnownColors.ButtonPressedHighlight] =
SystemColors
.Highlight;
359
rgbTable[KnownColors.ButtonCheckedHighlight] =
SystemColors
.ControlLight;
360
rgbTable[KnownColors.ButtonSelectedHighlight] =
SystemColors
.ControlLight;
371
Color buttonFace =
SystemColors
.ButtonFace;
372
Color buttonShadow =
SystemColors
.ButtonShadow;
373
Color highlight =
SystemColors
.Highlight;
374
Color window =
SystemColors
.Window;
376
Color controlText =
SystemColors
.ControlText;
377
Color buttonHighlight =
SystemColors
.ButtonHighlight;
378
Color grayText =
SystemColors
.GrayText;
379
Color highlightText =
SystemColors
.HighlightText;
380
Color windowText =
SystemColors
.WindowText;
400
gradientEnd =
SystemColors
.ButtonFace;
409
rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] =
SystemColors
.ControlLight;
437
rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = (lowResolution) ?
SystemColors
.ControlLight : highlight;
516
rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] =
SystemColors
.MenuText;
519
rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] =
SystemColors
.MenuText;
521
rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] =
SystemColors
.MenuText;
546
rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] =
SystemColors
.InactiveCaption;
548
rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] =
SystemColors
.InactiveCaptionText;
655
rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] =
SystemColors
.Info;
656
rgbTable[KnownColors.msocbvcrWPInfoTipText] =
SystemColors
.InfoText;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (3)
48
return (comboBox.Enabled) ?
SystemColors
.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder;
60
return
SystemColors
.ControlDark;
65
:
SystemColors
.Window;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (4)
203
arrowColor = Enabled ?
SystemColors
.HighlightText :
SystemColors
.ControlDark;
207
arrowColor = Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
564
Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, ImageMargin,
SystemColors
.Control));
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (15)
154
Color arrowColor = item.Selected && !item.Pressed ?
SystemColors
.HighlightText :
SystemColors
.ControlText;
205
Color arrowColor = !item.Enabled ?
SystemColors
.ControlDark
206
: item.Selected && !item.Pressed ?
SystemColors
.HighlightText
207
:
SystemColors
.ControlText;
220
e.DefaultTextColor =
SystemColors
.HighlightText;
222
else if (e.TextColor !=
SystemColors
.HighlightText && e.TextColor !=
SystemColors
.ControlText)
227
e.DefaultTextColor =
SystemColors
.HighlightText;
231
e.DefaultTextColor =
SystemColors
.ControlText;
245
e.TextColor =
SystemColors
.HighlightText;
292
using Pen p = new(
SystemColors
.ButtonShadow)
382
return
SystemColors
.Control.ToArgb() == Color.Black.ToArgb();
468
Pen focusPen1 = new(
SystemColors
.ControlText, penWidth)
473
Pen focusPen2 = new(
SystemColors
.Control, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
13
private Color _textColor =
SystemColors
.ControlText;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (7)
715
image.MakeTransparent(
SystemColors
.Control);
955
Color textColor =
SystemColors
.MenuText;
964
textColor =
SystemColors
.HighlightText;
968
textColor =
SystemColors
.MenuText;
1010
Color arrowColor = (Selected || Pressed) ?
SystemColors
.HighlightText :
SystemColors
.MenuText;
1011
arrowColor = (Enabled) ? arrowColor :
SystemColors
.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
57
using Pen p = new(
SystemColors
.ButtonShadow)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
307
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect,
SystemColors
.ControlText, ArrowDirection.Down));
531
using var controlTextBrush =
SystemColors
.ControlText.GetCachedSolidBrushScope();
571
borderColor =
SystemColors
.Highlight;
628
borderColor =
SystemColors
.Highlight;
681
e.DefaultArrowColor = item.Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
834
Color backgroundColor = e.Item.Selected ?
SystemColors
.Highlight : e.Item.BackColor;
871
textColor = (item is not null && item.Enabled) ? textColor :
SystemColors
.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (4)
65
_backColor =
SystemColors
.Control;
77
_backColor =
SystemColors
.Menu;
81
_backColor =
SystemColors
.MenuBar;
85
_backColor =
SystemColors
.Control;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
18
ForeColor =
SystemColors
.ControlDark;
304
internal override bool ShouldSerializeForeColor() => ForeColor !=
SystemColors
.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
202
FillBackground(g, bounds,
SystemColors
.ButtonFace);
206
FillBackground(g, bounds, (toolStrip is ToolStripDropDown) ?
SystemColors
.ControlLight : e.BackColor);
211
e.BackColor :
SystemColors
.Menu);
216
e.BackColor :
SystemColors
.MenuBar);
227
e.BackColor :
SystemColors
.MenuBar);
393
Color arrowColor = item.Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
462
?
SystemColors
.Highlight
524
Color arrowColor = splitButton.Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
583
ControlPaint.DrawBorderSimple(g, clientBounds,
SystemColors
.Highlight);
584
using var brush =
SystemColors
.Highlight.GetCachedSolidBrushScope();
662
ControlPaint.DrawBorderSimple(g, bounds,
SystemColors
.Highlight);
802
if (vsRenderer is null || (item.BackColor !=
SystemColors
.Control))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (2)
249
outerBorderColor =
SystemColors
.ControlDark;
250
innerBorderColor =
SystemColors
.Control;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
239
get =>
SystemColors
.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
198
get => ShouldSerializeBackColor() ? base.BackColor :
SystemColors
.Window;
442
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
1885
if (c !=
SystemColors
.Window || Application.IsDarkModeEnabled)
1892
if (c !=
SystemColors
.WindowText || Application.IsDarkModeEnabled)
2841
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ?
SystemColors
.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
2847
ControlPaint.DrawFocusRectangle(g, bounds, color,
SystemColors
.Highlight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
585
ControlPaint.DrawBorderSimple(e, editBounds,
SystemColors
.Control);
System\Windows\Forms\DarkProfessionalColors.cs (9)
20
=>
SystemColors
.ControlText;
29
=>
SystemColors
.Control;
32
=>
SystemColors
.Control;
35
=>
SystemColors
.Control;
38
=>
SystemColors
.Control;
41
=>
SystemColors
.Control;
44
=>
SystemColors
.Control;
47
=>
SystemColors
.Control;
50
=>
SystemColors
.Control;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
194
BackColor =
SystemColors
.ControlDark
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (7)
30
BackColor =
SystemColors
.Control;
160
savedColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlLightLight));
171
PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlDark));
232
(COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Control),
233
(COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlText));
266
COLORREF oldTextColor = PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlLightLight));
267
COLORREF oldBackColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Control));
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (3)
112
_color =
SystemColors
.ControlText;
370
_color =
SystemColors
.ControlText;
396
rgbColors = ShowColor || ShowEffects ? _color :
SystemColors
.ControlText
System\Windows\Forms\Help\Help.cs (1)
85
clrBackground =
SystemColors
.Window
System\Windows\Forms\MDI\MDIClient.cs (2)
36
BackColor =
SystemColors
.AppWorkspace;
318
internal override bool ShouldSerializeBackColor() => BackColor !=
SystemColors
.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
293
public override void ResetBackColor() => BackColor =
SystemColors
.AppWorkspace;
295
internal override bool ShouldSerializeBackColor() => !BackColor.Equals(
SystemColors
.AppWorkspace);
595
Color brushColor =
SystemColors
.ControlText;
726
ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect,
SystemColors
.ControlText);
746
return (isHighContract && !ShouldSerializeBackColor()) ?
SystemColors
.ControlDarkDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (20)
140
=> SystemInformation.HighContrast ?
SystemColors
.WindowFrame :
SystemColors
.ControlDark;
1081
if (color.ToKnownColor() ==
SystemColors
.Control.ToKnownColor())
1097
bool stockColor = color.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
1101
using var lightPen = (stockColor ?
SystemColors
.ControlLightLight : hls.Lighter(1.0f)).GetCachedPenScope();
1106
using var darkPen = (stockColor ?
SystemColors
.ControlDarkDark : hls.Darker(1.0f)).GetCachedPenScope();
1119
?
SystemColors
.ControlLightLight
1120
:
SystemColors
.Control).GetCachedPenScope();
1126
using var bottomRightPen = (stockColor ?
SystemColors
.ControlDark : hls.Darker(0.5f)).GetCachedPenScope();
1324
? (SystemInformation.HighContrast ?
SystemColors
.GrayText :
SystemColors
.ControlDark)
1325
:
SystemColors
.ControlText;
1394
=> DrawFocusRectangle(graphics, rectangle,
SystemColors
.ControlText,
SystemColors
.Control);
1664
using Pen pen = new(
SystemColors
.WindowFrame, 1);
2000
TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle,
SystemColors
.GrayText, quality, format);
2078
Color brushColor = backColor.GetBrightness() <= .5 ?
SystemColors
.ControlLight :
SystemColors
.ControlDark;
2208
Color brushColor = backColor.GetBrightness() <= .5 ?
SystemColors
.ControlLight :
SystemColors
.ControlDark;
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (9)
29
_isSystemColors_Control = color.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
103
return
SystemColors
.ControlDark;
107
return
SystemColors
.ControlDarkDark;
111
ARGB dark =
SystemColors
.ControlDark;
112
ARGB darkDark =
SystemColors
.ControlDarkDark;
154
return
SystemColors
.ControlLight;
158
return
SystemColors
.ControlLightLight;
162
ARGB light =
SystemColors
.ControlLight;
163
ARGB lightLight =
SystemColors
.ControlLightLight;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (6)
32
: this(graphics, font, rect, index, state,
SystemColors
.WindowText,
SystemColors
.Window)
62
: this(hdc, font, rect, index, state,
SystemColors
.WindowText,
SystemColors
.Window)
115
=> (State & DrawItemState.Selected) == DrawItemState.Selected ?
SystemColors
.HighlightText : _foreColor;
118
=> (State & DrawItemState.Selected) == DrawItemState.Selected ?
SystemColors
.Highlight : _backColor;
System\Windows\Forms\Rendering\TextRenderer.cs (3)
552
return
SystemColors
.GrayText;
558
return ControlPaint.IsDarker(backColor,
SystemColors
.Control)
560
:
SystemColors
.ControlDark;
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101
ControlPaint.DrawBorder(Graphics, Bounds,
SystemColors
.WindowFrame, ButtonBorderStyle.Solid);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
43
private Color _backColor =
SystemColors
.Info;
44
private Color _foreColor =
SystemColors
.InfoText;
773
if (BackColor !=
SystemColors
.Info)
778
if (ForeColor !=
SystemColors
.InfoText)
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (2)
183
:
SystemColors
.WindowFrame;
190
:
SystemColors
.ButtonHighlight;
System.Windows.Forms.Design (119)
System\ComponentModel\Design\ByteViewer.cs (2)
140
using (Brush brush = new SolidBrush(
SystemColors
.ControlLightLight))
151
using Pen pen = new(
SystemColors
.ControlDark);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
579
Color backColor =
SystemColors
.Window;
580
Color textColor =
SystemColors
.WindowText;
583
backColor =
SystemColors
.Highlight;
584
textColor =
SystemColors
.HighlightText;
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
233
TextRenderer.DrawText(pevent, Text, Font, bounds,
SystemColors
.ControlText, formatFlags);
System\ComponentModel\Design\DesignerActionPanel.cs (10)
120
public Color ActiveLinkColor { get; } =
SystemColors
.HotTrack;
122
public Color BorderColor { get; } =
SystemColors
.ActiveBorder;
172
public Color GradientDarkColor { get; } =
SystemColors
.Control;
174
public Color GradientLightColor { get; } =
SystemColors
.Control;
178
public Color LinkColor { get; } =
SystemColors
.HotTrack;
180
public Color SeparatorColor { get; } =
SystemColors
.ControlDark;
182
public Color TitleBarColor { get; } =
SystemColors
.ActiveCaption;
184
public Color TitleBarTextColor { get; } =
SystemColors
.ActiveCaptionText;
186
public Color TitleBarUnselectedColor { get; } =
SystemColors
.InactiveCaption;
188
public Color LabelForeColor { get; } =
SystemColors
.ControlText;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
112
ShowDropDown(listBox,
SystemColors
.ControlDark);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
131
(Color OldColor, Color NewColor) map = new(Color.Black,
SystemColors
.WindowText);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
22
BackColor =
SystemColors
.Window;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (5)
35
ForeColor =
SystemColors
.WindowText,
165
_readOnlyTextBoxLabel.ForeColor =
SystemColors
.HighlightText;
166
_readOnlyTextBoxLabel.BackColor =
SystemColors
.Highlight;
171
_readOnlyTextBoxLabel.ForeColor =
SystemColors
.WindowText;
172
_readOnlyTextBoxLabel.BackColor =
SystemColors
.Window;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
393
Color cw =
SystemColors
.Window;
394
Color ct =
SystemColors
.WindowText;
System\Drawing\Design\ColorEditor.ColorPalette.cs (8)
70
BackColor =
SystemColors
.Control;
386
SystemColors
.ControlText,
397
SystemColors
.ControlText,
398
SystemColors
.Control);
404
SystemColors
.Control, 2, ButtonBorderStyle.Inset,
405
SystemColors
.Control, 2, ButtonBorderStyle.Inset,
406
SystemColors
.Control, 2, ButtonBorderStyle.Inset,
407
SystemColors
.Control, 2, ButtonBorderStyle.Inset);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
73
private Color[] SystemColorValues => _systemColorConstants ??= GetConstants(typeof(
SystemColors
));
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
110
BackColor =
SystemColors
.Control;
111
ForeColor =
SystemColors
.ControlText;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
177
BackColor =
SystemColors
.Window;
178
ForeColor =
SystemColors
.WindowText;
193
BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53
pe.Graphics.FillRectangle(new SolidBrush(
SystemColors
.ControlText), bounds);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (2)
94
_tableLayoutPanel.BackColor =
SystemColors
.Window;
152
_splitterLabel.BackColor =
SystemColors
.ControlDark;
System\Windows\Forms\Design\ComponentTray.cs (6)
144
styleColor =
SystemColors
.Info;
1421
styleColor =
SystemColors
.Info;
1443
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50,
SystemColors
.HighlightText, Color.Transparent);
1447
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50,
SystemColors
.ControlDarkDark, Color.Transparent);
1460
c.ForeColor =
SystemColors
.HighlightText;
1461
c.BackColor =
SystemColors
.Highlight;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
143
_cellStyleProperties.LineColor = Drawing.
SystemColors
.ScrollBar;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
578
_propertyGrid1.LineColor =
SystemColors
.ScrollBar;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
34
BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\DesignBindingPicker.cs (24)
143
BackColor =
SystemColors
.ControlDark,
151
BackColor =
SystemColors
.Window,
152
ForeColor =
SystemColors
.WindowText,
171
BackColor =
SystemColors
.Window,
172
ForeColor =
SystemColors
.WindowText,
183
BackColor =
SystemColors
.ControlDark,
190
BackColor =
SystemColors
.Window,
191
ForeColor =
SystemColors
.WindowText
237
BackColor =
SystemColors
.Window,
238
ForeColor =
SystemColors
.WindowText,
270
BackColor =
SystemColors
.ControlDark,
278
BackColor =
SystemColors
.Window,
279
ForeColor =
SystemColors
.WindowText,
296
BackColor =
SystemColors
.Window,
297
ForeColor =
SystemColors
.WindowText,
315
BackColor =
SystemColors
.ControlDark,
322
BackColor =
SystemColors
.Window,
323
ForeColor =
SystemColors
.WindowText
344
BackColor =
SystemColors
.Control;
707
dataSourceNode.ForeColor =
SystemColors
.GrayText;
1586
_helpTextCtrl.BackColor =
SystemColors
.Info;
1587
_helpTextCtrl.ForeColor =
SystemColors
.InfoText;
1591
_helpTextCtrl.BackColor =
SystemColors
.Window;
1592
_helpTextCtrl.ForeColor =
SystemColors
.WindowText;
System\Windows\Forms\Design\DesignerFrame.cs (1)
274
_splitter.BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\DesignerUtils.cs (20)
22
private static SolidBrush s_hoverBrush = new(Color.FromArgb(alpha: 50,
SystemColors
.Highlight));
25
new(HatchStyle.Percent50,
SystemColors
.ControlDarkDark,
SystemColors
.ControlDarkDark);
28
PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Window));
30
PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlText));
32
PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlText));
34
PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Window));
122
g.FillRectangle(new SolidBrush(
SystemColors
.InactiveBorder), 0, 0, s_boxImageSize, s_boxImageSize);
123
g.DrawRectangle(new Pen(
SystemColors
.ControlDarkDark), 0, 0, s_boxImageSize - 1, s_boxImageSize - 1);
167
s_hoverBrush = new SolidBrush(Color.FromArgb(50,
SystemColors
.Highlight));
170
s_selectionBorderBrush = new HatchBrush(HatchStyle.Percent50,
SystemColors
.ControlDarkDark,
SystemColors
.ControlDarkDark);
173
s_grabHandleFillBrushPrimary = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Window));
176
s_grabHandleFillBrush = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlText));
179
s_grabHandlePenPrimary = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.ControlText));
182
s_grabHandlePen = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(
SystemColors
.Window));
228
Color color =
SystemColors
.ControlDarkDark;
231
color =
SystemColors
.ControlLight;
398
gDest.Clear(
SystemColors
.Control);
431
g.Clear(
SystemColors
.Control);
System\Windows\Forms\Design\DockEditor.DockUI.cs (3)
187
BackColor =
SystemColors
.Control;
188
ForeColor =
SystemColors
.ControlText;
295
BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
138
value =
SystemColors
.Control;
679
Control.BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
50
BackColor = Drawing.
SystemColors
.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342
Color backColor =
SystemColors
.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
138
Color borderColor =
SystemColors
.Control;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30
BackColor =
SystemColors
.Control
System\Windows\Forms\Design\TabOrder.cs (4)
57
_highlightTextBrush = new SolidBrush(
SystemColors
.HighlightText);
58
_highlightPen = new Pen(
SystemColors
.Highlight);
276
textColor =
SystemColors
.Highlight;
282
textColor =
SystemColors
.HighlightText;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
772
textColor =
SystemColors
.HighlightText;
777
textColor =
SystemColors
.WindowText;
910
TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect,
SystemColors
.WindowText, flags);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
393
BackColor =
SystemColors
.Window,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
879
ForeColor =
SystemColors
.WindowText
1815
DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black :
SystemColors
.ControlText, ArrowDirection.Down));
2037
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds,
SystemColors
.ControlText, ArrowDirection.Down));
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
284
_propertyGrid1.LineColor =
SystemColors
.ScrollBar;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
34
_picker.BackColor.Should().Be(
SystemColors
.Control);
System.Windows.Forms.Tests (497)
NumericUpDownTests.cs (1)
92
State.Pen(1,
SystemColors
.Control, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ApplicationTests.cs (3)
168
Assert.False(
SystemColors
.UseAlternativeColorSet);
173
Assert.True(
SystemColors
.UseAlternativeColorSet);
178
Assert.False(
SystemColors
.UseAlternativeColorSet ^ systemColorMode == SystemColorMode.Dark);
System\Windows\Forms\ButtonRenderingTests.cs (16)
50
State.PenColor(
SystemColors
.ControlLightLight)),
53
State.PenColor(
SystemColors
.ControlLightLight)),
56
State.PenColor(
SystemColors
.ControlDarkDark)),
59
State.PenColor(
SystemColors
.ControlDarkDark)),
62
State.PenColor(
SystemColors
.Control)),
65
State.PenColor(
SystemColors
.Control)),
68
State.PenColor(
SystemColors
.ControlDark)),
71
State.PenColor(
SystemColors
.ControlDark)));
136
State.PenColor(
SystemColors
.ControlLightLight)),
139
State.PenColor(
SystemColors
.ControlLightLight)),
142
State.PenColor(
SystemColors
.ControlDarkDark)),
145
State.PenColor(
SystemColors
.ControlDarkDark)),
148
State.PenColor(
SystemColors
.Control)),
151
State.PenColor(
SystemColors
.Control)),
154
State.PenColor(
SystemColors
.ControlDark)),
157
State.PenColor(
SystemColors
.ControlDark)));
System\Windows\Forms\ComboBoxTests.cs (12)
36
Assert.Equal(
SystemColors
.Window, control.BackColor);
83
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
167
yield return new object[] { Color.Empty,
SystemColors
.Window };
190
yield return new object[] { Color.Empty,
SystemColors
.Window, 0 };
268
Assert.Equal(
SystemColors
.Window, control.BackColor);
290
Assert.Equal(
SystemColors
.Window, control.BackColor);
306
Assert.Equal(
SystemColors
.Window, control.BackColor);
1049
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1075
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1136
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
1158
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
1174
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\ControlPaintTests.cs (123)
301
yield return new object[] {
SystemColors
.ControlDarkDark, Color.FromArgb(255, 35, 35, 35) };
302
yield return new object[] {
SystemColors
.ControlDark, Color.FromArgb(255, 53, 53, 53) };
303
yield return new object[] {
SystemColors
.Control, Color.FromArgb(255, 133, 133, 133) };
304
yield return new object[] {
SystemColors
.ControlLight, Color.FromArgb(255, 75, 75, 75) };
305
yield return new object[] {
SystemColors
.ControlLightLight, Color.FromArgb(255, 85, 85, 85) };
334
yield return new object[] {
SystemColors
.ControlDarkDark, -1.5f, Color.FromArgb(255, 175, 175, 175) };
335
yield return new object[] {
SystemColors
.ControlDark, -1.5f, Color.FromArgb(255, 9, 9, 9) };
336
yield return new object[] {
SystemColors
.Control, -1.5f, Color.FromArgb(255, 242, 242, 242) };
337
yield return new object[] {
SystemColors
.ControlLight, -1.5f, Color.FromArgb(255, 121, 121, 121) };
338
yield return new object[] {
SystemColors
.ControlLightLight, -1.5f, Color.FromArgb(255, 169, 169, 169) };
354
yield return new object[] {
SystemColors
.ControlDarkDark, -1f, Color.FromArgb(255, 140, 140, 140) };
355
yield return new object[] {
SystemColors
.ControlDark, -1f, Color.FromArgb(255, 212, 212, 212) };
356
yield return new object[] {
SystemColors
.Control, -1f, Color.FromArgb(255, 215, 215, 215) };
357
yield return new object[] {
SystemColors
.ControlLight, -1f, Color.FromArgb(255, 45, 45, 45) };
358
yield return new object[] {
SystemColors
.ControlLightLight, -1f, Color.FromArgb(255, 84, 84, 84) };
374
yield return new object[] {
SystemColors
.ControlDarkDark, -0.5f, Color.FromArgb(255, 105, 105, 105) };
375
yield return new object[] {
SystemColors
.ControlDark, -0.5f, Color.FromArgb(255, 159, 159, 159) };
376
yield return new object[] {
SystemColors
.Control, -0.5f, Color.FromArgb(255, 187, 187, 187) };
377
yield return new object[] {
SystemColors
.ControlLight, -0.5f, Color.FromArgb(255, 226, 226, 226) };
378
yield return new object[] {
SystemColors
.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) };
394
yield return new object[] {
SystemColors
.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) };
395
yield return new object[] {
SystemColors
.ControlDark, -0.25f, Color.FromArgb(255, 132, 132, 132) };
396
yield return new object[] {
SystemColors
.Control, -0.25f, Color.FromArgb(255, 173, 173, 173) };
397
yield return new object[] {
SystemColors
.ControlLight, -0.25f, Color.FromArgb(255, 188, 188, 188) };
398
yield return new object[] {
SystemColors
.ControlLightLight, -0.25f, Color.FromArgb(255, 212, 212, 212) };
414
yield return new object[] {
SystemColors
.ControlDarkDark, 0f, Color.FromArgb(255, 70, 70, 70) };
415
yield return new object[] {
SystemColors
.ControlDark, 0f, Color.FromArgb(255, 106, 106, 106) };
416
yield return new object[] {
SystemColors
.Control, 0f,
SystemColors
.ControlDark };
417
yield return new object[] {
SystemColors
.ControlLight, 0f, Color.FromArgb(255, 150, 150, 150) };
418
yield return new object[] {
SystemColors
.ControlLightLight, 0f, Color.FromArgb(255, 170, 170, 170) };
434
yield return new object[] {
SystemColors
.ControlDarkDark, 0.25f, Color.FromArgb(255, 53, 53, 53) };
435
yield return new object[] {
SystemColors
.ControlDark, 0.25f, Color.FromArgb(255, 79, 79, 79) };
436
yield return new object[] {
SystemColors
.Control, 0.25f, Color.FromArgb(255, 147, 147, 147) };
437
yield return new object[] {
SystemColors
.ControlLight, 0.25f, Color.FromArgb(255, 113, 113, 113) };
438
yield return new object[] {
SystemColors
.ControlLightLight, 0.25f, Color.FromArgb(255, 127, 127, 127) };
454
yield return new object[] {
SystemColors
.ControlDarkDark, 0.5f, Color.FromArgb(255, 35, 35, 35) };
455
yield return new object[] {
SystemColors
.ControlDark, 0.5f, Color.FromArgb(255, 53, 53, 53) };
456
yield return new object[] {
SystemColors
.Control, 0.5f, Color.FromArgb(255, 133, 133, 133) };
457
yield return new object[] {
SystemColors
.ControlLight, 0.5f, Color.FromArgb(255, 75, 75, 75) };
458
yield return new object[] {
SystemColors
.ControlLightLight, 0.5f, Color.FromArgb(255, 85, 85, 85) };
474
yield return new object[] {
SystemColors
.ControlDarkDark, 1f, Color.FromArgb(255, 0, 0, 0) };
475
yield return new object[] {
SystemColors
.ControlDark, 1f, Color.FromArgb(255, 0, 0, 0) };
476
yield return new object[] {
SystemColors
.Control, 1f,
SystemColors
.ControlDarkDark };
477
yield return new object[] {
SystemColors
.ControlLight, 1f, Color.FromArgb(255, 0, 0, 0) };
478
yield return new object[] {
SystemColors
.ControlLightLight, 1f, Color.FromArgb(255, 0, 0, 0) };
494
yield return new object[] {
SystemColors
.ControlDarkDark, 1.5f, Color.FromArgb(255, 221, 221, 221) };
495
yield return new object[] {
SystemColors
.ControlDark, 1.5f, Color.FromArgb(255, 203, 203, 203) };
496
yield return new object[] {
SystemColors
.Control, 1.5f, Color.FromArgb(255, 78, 78, 78) };
497
yield return new object[] {
SystemColors
.ControlLight, 1.5f, Color.FromArgb(255, 181, 181, 181) };
526
yield return new object[] {
SystemColors
.ControlDarkDark, Color.FromArgb(255, 0, 0, 0) };
527
yield return new object[] {
SystemColors
.ControlDark, Color.FromArgb(255, 0, 0, 0) };
528
yield return new object[] {
SystemColors
.Control,
SystemColors
.ControlDarkDark };
529
yield return new object[] {
SystemColors
.ControlLight, Color.FromArgb(255, 0, 0, 0) };
530
yield return new object[] {
SystemColors
.ControlLightLight, Color.FromArgb(255, 0, 0, 0) };
547
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.ControlLight, style };
548
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.Control, style };
549
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.ControlDark, style };
1685
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.ControlLight, style };
1686
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.Control, style };
1687
yield return new object[] { new Rectangle(1, 2, 3, 4),
SystemColors
.ControlDark, style };
1714
yield return new object[] { new Point(1, 2), new Point(2, 3),
SystemColors
.ControlLight };
1715
yield return new object[] { new Point(1, 2), new Point(2, 3),
SystemColors
.Control };
1716
yield return new object[] { new Point(1, 2), new Point(2, 3),
SystemColors
.ControlDark };
2065
yield return new object[] {
SystemColors
.ControlDarkDark, Color.FromArgb(255, 142, 142, 142) };
2066
yield return new object[] {
SystemColors
.ControlDark, Color.FromArgb(255, 183, 183, 183) };
2067
yield return new object[] {
SystemColors
.Control, Color.FromArgb(255, 241, 241, 241) };
2068
yield return new object[] {
SystemColors
.ControlLight, Color.FromArgb(255, 233, 233, 233) };
2069
yield return new object[] {
SystemColors
.ControlLightLight, Color.FromArgb(255, 255, 255, 255) };
2098
yield return new object[] {
SystemColors
.ControlDarkDark, -1.5f, Color.FromArgb(255, 249, 249, 249) };
2099
yield return new object[] {
SystemColors
.ControlDark, -1.5f, Color.FromArgb(255, 89, 89, 89) };
2100
yield return new object[] {
SystemColors
.Control, -1.5f, Color.FromArgb(255, 185, 185, 185) };
2101
yield return new object[] {
SystemColors
.ControlLight, -1.5f, Color.FromArgb(255, 207, 207, 207) };
2102
yield return new object[] {
SystemColors
.ControlLightLight, -1.5f, Color.FromArgb(255, 255, 255, 255) };
2118
yield return new object[] {
SystemColors
.ControlDarkDark, -1f, Color.FromArgb(255, 29, 29, 29) };
2119
yield return new object[] {
SystemColors
.ControlDark, -1f, Color.FromArgb(255, 112, 112, 112) };
2120
yield return new object[] {
SystemColors
.Control, -1f, Color.FromArgb(255, 199, 199, 199) };
2121
yield return new object[] {
SystemColors
.ControlLight, -1f, Color.FromArgb(255, 213, 213, 213) };
2122
yield return new object[] {
SystemColors
.ControlLightLight, -1f, Color.FromArgb(255, 255, 255, 255) };
2138
yield return new object[] {
SystemColors
.ControlDarkDark, -0.5f, Color.FromArgb(255, 68, 68, 68) };
2139
yield return new object[] {
SystemColors
.ControlDark, -0.5f, Color.FromArgb(255, 137, 137, 137) };
2140
yield return new object[] {
SystemColors
.Control, -0.5f, Color.FromArgb(255, 213, 213, 213) };
2141
yield return new object[] {
SystemColors
.ControlLight, -0.5f, Color.FromArgb(255, 221, 221, 221) };
2142
yield return new object[] {
SystemColors
.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) };
2158
yield return new object[] {
SystemColors
.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) };
2159
yield return new object[] {
SystemColors
.ControlDark, -0.25f, Color.FromArgb(255, 148, 148, 148) };
2160
yield return new object[] {
SystemColors
.Control, -0.25f, Color.FromArgb(255, 220, 220, 220) };
2161
yield return new object[] {
SystemColors
.ControlLight, -0.25f, Color.FromArgb(255, 224, 224, 224) };
2162
yield return new object[] {
SystemColors
.ControlLightLight, -0.25f, Color.FromArgb(255, 255, 255, 255) };
2178
yield return new object[] {
SystemColors
.ControlDarkDark, 0f, Color.FromArgb(255, 105, 105, 105) };
2179
yield return new object[] {
SystemColors
.ControlDark, 0f, Color.FromArgb(255, 160, 160, 160) };
2180
yield return new object[] {
SystemColors
.Control, 0f,
SystemColors
.ControlLight };
2181
yield return new object[] {
SystemColors
.ControlLight, 0f, Color.FromArgb(255, 227, 227, 227) };
2182
yield return new object[] {
SystemColors
.ControlLightLight, 0f, Color.FromArgb(255, 255, 255, 255) };
2198
yield return new object[] {
SystemColors
.ControlDarkDark, 0.25f, Color.FromArgb(255, 123, 123, 123) };
2199
yield return new object[] {
SystemColors
.ControlDark, 0.25f, Color.FromArgb(255, 172, 172, 172) };
2200
yield return new object[] {
SystemColors
.Control, 0.25f, Color.FromArgb(255, 234, 234, 234) };
2201
yield return new object[] {
SystemColors
.ControlLight, 0.25f, Color.FromArgb(255, 230, 230, 230) };
2202
yield return new object[] {
SystemColors
.ControlLightLight, 0.25f, Color.FromArgb(255, 255, 255, 255) };
2218
yield return new object[] {
SystemColors
.ControlDarkDark, 0.5f, Color.FromArgb(255, 142, 142, 142) };
2219
yield return new object[] {
SystemColors
.ControlDark, 0.5f, Color.FromArgb(255, 183, 183, 183) };
2220
yield return new object[] {
SystemColors
.Control, 0.5f, Color.FromArgb(255, 241, 241, 241) };
2221
yield return new object[] {
SystemColors
.ControlLight, 0.5f, Color.FromArgb(255, 233, 233, 233) };
2222
yield return new object[] {
SystemColors
.ControlLightLight, 0.5f, Color.FromArgb(255, 255, 255, 255) };
2238
yield return new object[] {
SystemColors
.ControlDarkDark, 1f, Color.FromArgb(255, 180, 180, 180) };
2239
yield return new object[] {
SystemColors
.ControlDark, 1f, Color.FromArgb(255, 208, 208, 208) };
2240
yield return new object[] {
SystemColors
.Control, 1f,
SystemColors
.ControlLightLight };
2241
yield return new object[] {
SystemColors
.ControlLight, 1f, Color.FromArgb(255, 241, 241, 241) };
2242
yield return new object[] {
SystemColors
.ControlLightLight, 1f, Color.FromArgb(255, 255, 255, 255) };
2258
yield return new object[] {
SystemColors
.ControlDarkDark, 1.5f, Color.FromArgb(255, 217, 217, 217) };
2259
yield return new object[] {
SystemColors
.ControlDark, 1.5f, Color.FromArgb(255, 231, 231, 231) };
2260
yield return new object[] {
SystemColors
.Control, 1.5f, Color.FromArgb(255, 13, 13, 13) };
2261
yield return new object[] {
SystemColors
.ControlLight, 1.5f, Color.FromArgb(255, 247, 247, 247) };
2290
yield return new object[] {
SystemColors
.ControlDarkDark, Color.FromArgb(255, 180, 180, 180) };
2291
yield return new object[] {
SystemColors
.ControlDark, Color.FromArgb(255, 208, 208, 208) };
2292
yield return new object[] {
SystemColors
.Control,
SystemColors
.ControlLightLight };
2293
yield return new object[] {
SystemColors
.ControlLight, Color.FromArgb(255, 241, 241, 241) };
2294
yield return new object[] {
SystemColors
.ControlLightLight, Color.FromArgb(255, 255, 255, 255) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (18)
103
ControlPaint.DrawBorder(graphics, bounds,
SystemColors
.Control, ButtonBorderStyle.Inset);
120
State.Pen(16, ControlPaint.DarkDark(
SystemColors
.Control), penStyle),
126
State.Pen(16, ControlPaint.DarkDark(
SystemColors
.Control), penStyle),
132
State.Pen(16, ControlPaint.LightLight(
SystemColors
.Control), penStyle),
138
State.Pen(16, ControlPaint.LightLight(
SystemColors
.Control), penStyle),
144
State.Pen(16, ControlPaint.Light(
SystemColors
.Control), penStyle),
150
State.Pen(16, ControlPaint.Light(
SystemColors
.Control), penStyle),
159
State.Pen(16,
SystemColors
.ControlLight, penStyle),
165
State.Pen(16,
SystemColors
.ControlLight, penStyle),
252
ControlPaint.DrawBorder(graphics, bounds,
SystemColors
.Control, ButtonBorderStyle.Outset);
271
State.Pen(16,
SystemColors
.ControlLightLight, penStyle),
277
State.Pen(16,
SystemColors
.ControlLightLight, penStyle),
283
State.Pen(16,
SystemColors
.ControlDarkDark, penStyle),
289
State.Pen(16,
SystemColors
.ControlDarkDark, penStyle),
295
State.Pen(16,
SystemColors
.Control, penStyle),
301
State.Pen(16,
SystemColors
.Control, penStyle),
307
State.Pen(16,
SystemColors
.ControlDark, penStyle),
313
State.Pen(16,
SystemColors
.ControlDark, penStyle),
System\Windows\Forms\ControlTests.cs (2)
483
Assert.Equal(
SystemColors
.Control, Control.DefaultBackColor);
489
Assert.Equal(
SystemColors
.ControlText, Control.DefaultForeColor);
System\Windows\Forms\DataGridViewTests.cs (3)
2340
BackColor =
SystemColors
.Info,
2342
SelectionBackColor =
SystemColors
.Highlight,
2343
SelectionForeColor =
SystemColors
.HighlightText,
System\Windows\Forms\DataGridViewTests.Rendering.cs (6)
59
State.Brush(
SystemColors
.ButtonShadow, BRUSH_STYLE.BS_SOLID),
90
State.Brush(
SystemColors
.ButtonHighlight, BRUSH_STYLE.BS_SOLID),
96
State.Pen(16,
SystemColors
.Desktop, penStyle),
125
BackColor =
SystemColors
.Info,
127
SelectionBackColor =
SystemColors
.Highlight,
128
SelectionForeColor =
SystemColors
.HighlightText,
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (41)
35
Assert.Equal(
SystemColors
.Window, control.BackColor);
80
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
548
yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false };
574
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
583
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, true
592
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
601
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, true
610
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
619
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, true
629
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
638
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, true
647
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
656
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, true
665
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
674
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, true
684
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
693
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, false
702
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
711
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, false
720
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
729
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, false
757
yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false };
766
yield return new object[] { customStyle, font, Color.Gray,
SystemColors
.Control, Color.Green, false, HorizontalAlignment.Left, false };
783
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
792
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, true
801
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
810
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, true
819
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
828
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, true
838
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
847
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, true
856
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
865
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, true
874
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
883
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, true
893
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Center, false
902
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Center, false
911
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Left, false
920
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Left, false
929
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, false, HorizontalAlignment.Right, false
938
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00),
SystemColors
.WindowText, true, HorizontalAlignment.Right, false
System\Windows\Forms\DateTimePickerTests.cs (6)
33
Assert.Equal(
SystemColors
.Window, control.BackColor);
41
Assert.Equal(
SystemColors
.Window, control.CalendarMonthBackground);
42
Assert.Equal(
SystemColors
.ActiveCaption, control.CalendarTitleBackColor);
43
Assert.Equal(
SystemColors
.ActiveCaptionText, control.CalendarTitleForeColor);
44
Assert.Equal(
SystemColors
.GrayText, control.CalendarTrailingForeColor);
80
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\DomainUpDownTests.cs (2)
45
_sub.BackColor.Should().Be(
SystemColors
.Window);
102
_sub.ForeColor.Should().Be(
SystemColors
.WindowText);
System\Windows\Forms\DrawItemEventArgsTests.cs (12)
15
yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1,
SystemColors
.HighlightText,
SystemColors
.Highlight };
16
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None,
SystemColors
.WindowText,
SystemColors
.Window };
17
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected,
SystemColors
.HighlightText,
SystemColors
.Highlight };
18
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus,
SystemColors
.WindowText,
SystemColors
.Window };
19
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect,
SystemColors
.WindowText,
SystemColors
.Window };
60
Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ?
SystemColors
.HighlightText : foreColor, e.ForeColor);
61
Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ?
SystemColors
.Highlight : backColor, e.BackColor);
System\Windows\Forms\FontDialogTests.cs (2)
170
yield return new object[] {
SystemColors
.ControlText,
SystemColors
.ControlText };
System\Windows\Forms\ListBoxTests.cs (18)
29
Assert.Equal(
SystemColors
.Window, control.BackColor);
75
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
351
yield return new object[] { Color.Empty,
SystemColors
.Window };
374
yield return new object[] { Color.Empty,
SystemColors
.Window, 0 };
432
Assert.Equal(
SystemColors
.Window, control.BackColor);
454
Assert.Equal(
SystemColors
.Window, control.BackColor);
470
Assert.Equal(
SystemColors
.Window, control.BackColor);
1242
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1268
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1329
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
1351
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
1367
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
5980
Assert.Equal(
SystemColors
.Window, control.BackColor);
5985
Assert.Equal(
SystemColors
.Window, control.BackColor);
5989
Assert.Equal(
SystemColors
.Window, control.BackColor);
5999
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
6004
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
6008
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (64)
18
Assert.Equal(
SystemColors
.Window, item.BackColor);
23
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
46
yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
47
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
48
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
84
yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
85
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
86
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(),
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
122
yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
123
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
124
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
160
yield return new object[] { null, -1, Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
161
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
162
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
208
Assert.Equal(
SystemColors
.Window, item.BackColor);
213
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
245
Assert.Equal(
SystemColors
.Window, item.BackColor);
250
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
283
Assert.Equal(
SystemColors
.Window, item.BackColor);
288
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
321
Assert.Equal(
SystemColors
.Window, item.BackColor);
326
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
358
Assert.Equal(
SystemColors
.Window, item.BackColor);
363
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
396
Assert.Equal(
SystemColors
.Window, item.BackColor);
401
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
434
Assert.Equal(
SystemColors
.Window, item.BackColor);
439
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
471
Assert.Equal(
SystemColors
.Window, item.BackColor);
476
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
509
Assert.Equal(
SystemColors
.Window, item.BackColor);
514
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
547
Assert.Equal(
SystemColors
.Window, item.BackColor);
552
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
585
Assert.Equal(
SystemColors
.Window, item.BackColor);
590
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
622
Assert.Equal(
SystemColors
.Window, item.BackColor);
627
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
660
Assert.Equal(
SystemColors
.Window, item.BackColor);
665
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
698
Assert.Equal(
SystemColors
.Window, item.BackColor);
703
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
735
Assert.Equal(
SystemColors
.Window, item.BackColor);
740
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
774
Assert.Equal(
SystemColors
.Window, item.BackColor);
779
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
804
Assert.Equal(
SystemColors
.Window, item.BackColor);
809
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
851
yield return new object[] { Color.Empty,
SystemColors
.Window };
870
Assert.Equal(
SystemColors
.Window, item.BackColor);
906
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
927
Assert.Equal(
SystemColors
.WindowText, item.ForeColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (4)
259
yield return new object[] { null, Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
389
yield return new object[] { Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window };
System\Windows\Forms\ListViewSubItemTests.cs (25)
19
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
22
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
45
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
48
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
56
yield return new object[] { null, null, Color.Empty, Color.Empty, null,
SystemColors
.WindowText,
SystemColors
.Window, string.Empty };
95
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
106
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
110
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
131
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
137
yield return new object[] { Color.Empty,
SystemColors
.Window };
231
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
344
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
355
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
359
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
380
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
385
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
544
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
546
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
549
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
551
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
561
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
563
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
566
Assert.Equal(
SystemColors
.Window, subItem.BackColor);
568
Assert.Equal(
SystemColors
.WindowText, subItem.ForeColor);
System\Windows\Forms\ListViewTests.cs (8)
35
Assert.Equal(
SystemColors
.Window, control.BackColor);
83
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
454
yield return new object[] { Color.Empty,
SystemColors
.Window };
477
yield return new object[] { Color.Empty,
SystemColors
.Window, 0 };
545
Assert.Equal(
SystemColors
.Window, control.BackColor);
1310
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1336
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1407
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (1)
28
Assert.Equal(
SystemColors
.AppWorkspace, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (11)
32
Assert.Equal(
SystemColors
.Window, control.BackColor);
85
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
133
Assert.Equal(
SystemColors
.ActiveCaption, control.TitleBackColor);
134
Assert.Equal(
SystemColors
.ActiveCaptionText, control.TitleForeColor);
139
Assert.Equal(
SystemColors
.GrayText, control.TrailingForeColor);
283
yield return new object[] { Color.Empty,
SystemColors
.Window };
306
yield return new object[] { Color.Empty,
SystemColors
.Window, 0 };
364
Assert.Equal(
SystemColors
.Window, control.BackColor);
923
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
949
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1010
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\Printing\PrintPreviewControlTests.cs (4)
19
Assert.Equal(
SystemColors
.AppWorkspace.ToArgb(), actualBackColorArgb);
34
Assert.Equal(
SystemColors
.ControlDarkDark.ToArgb(), actualBackColorArgb);
36
Assert.False(
SystemColors
.AppWorkspace.ToArgb().Equals(actualBackColorArgb));
43
Assert.False(
SystemColors
.AppWorkspace.ToArgb().Equals(actualBackColorArgb));
System\Windows\Forms\ProgressBarTests.cs (6)
65
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
635
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
651
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
2565
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
2570
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
2574
Assert.Equal(
SystemColors
.Highlight, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (46)
58
Assert.Equal(
SystemColors
.ControlText, control.CategoryForeColor);
59
Assert.Equal(
SystemColors
.Control, control.CategorySplitterColor);
64
Assert.Equal(
SystemColors
.Control, control.CommandsBackColor);
65
Assert.Equal(
SystemColors
.ControlDark, control.CommandsBorderColor);
67
Assert.Equal(
SystemColors
.ControlText, control.CommandsForeColor);
89
Assert.Equal(
SystemColors
.GrayText, control.DisabledItemForeColor);
109
Assert.Equal(
SystemColors
.Control, control.HelpBackColor);
110
Assert.Equal(
SystemColors
.ControlText, control.HelpForeColor);
111
Assert.Equal(
SystemColors
.ControlDark, control.HelpBorderColor);
124
Assert.Equal(
SystemColors
.InactiveBorder, control.LineColor);
142
Assert.Equal(
SystemColors
.Highlight, control.SelectedItemWithFocusBackColor);
143
Assert.Equal(
SystemColors
.HighlightText, control.SelectedItemWithFocusForeColor);
164
Assert.Equal(
SystemColors
.Window, control.ViewBackColor);
165
Assert.Equal(
SystemColors
.ControlDark, control.ViewBorderColor);
166
Assert.Equal(
SystemColors
.WindowText, control.ViewForeColor);
763
Assert.Equal(
SystemColors
.ControlText, control.CategoryForeColor);
779
Assert.Equal(
SystemColors
.ControlText, control.CategoryForeColor);
841
Assert.Equal(
SystemColors
.Control, control.CategorySplitterColor);
857
Assert.Equal(
SystemColors
.Control, control.CategorySplitterColor);
1004
Assert.Equal(
SystemColors
.Control, control.CommandsBackColor);
1020
Assert.Equal(
SystemColors
.Control, control.CommandsBackColor);
1089
Assert.Equal(
SystemColors
.ControlDark, control.CommandsBorderColor);
1105
Assert.Equal(
SystemColors
.ControlDark, control.CommandsBorderColor);
1252
Assert.Equal(
SystemColors
.ControlText, control.CommandsForeColor);
1268
Assert.Equal(
SystemColors
.ControlText, control.CommandsForeColor);
1501
Assert.Equal(
SystemColors
.GrayText, control.DisabledItemForeColor);
1517
Assert.Equal(
SystemColors
.GrayText, control.DisabledItemForeColor);
1792
Assert.Equal(
SystemColors
.Control, control.HelpBackColor);
1808
Assert.Equal(
SystemColors
.Control, control.HelpBackColor);
1877
Assert.Equal(
SystemColors
.ControlDark, control.HelpBorderColor);
1893
Assert.Equal(
SystemColors
.ControlDark, control.HelpBorderColor);
1955
Assert.Equal(
SystemColors
.ControlText, control.HelpForeColor);
1971
Assert.Equal(
SystemColors
.ControlText, control.HelpForeColor);
2211
Assert.Equal(
SystemColors
.InactiveBorder, control.LineColor);
2227
Assert.Equal(
SystemColors
.InactiveBorder, control.LineColor);
2458
Assert.Equal(
SystemColors
.Highlight, control.SelectedItemWithFocusBackColor);
2474
Assert.Equal(
SystemColors
.Highlight, control.SelectedItemWithFocusBackColor);
2536
Assert.Equal(
SystemColors
.HighlightText, control.SelectedItemWithFocusForeColor);
2552
Assert.Equal(
SystemColors
.HighlightText, control.SelectedItemWithFocusForeColor);
3262
Assert.Equal(
SystemColors
.Window, control.ViewBackColor);
3278
Assert.Equal(
SystemColors
.Window, control.ViewBackColor);
3347
Assert.Equal(
SystemColors
.ControlDark, control.ViewBorderColor);
3363
Assert.Equal(
SystemColors
.ControlDark, control.ViewBorderColor);
3369
yield return new object[] { Color.Empty,
SystemColors
.ControlText };
3432
Assert.Equal(
SystemColors
.WindowText, control.ViewForeColor);
3448
Assert.Equal(
SystemColors
.WindowText, control.ViewForeColor);
System\Windows\Forms\RichTextBoxTests.cs (9)
39
Assert.Equal(
SystemColors
.Window, control.BackColor);
84
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
648
yield return new object[] { Color.Empty,
SystemColors
.Window };
729
Assert.Equal(
SystemColors
.Window, control.BackColor);
1679
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1705
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1805
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
3831
Assert.Equal(
SystemColors
.Window, control.SelectionBackColor);
3933
yield return new object[] { Color.Empty,
SystemColors
.Window };
System\Windows\Forms\TabControlTests.cs (8)
543
Assert.Equal(
SystemColors
.Control, control.BackColor);
548
Assert.Equal(
SystemColors
.Control, control.BackColor);
566
Assert.Equal(
SystemColors
.Control, control.BackColor);
574
Assert.Equal(
SystemColors
.Control, control.BackColor);
597
Assert.Equal(
SystemColors
.Control, control.BackColor);
602
Assert.Equal(
SystemColors
.Control, control.BackColor);
607
Assert.Equal(
SystemColors
.Control, control.BackColor);
613
Assert.Equal(
SystemColors
.Control, control.BackColor);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
87
State.Brush(
SystemColors
.Highlight, BRUSH_STYLE.BS_SOLID)),
113
State.Brush(
SystemColors
.Highlight, BRUSH_STYLE.BS_SOLID)),
139
State.Brush(
SystemColors
.Highlight, BRUSH_STYLE.BS_SOLID)),
166
State.Brush(
SystemColors
.Highlight, BRUSH_STYLE.BS_SOLID)),
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (6)
31
yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25),
SystemColors
.Control };
33
yield return new object[] { new ToolStripDropDown(), new Rectangle(0, 0, 100, 25),
SystemColors
.Menu };
34
yield return new object[] { new MenuStrip(), new Rectangle(0, 0, 200, 24),
SystemColors
.MenuBar };
54
yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty,
SystemColors
.Control };
56
yield return new object[] { new ToolStripDropDown(), new Rectangle(1, 2, 3, 4), Color.Empty,
SystemColors
.Menu };
57
yield return new object[] { new MenuStrip(), new Rectangle(1, 2, 3, 4), Color.Empty,
SystemColors
.MenuBar };
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
56
Assert.Equal(
SystemColors
.ControlDark, item.ForeColor);
System\Windows\Forms\ToolTipTests.cs (4)
23
Assert.Equal(
SystemColors
.Info, toolTip.BackColor);
29
Assert.Equal(
SystemColors
.InfoText, toolTip.ForeColor);
53
Assert.Equal(
SystemColors
.Info, toolTip.BackColor);
59
Assert.Equal(
SystemColors
.InfoText, toolTip.ForeColor);
System\Windows\Forms\TreeViewTests.cs (7)
27
Assert.Equal(
SystemColors
.Window, control.BackColor);
69
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
700
yield return new object[] { Color.Empty,
SystemColors
.Window };
723
yield return new object[] { Color.Empty,
SystemColors
.Window, 0 };
781
Assert.Equal(
SystemColors
.Window, control.BackColor);
1461
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1523
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System\Windows\Forms\UpDownBaseTests.cs (7)
31
Assert.Equal(
SystemColors
.Window, control.BackColor);
89
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
512
yield return new object[] { Color.Empty,
SystemColors
.Window };
535
yield return new object[] { Color.Empty,
SystemColors
.Window, 1 };
592
Assert.Equal(
SystemColors
.Window, control.BackColor);
937
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1015
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
TextBoxBaseTests.cs (6)
380
Assert.Equal(
SystemColors
.Control, control.BackColor);
385
yield return new object[] { Color.Empty,
SystemColors
.Window };
431
Assert.Equal(
SystemColors
.Window, control.BackColor);
1163
yield return new object[] { Color.Empty,
SystemColors
.WindowText };
1189
yield return new object[] { Color.Empty,
SystemColors
.WindowText, 0 };
1250
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
TextBoxTests.cs (2)
34
Assert.Equal(
SystemColors
.Window, control.BackColor);
74
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
TrackBarTests.cs (9)
67
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
701
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
706
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
724
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
732
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
754
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
759
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
764
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
770
Assert.Equal(
SystemColors
.WindowText, control.ForeColor);
System.Windows.Forms.UI.IntegrationTests (21)
PropertyGridTests.cs (21)
107
_propertyGrid.CommandsBorderColor.Should().Be(
SystemColors
.ControlDark);
116
_propertyGrid.HelpBorderColor.Should().Be(
SystemColors
.ControlDark);
125
_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(
SystemColors
.Highlight);
134
_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(
SystemColors
.HighlightText);
143
_propertyGrid.DisabledItemForeColor.Should().Be(
SystemColors
.GrayText);
152
_propertyGrid.CategorySplitterColor.Should().Be(
SystemColors
.Control);
161
_propertyGrid.ForeColor.Should().Be(
SystemColors
.ControlText);
189
_propertyGrid.BackColor.Should().Be(
SystemColors
.Control);
208
_propertyGrid.CommandsBackColor.Should().Be(
SystemColors
.Control);
217
_propertyGrid.CommandsForeColor.Should().Be(
SystemColors
.ControlText);
249
_propertyGrid.HelpBackColor.Should().Be(
SystemColors
.Control);
258
_propertyGrid.HelpForeColor.Should().Be(
SystemColors
.ControlText);
267
_propertyGrid.LineColor.Should().Be(
SystemColors
.InactiveBorder);
338
_propertyGrid.ViewBackColor.Should().Be(
SystemColors
.Window);
347
_propertyGrid.ViewBorderColor.Should().Be(
SystemColors
.ControlDark);
356
_propertyGrid.ViewForeColor.Should().Be(
SystemColors
.WindowText);
365
_propertyGrid.CategoryForeColor.Should().Be(
SystemColors
.ControlText);
367
_propertyGrid.CategoryForeColor =
SystemColors
.MenuHighlight;
368
_propertyGrid.CategoryForeColor.Should().Be(
SystemColors
.MenuHighlight);
388
_propertyGrid.CommandsActiveLinkColor =
SystemColors
.ControlDark;
389
_propertyGrid.CommandsActiveLinkColor.Should().Be(
SystemColors
.ControlDark);
TestPassApp (3)
CommonControl2.Designer.cs (1)
132
this.richTextBox1.BackColor = System.Drawing.
SystemColors
.Window;
ContainerControls2.Designer.cs (1)
290
groupBox5.ForeColor =
SystemColors
.Control;
DataBindingExample.Designer.cs (1)
168
this.richTextBox1.BackColor = System.Drawing.
SystemColors
.Window;
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
68
HeaderForeColor =
SystemColors
.ControlText,
WinFormsControlsTest (13)
CustomComCtl32Button.cs (1)
95
Pen pen = new(
SystemColors
.ControlDarkDark, 1);
DataGridViewTest.Designer.cs (7)
57
dataGridViewCellStyle1.BackColor = System.Drawing.
SystemColors
.Control;
59
dataGridViewCellStyle1.ForeColor = System.Drawing.
SystemColors
.WindowText;
60
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.
SystemColors
.Highlight;
61
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.
SystemColors
.HighlightText;
75
dataGridViewCellStyle3.BackColor = System.Drawing.
SystemColors
.Info;
78
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.
SystemColors
.Highlight;
79
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.
SystemColors
.HighlightText;
Dialogs.Designer.cs (1)
52
this.propertyGrid1.CommandsBorderColor = System.Drawing.
SystemColors
.Control;
MessageBoxes.Designer.cs (1)
40
this.propertyGrid1.CommandsBorderColor = System.Drawing.
SystemColors
.Control;
MultipleControls.Designer.cs (2)
225
this.checkedListBox1.BackColor = System.Drawing.
SystemColors
.Window;
281
this.checkedListBox2.BackColor = System.Drawing.
SystemColors
.Window;
PropertyGrid.Designer.cs (1)
39
this.propertyGrid1.CommandsBorderColor = System.Drawing.
SystemColors
.Control;