610 references to SystemColors
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)
70
BackColor = System.Drawing.
SystemColors
.Control;
MS\Internal\Documents\DialogDivider.cs (1)
73
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\runtime\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 (67)
Special\Forwards.cs (1)
18
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SystemColors
))]
System\Drawing\SystemBrushes.cs (33)
10
public static Brush ActiveBorder => FromSystemColor(
SystemColors
.ActiveBorder);
11
public static Brush ActiveCaption => FromSystemColor(
SystemColors
.ActiveCaption);
12
public static Brush ActiveCaptionText => FromSystemColor(
SystemColors
.ActiveCaptionText);
13
public static Brush AppWorkspace => FromSystemColor(
SystemColors
.AppWorkspace);
15
public static Brush ButtonFace => FromSystemColor(
SystemColors
.ButtonFace);
16
public static Brush ButtonHighlight => FromSystemColor(
SystemColors
.ButtonHighlight);
17
public static Brush ButtonShadow => FromSystemColor(
SystemColors
.ButtonShadow);
19
public static Brush Control => FromSystemColor(
SystemColors
.Control);
20
public static Brush ControlLightLight => FromSystemColor(
SystemColors
.ControlLightLight);
21
public static Brush ControlLight => FromSystemColor(
SystemColors
.ControlLight);
22
public static Brush ControlDark => FromSystemColor(
SystemColors
.ControlDark);
23
public static Brush ControlDarkDark => FromSystemColor(
SystemColors
.ControlDarkDark);
24
public static Brush ControlText => FromSystemColor(
SystemColors
.ControlText);
26
public static Brush Desktop => FromSystemColor(
SystemColors
.Desktop);
28
public static Brush GradientActiveCaption => FromSystemColor(
SystemColors
.GradientActiveCaption);
29
public static Brush GradientInactiveCaption => FromSystemColor(
SystemColors
.GradientInactiveCaption);
30
public static Brush GrayText => FromSystemColor(
SystemColors
.GrayText);
32
public static Brush Highlight => FromSystemColor(
SystemColors
.Highlight);
33
public static Brush HighlightText => FromSystemColor(
SystemColors
.HighlightText);
34
public static Brush HotTrack => FromSystemColor(
SystemColors
.HotTrack);
36
public static Brush InactiveCaption => FromSystemColor(
SystemColors
.InactiveCaption);
37
public static Brush InactiveBorder => FromSystemColor(
SystemColors
.InactiveBorder);
38
public static Brush InactiveCaptionText => FromSystemColor(
SystemColors
.InactiveCaptionText);
39
public static Brush Info => FromSystemColor(
SystemColors
.Info);
40
public static Brush InfoText => FromSystemColor(
SystemColors
.InfoText);
42
public static Brush Menu => FromSystemColor(
SystemColors
.Menu);
43
public static Brush MenuBar => FromSystemColor(
SystemColors
.MenuBar);
44
public static Brush MenuHighlight => FromSystemColor(
SystemColors
.MenuHighlight);
45
public static Brush MenuText => FromSystemColor(
SystemColors
.MenuText);
47
public static Brush ScrollBar => FromSystemColor(
SystemColors
.ScrollBar);
49
public static Brush Window => FromSystemColor(
SystemColors
.Window);
50
public static Brush WindowFrame => FromSystemColor(
SystemColors
.WindowFrame);
51
public static Brush WindowText => FromSystemColor(
SystemColors
.WindowText);
System\Drawing\SystemPens.cs (33)
10
public static Pen ActiveBorder => FromSystemColor(
SystemColors
.ActiveBorder);
11
public static Pen ActiveCaption => FromSystemColor(
SystemColors
.ActiveCaption);
12
public static Pen ActiveCaptionText => FromSystemColor(
SystemColors
.ActiveCaptionText);
13
public static Pen AppWorkspace => FromSystemColor(
SystemColors
.AppWorkspace);
15
public static Pen ButtonFace => FromSystemColor(
SystemColors
.ButtonFace);
16
public static Pen ButtonHighlight => FromSystemColor(
SystemColors
.ButtonHighlight);
18
public static Pen ButtonShadow => FromSystemColor(
SystemColors
.ButtonShadow);
20
public static Pen Control => FromSystemColor(
SystemColors
.Control);
21
public static Pen ControlText => FromSystemColor(
SystemColors
.ControlText);
22
public static Pen ControlDark => FromSystemColor(
SystemColors
.ControlDark);
23
public static Pen ControlDarkDark => FromSystemColor(
SystemColors
.ControlDarkDark);
24
public static Pen ControlLight => FromSystemColor(
SystemColors
.ControlLight);
25
public static Pen ControlLightLight => FromSystemColor(
SystemColors
.ControlLightLight);
27
public static Pen Desktop => FromSystemColor(
SystemColors
.Desktop);
29
public static Pen GradientActiveCaption => FromSystemColor(
SystemColors
.GradientActiveCaption);
30
public static Pen GradientInactiveCaption => FromSystemColor(
SystemColors
.GradientInactiveCaption);
31
public static Pen GrayText => FromSystemColor(
SystemColors
.GrayText);
33
public static Pen Highlight => FromSystemColor(
SystemColors
.Highlight);
34
public static Pen HighlightText => FromSystemColor(
SystemColors
.HighlightText);
35
public static Pen HotTrack => FromSystemColor(
SystemColors
.HotTrack);
37
public static Pen InactiveBorder => FromSystemColor(
SystemColors
.InactiveBorder);
38
public static Pen InactiveCaption => FromSystemColor(
SystemColors
.InactiveCaption);
39
public static Pen InactiveCaptionText => FromSystemColor(
SystemColors
.InactiveCaptionText);
40
public static Pen Info => FromSystemColor(
SystemColors
.Info);
41
public static Pen InfoText => FromSystemColor(
SystemColors
.InfoText);
43
public static Pen Menu => FromSystemColor(
SystemColors
.Menu);
44
public static Pen MenuBar => FromSystemColor(
SystemColors
.MenuBar);
45
public static Pen MenuHighlight => FromSystemColor(
SystemColors
.MenuHighlight);
46
public static Pen MenuText => FromSystemColor(
SystemColors
.MenuText);
48
public static Pen ScrollBar => FromSystemColor(
SystemColors
.ScrollBar);
50
public static Pen Window => FromSystemColor(
SystemColors
.Window);
51
public static Pen WindowFrame => FromSystemColor(
SystemColors
.WindowFrame);
52
public static Pen WindowText => FromSystemColor(
SystemColors
.WindowText);
System.Drawing.Primitives (3)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
18
FillWithProperties(colors, typeof(
SystemColors
));
System\Drawing\KnownColorTable.cs (1)
517
return !
SystemColors
.s_useAlternativeColorSet || HighContrastEnabled()
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 (406)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3332
qaContainer.colorFore = GetOleColorFromColor(
SystemColors
.WindowText);
3333
qaContainer.colorBack = GetOleColorFromColor(
SystemColors
.Window);
System\Windows\Forms\Application.cs (2)
343
bool useAlternateColorSet =
SystemColors
.UseAlternativeColorSet;
350
SystemColors
.UseAlternativeColorSet = darkModeEnabled;
System\Windows\Forms\Control.cs (4)
1634
public static Color DefaultBackColor =>
SystemColors
.Control;
1665
public static Color DefaultForeColor =>
SystemColors
.ControlText;
1714
color =
SystemColors
.Control;
8273
using CreateBrushScope hbrush = new(
SystemColors
.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1327
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)
107
if (Control.BackColor !=
SystemColors
.Control && SystemInformation.HighContrast)
133
bool stockColor = colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
148
: stockColor ?
SystemColors
.ControlLightLight : colors.Highlight);
157
: stockColor ?
SystemColors
.ControlDarkDark : colors.ButtonShadowDark);
166
? SystemInformation.HighContrast ?
SystemColors
.ControlLight :
SystemColors
.Control
182
: stockColor ?
SystemColors
.ControlDark : colors.ButtonShadow);
225
colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor()
226
?
SystemColors
.ControlLight
236
bool stockColor = colors.ButtonFace.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
251
: stockColor ?
SystemColors
.ControlLightLight : colors.Highlight);
260
: stockColor ?
SystemColors
.ControlDarkDark : colors.ButtonShadowDark);
275
: SystemInformation.HighContrast ?
SystemColors
.ControlLight :
SystemColors
.Control);
285
: 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);
236
PaintBackground(e, r, IsHighContrastHighlighted() ?
SystemColors
.Highlight : backColor);
250
?
SystemColors
.HighlightText
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\DarkMode\ButtonDarkModeAdapter.cs (2)
41
textColor =
SystemColors
.HighlightText;
62
backColor =
SystemColors
.HighlightText;
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 (5)
259
?
SystemColors
.ControlDarkDark
260
:
SystemColors
.Window;
543
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
3439
using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ??
SystemColors
.Control);
3760
&& !(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)
39
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;
2087
private static Color DefaultGridColor =>
SystemColors
.WindowFrame;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
5669
using var brush =
SystemColors
.HotTrack.GetCachedSolidBrushScope();
16709
ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(),
SystemColors
.ActiveCaptionText);
19323
using var pen =
SystemColors
.ControlText.GetCachedPenScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
749
SystemColors
.Control,
785
using CreateBrushScope hbrush = new(
SystemColors
.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
1422
int darkDistance = ColorDistance(baseline,
SystemColors
.ControlDark);
1423
int lightDistance = ColorDistance(baseline,
SystemColors
.ControlLightLight);
1432
:
SystemColors
.ControlDark;
1436
:
SystemColors
.ControlLightLight;
1442
:
SystemColors
.WindowFrame;
1446
:
SystemColors
.ControlLightLight;
3146
DataGridViewAdvancedCellBorderStyle.Inset =>
SystemColors
.ControlLightLight,
3147
_ =>
SystemColors
.ControlDark,
3181
DataGridViewAdvancedCellBorderStyle.Inset =>
SystemColors
.ControlLightLight,
3182
_ =>
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;
494
:
SystemColors
.WindowText;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
546
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 (7)
585
foreColor =
SystemColors
.GrayText;
598
backColor =
SystemColors
.Highlight;
600
foreColor = Application.IsDarkModeEnabled ?
SystemColors
.ControlText :
SystemColors
.HighlightText;
605
backColor =
SystemColors
.InactiveBorder;
606
foreColor =
SystemColors
.GrayText;
733
foreColor =
SystemColors
.GrayText;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
159
return
SystemColors
.Window;
454
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;
835
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
2864
if (nmcd->clrText == ColorTranslator.ToWin32(
SystemColors
.HotTrack))
4985
if (c !=
SystemColors
.Window || Application.IsDarkModeEnabled)
4992
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;
201
return
SystemColors
.Window;
417
return
SystemColors
.WindowText;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (3)
28
private static readonly Color s_defaultForeColor =
SystemColors
.Highlight;
86
BackColor =
SystemColors
.ControlDarkDark;
91
ForeColor =
SystemColors
.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (12)
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;
78
private Color _selectedItemWithFocusForeColor = Application.IsDarkModeEnabled ?
SystemColors
.ControlText :
SystemColors
.HighlightText;
80
private Color _selectedItemWithFocusBackColor =
SystemColors
.Highlight;
216
_helpPane.BackColor =
SystemColors
.Control;
217
_helpPane.ForeColor =
SystemColors
.ControlText;
3692
=> _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)
76
Color c = (ARGB)
SystemColors
.Window;
91
Color backgroundColor = isHighContrastHighlighted ?
SystemColors
.Highlight : Control.BackColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
139
BackColor =
SystemColors
.Window;
140
ForeColor =
SystemColors
.WindowText;
141
_grayTextColor =
SystemColors
.GrayText;
220
_dropDownButton.BackColor =
SystemColors
.Control;
221
_dropDownButton.ForeColor =
SystemColors
.ControlText;
261
BackColor =
SystemColors
.Control,
262
ForeColor =
SystemColors
.ControlText,
383
if (ForeColor.ToArgb() ==
SystemColors
.WindowText.ToArgb())
385
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\RichTextBox\RichTextBox.cs (1)
3454
SystemColors
.GrayText,
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
178
return
SystemColors
.Control;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
891
TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle,
SystemColors
.GrayText, TextRenderer.DefaultQuality, flags);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (6)
292
?
SystemColors
.ControlDarkDark
293
:
SystemColors
.Control
294
:
SystemColors
.Window;
507
return
SystemColors
.WindowText;
955
base.BackColor = value ?
SystemColors
.ControlLight :
SystemColors
.Window;
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)
578
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);
952
Color textColor =
SystemColors
.MenuText;
961
textColor =
SystemColors
.HighlightText;
965
textColor =
SystemColors
.MenuText;
1007
Color arrowColor = (Selected || Pressed) ?
SystemColors
.HighlightText :
SystemColors
.MenuText;
1008
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)
306
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect,
SystemColors
.ControlText, ArrowDirection.Down));
530
using var controlTextBrush =
SystemColors
.ControlText.GetCachedSolidBrushScope();
570
borderColor =
SystemColors
.Highlight;
627
borderColor =
SystemColors
.Highlight;
680
e.DefaultArrowColor = item.Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
868
Color backgroundColor = e.Item.Selected ?
SystemColors
.Highlight : e.Item.BackColor;
907
:
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\ToolStripSystemDarkModeRenderer.cs (45)
47
Color c when c ==
SystemColors
.Control => Color.FromArgb(45, 45, 45),
48
Color c when c ==
SystemColors
.ControlLight => Color.FromArgb(60, 60, 60),
49
Color c when c ==
SystemColors
.ControlDark => Color.FromArgb(30, 30, 30),
50
Color c when c ==
SystemColors
.ControlText => Color.FromArgb(240, 240, 240),
51
Color c when c ==
SystemColors
.ButtonFace => Color.FromArgb(45, 45, 45),
52
Color c when c ==
SystemColors
.Highlight => Color.FromArgb(0, 120, 215),
53
Color c when c ==
SystemColors
.HighlightText => Color.White,
54
Color c when c ==
SystemColors
.Window => Color.FromArgb(32, 32, 32),
55
Color c when c ==
SystemColors
.WindowText => Color.FromArgb(240, 240, 240),
56
Color c when c ==
SystemColors
.GrayText => Color.FromArgb(153, 153, 153),
57
Color c when c ==
SystemColors
.InactiveBorder => Color.FromArgb(70, 70, 70),
58
Color c when c ==
SystemColors
.ButtonHighlight => Color.FromArgb(80, 80, 80),
59
Color c when c ==
SystemColors
.ButtonShadow => Color.FromArgb(20, 20, 20),
60
Color c when c ==
SystemColors
.Menu => Color.FromArgb(45, 45, 45),
61
Color c when c ==
SystemColors
.MenuText => Color.FromArgb(240, 240, 240),
139
FillBackground(g, bounds, GetDarkModeColor(
SystemColors
.Menu));
144
FillBackground(g, bounds, GetDarkModeColor(
SystemColors
.Menu));
162
FillBackground(e.Graphics, bounds, GetDarkModeColor(
SystemColors
.Control));
184
using var borderPen = GetDarkModePen(
SystemColors
.ControlDark);
215
using var borderPen = GetDarkModePen(
SystemColors
.ControlDark);
239
using var highlightBrush = GetDarkModeBrush(
SystemColors
.Highlight);
292
? GetDarkModeBrush(
SystemColors
.ControlDark)
293
: GetDarkModeBrush(
SystemColors
.Highlight);
327
? GetDarkModeBrush(
SystemColors
.ControlDark)
328
: GetDarkModeBrush(
SystemColors
.Highlight);
335
using var linePen = GetDarkModePen(
SystemColors
.ControlDark);
348
arrowColor:
SystemColors
.ControlText,
377
using var leftPen = GetDarkModeColor(
SystemColors
.ControlDark).GetCachedPenScope();
382
using var rightPen = GetDarkModeColor(
SystemColors
.ButtonShadow).GetCachedPenScope();
387
using var leftPen = GetDarkModeColor(
SystemColors
.ButtonShadow).GetCachedPenScope();
392
using var rightPen = GetDarkModeColor(
SystemColors
.ControlDark).GetCachedPenScope();
406
using var foreColorPen = GetDarkModeColor(
SystemColors
.ControlDark).GetCachedPenScope();
411
using var darkModePen = GetDarkModeColor(
SystemColors
.ButtonShadow).GetCachedPenScope();
435
? GetDarkModeColor(
SystemColors
.ControlDark).GetCachedSolidBrushScope()
436
: GetDarkModeColor(
SystemColors
.Highlight).GetCachedSolidBrushScope();
471
?
SystemColors
.HighlightText
472
:
SystemColors
.ControlText)
521
using var darkColorBrush = GetDarkModeColor(
SystemColors
.ControlDark).GetCachedSolidBrushScope();
522
using var lightColorBrush = GetDarkModeColor(
SystemColors
.ControlLight).GetCachedSolidBrushScope();
567
? GetDarkModeColor(
SystemColors
.HighlightText)
582
using var marginColorBrush = GetDarkModeBrush(
SystemColors
.ControlLight);
596
? GetDarkModeColor(
SystemColors
.HighlightText)
598
? GetDarkModeColor(
SystemColors
.GrayText)
650
using var highLightBrush = GetDarkModeBrush(
SystemColors
.GrayText);
651
using var shadowBrush = GetDarkModeBrush(
SystemColors
.ButtonShadow);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
248
FillBackground(g, bounds,
SystemColors
.ButtonFace);
253
?
SystemColors
.ControlLight
259
?
SystemColors
.Menu
265
?
SystemColors
.MenuBar
278
?
SystemColors
.MenuBar
446
Color arrowColor = item.Enabled ?
SystemColors
.ControlText :
SystemColors
.ControlDark;
515
?
SystemColors
.Highlight
578
?
SystemColors
.ControlText
579
:
SystemColors
.ControlDark;
643
ControlPaint.DrawBorderSimple(g, clientBounds,
SystemColors
.Highlight);
644
using var brush =
SystemColors
.Highlight.GetCachedSolidBrushScope();
722
ControlPaint.DrawBorderSimple(g, bounds,
SystemColors
.Highlight);
862
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)
238
get =>
SystemColors
.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
195
get => ShouldSerializeBackColor() ? base.BackColor :
SystemColors
.Window;
440
get => ShouldSerializeForeColor() ? base.ForeColor :
SystemColors
.WindowText;
1883
if (c !=
SystemColors
.Window || Application.IsDarkModeEnabled)
1890
if (c !=
SystemColors
.WindowText || Application.IsDarkModeEnabled)
2828
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ?
SystemColors
.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
2834
ControlPaint.DrawFocusRectangle(g, bounds, color,
SystemColors
.Highlight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
583
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)
32
BackColor =
SystemColors
.AppWorkspace;
314
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 = ShouldSerializeForeColor() ? ForeColor :
SystemColors
.ControlText;
726
ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect,
SystemColors
.ControlText);
746
return (isHighContract && !ShouldSerializeBackColor()) ?
SystemColors
.ControlDarkDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (20)
168
=> SystemInformation.HighContrast ?
SystemColors
.WindowFrame :
SystemColors
.ControlDark;
1116
if (color.ToKnownColor() ==
SystemColors
.Control.ToKnownColor())
1132
bool stockColor = color.ToKnownColor() ==
SystemColors
.Control.ToKnownColor();
1136
using var lightPen = (stockColor ?
SystemColors
.ControlLightLight : hls.Lighter(1.0f)).GetCachedPenScope();
1141
using var darkPen = (stockColor ?
SystemColors
.ControlDarkDark : hls.Darker(1.0f)).GetCachedPenScope();
1154
?
SystemColors
.ControlLightLight
1155
:
SystemColors
.Control).GetCachedPenScope();
1161
using var bottomRightPen = (stockColor ?
SystemColors
.ControlDark : hls.Darker(0.5f)).GetCachedPenScope();
1359
? (SystemInformation.HighContrast ?
SystemColors
.GrayText :
SystemColors
.ControlDark)
1360
:
SystemColors
.ControlText;
1426
=> DrawFocusRectangle(graphics, rectangle,
SystemColors
.ControlText,
SystemColors
.Control);
1693
using Pen pen = new(
SystemColors
.WindowFrame, 1);
2064
TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle,
SystemColors
.GrayText, quality, format);
2142
Color brushColor = backColor.GetBrightness() <= .5 ?
SystemColors
.ControlLight :
SystemColors
.ControlDark;
2269
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)
593
Color backColor =
SystemColors
.Window;
594
Color textColor =
SystemColors
.WindowText;
597
backColor =
SystemColors
.Highlight;
598
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)
184
BackColor =
SystemColors
.Window;
185
ForeColor =
SystemColors
.WindowText;
200
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)
141
styleColor =
SystemColors
.Info;
1406
styleColor =
SystemColors
.Info;
1428
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50,
SystemColors
.HighlightText, Color.Transparent);
1432
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50,
SystemColors
.ControlDarkDark, Color.Transparent);
1445
c.ForeColor =
SystemColors
.HighlightText;
1446
c.BackColor =
SystemColors
.Highlight;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
143
_cellStyleProperties.LineColor = Drawing.
SystemColors
.ScrollBar;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
575
_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;
704
dataSourceNode.ForeColor =
SystemColors
.GrayText;
1580
_helpTextCtrl.BackColor =
SystemColors
.Info;
1581
_helpTextCtrl.ForeColor =
SystemColors
.InfoText;
1585
_helpTextCtrl.BackColor =
SystemColors
.Window;
1586
_helpTextCtrl.ForeColor =
SystemColors
.WindowText;
System\Windows\Forms\Design\DesignerFrame.cs (1)
271
_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)
135
value =
SystemColors
.Control;
637
Control.BackColor =
SystemColors
.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
48
BackColor = Drawing.
SystemColors
.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342
Color backColor =
SystemColors
.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
135
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);
273
textColor =
SystemColors
.Highlight;
279
textColor =
SystemColors
.HighlightText;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
768
textColor =
SystemColors
.HighlightText;
773
textColor =
SystemColors
.WindowText;
903
TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect,
SystemColors
.WindowText, flags);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
384
BackColor =
SystemColors
.Window,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
837
ForeColor =
SystemColors
.WindowText
1767
DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black :
SystemColors
.ControlText, ArrowDirection.Down));
1989
DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds,
SystemColors
.ControlText, ArrowDirection.Down));
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
284
_propertyGrid1.LineColor =
SystemColors
.ScrollBar;