610 references to SystemColors
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (5)
145this._tabControl.BackColor = System.Drawing.SystemColors.Control; 150this._summaryTab.BackColor = System.Drawing.SystemColors.Control; 218this._title.BackColor = System.Drawing.SystemColors.Control; 345this._author.BackColor = System.Drawing.SystemColors.Control; 422this._infoTab.BackColor = System.Drawing.SystemColors.Control;
MS\Internal\Documents\DialogBaseForm.cs (1)
70BackColor = System.Drawing.SystemColors.Control;
MS\Internal\Documents\DialogDivider.cs (1)
73new 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)
18FillWithProperties(colors, typeof(SystemColors));
System\Drawing\ColorConverter.cs (1)
107member = 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)
10public static Brush ActiveBorder => FromSystemColor(SystemColors.ActiveBorder); 11public static Brush ActiveCaption => FromSystemColor(SystemColors.ActiveCaption); 12public static Brush ActiveCaptionText => FromSystemColor(SystemColors.ActiveCaptionText); 13public static Brush AppWorkspace => FromSystemColor(SystemColors.AppWorkspace); 15public static Brush ButtonFace => FromSystemColor(SystemColors.ButtonFace); 16public static Brush ButtonHighlight => FromSystemColor(SystemColors.ButtonHighlight); 17public static Brush ButtonShadow => FromSystemColor(SystemColors.ButtonShadow); 19public static Brush Control => FromSystemColor(SystemColors.Control); 20public static Brush ControlLightLight => FromSystemColor(SystemColors.ControlLightLight); 21public static Brush ControlLight => FromSystemColor(SystemColors.ControlLight); 22public static Brush ControlDark => FromSystemColor(SystemColors.ControlDark); 23public static Brush ControlDarkDark => FromSystemColor(SystemColors.ControlDarkDark); 24public static Brush ControlText => FromSystemColor(SystemColors.ControlText); 26public static Brush Desktop => FromSystemColor(SystemColors.Desktop); 28public static Brush GradientActiveCaption => FromSystemColor(SystemColors.GradientActiveCaption); 29public static Brush GradientInactiveCaption => FromSystemColor(SystemColors.GradientInactiveCaption); 30public static Brush GrayText => FromSystemColor(SystemColors.GrayText); 32public static Brush Highlight => FromSystemColor(SystemColors.Highlight); 33public static Brush HighlightText => FromSystemColor(SystemColors.HighlightText); 34public static Brush HotTrack => FromSystemColor(SystemColors.HotTrack); 36public static Brush InactiveCaption => FromSystemColor(SystemColors.InactiveCaption); 37public static Brush InactiveBorder => FromSystemColor(SystemColors.InactiveBorder); 38public static Brush InactiveCaptionText => FromSystemColor(SystemColors.InactiveCaptionText); 39public static Brush Info => FromSystemColor(SystemColors.Info); 40public static Brush InfoText => FromSystemColor(SystemColors.InfoText); 42public static Brush Menu => FromSystemColor(SystemColors.Menu); 43public static Brush MenuBar => FromSystemColor(SystemColors.MenuBar); 44public static Brush MenuHighlight => FromSystemColor(SystemColors.MenuHighlight); 45public static Brush MenuText => FromSystemColor(SystemColors.MenuText); 47public static Brush ScrollBar => FromSystemColor(SystemColors.ScrollBar); 49public static Brush Window => FromSystemColor(SystemColors.Window); 50public static Brush WindowFrame => FromSystemColor(SystemColors.WindowFrame); 51public static Brush WindowText => FromSystemColor(SystemColors.WindowText);
System\Drawing\SystemPens.cs (33)
10public static Pen ActiveBorder => FromSystemColor(SystemColors.ActiveBorder); 11public static Pen ActiveCaption => FromSystemColor(SystemColors.ActiveCaption); 12public static Pen ActiveCaptionText => FromSystemColor(SystemColors.ActiveCaptionText); 13public static Pen AppWorkspace => FromSystemColor(SystemColors.AppWorkspace); 15public static Pen ButtonFace => FromSystemColor(SystemColors.ButtonFace); 16public static Pen ButtonHighlight => FromSystemColor(SystemColors.ButtonHighlight); 18public static Pen ButtonShadow => FromSystemColor(SystemColors.ButtonShadow); 20public static Pen Control => FromSystemColor(SystemColors.Control); 21public static Pen ControlText => FromSystemColor(SystemColors.ControlText); 22public static Pen ControlDark => FromSystemColor(SystemColors.ControlDark); 23public static Pen ControlDarkDark => FromSystemColor(SystemColors.ControlDarkDark); 24public static Pen ControlLight => FromSystemColor(SystemColors.ControlLight); 25public static Pen ControlLightLight => FromSystemColor(SystemColors.ControlLightLight); 27public static Pen Desktop => FromSystemColor(SystemColors.Desktop); 29public static Pen GradientActiveCaption => FromSystemColor(SystemColors.GradientActiveCaption); 30public static Pen GradientInactiveCaption => FromSystemColor(SystemColors.GradientInactiveCaption); 31public static Pen GrayText => FromSystemColor(SystemColors.GrayText); 33public static Pen Highlight => FromSystemColor(SystemColors.Highlight); 34public static Pen HighlightText => FromSystemColor(SystemColors.HighlightText); 35public static Pen HotTrack => FromSystemColor(SystemColors.HotTrack); 37public static Pen InactiveBorder => FromSystemColor(SystemColors.InactiveBorder); 38public static Pen InactiveCaption => FromSystemColor(SystemColors.InactiveCaption); 39public static Pen InactiveCaptionText => FromSystemColor(SystemColors.InactiveCaptionText); 40public static Pen Info => FromSystemColor(SystemColors.Info); 41public static Pen InfoText => FromSystemColor(SystemColors.InfoText); 43public static Pen Menu => FromSystemColor(SystemColors.Menu); 44public static Pen MenuBar => FromSystemColor(SystemColors.MenuBar); 45public static Pen MenuHighlight => FromSystemColor(SystemColors.MenuHighlight); 46public static Pen MenuText => FromSystemColor(SystemColors.MenuText); 48public static Pen ScrollBar => FromSystemColor(SystemColors.ScrollBar); 50public static Pen Window => FromSystemColor(SystemColors.Window); 51public static Pen WindowFrame => FromSystemColor(SystemColors.WindowFrame); 52public static Pen WindowText => FromSystemColor(SystemColors.WindowText);
System.Drawing.Primitives (3)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
18FillWithProperties(colors, typeof(SystemColors));
System\Drawing\KnownColorTable.cs (1)
517return !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)
15bool useSolidBrush = SystemColors.UseAlternativeColorSet;
System.Windows.Forms (406)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3332qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText); 3333qaContainer.colorBack = GetOleColorFromColor(SystemColors.Window);
System\Windows\Forms\Application.cs (2)
343bool useAlternateColorSet = SystemColors.UseAlternativeColorSet; 350SystemColors.UseAlternativeColorSet = darkModeEnabled;
System\Windows\Forms\Control.cs (4)
1634public static Color DefaultBackColor => SystemColors.Control; 1665public static Color DefaultForeColor => SystemColors.ControlText; 1714color = SystemColors.Control; 8273using CreateBrushScope hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1327get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (6)
40if (_backColor == SystemColors.Control) 42colors.ButtonShadow = SystemColors.ControlDark; 43colors.ButtonShadowDark = SystemColors.ControlDarkDark; 44colors.Highlight = SystemColors.ControlLightLight; 62colors.WindowDisabled = HighContrast ? SystemColors.GrayText : colors.ButtonShadow; 88if (HighContrast && _backColor != SystemColors.Control)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (15)
107if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 133bool 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); 225colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor() 226? SystemColors.ControlLight 236bool 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)
67PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor); 75PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText, drawFocus: false); 236PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor); 250? SystemColors.HighlightText
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (4)
27Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location); 40state != CheckState.Indeterminate && IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText, 73Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location); 82PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText, drawFocus: true);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (3)
73Color color = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor; 167Color highlightTextColor = SystemColors.HighlightText; 178PaintField(e, layout, colors, SystemColors.HighlightText, drawFocus: true);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (7)
96color = SystemColors.Control; 98else if (controlCheckState == CheckState.Indeterminate && checkBackground == SystemColors.Window && disabledColors) 100Color 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)
41textColor = SystemColors.HighlightText; 62backColor = SystemColors.HighlightText;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (3)
37field = SystemColors.Control; 72field = SystemColors.Control; 142checkColor = SystemColors.ControlDark;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
159textColor = SystemColors.ControlText; 270textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
144textColor = SystemColors.ControlText; 216textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
144textColor = SystemColors.ControlText; 237textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
259? SystemColors.ControlDarkDark 260: SystemColors.Window; 543get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 3439using 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; 177return SystemColors.ControlDark; 180return focused ? SystemColors.ControlDark : SystemColors.Window; 184=> comboBox.Enabled ? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
39if (windowColor != SystemColors.Window)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
356private static readonly Color s_defaultBackColor = SystemColors.Window; 357private static readonly Color s_defaultBackgroundColor = SystemColors.ControlDark; 2087private static Color DefaultGridColor => SystemColors.WindowFrame;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
5669using var brush = SystemColors.HotTrack.GetCachedSolidBrushScope(); 16709ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(), SystemColors.ActiveCaptionText); 19323using var pen = SystemColors.ControlText.GetCachedPenScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
749SystemColors.Control, 785using CreateBrushScope hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
1422int darkDistance = ColorDistance(baseline, SystemColors.ControlDark); 1423int lightDistance = ColorDistance(baseline, SystemColors.ControlLightLight); 1432: SystemColors.ControlDark; 1436: SystemColors.ControlLightLight; 1442: SystemColors.WindowFrame; 1446: SystemColors.ControlLightLight; 3146DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3147_ => SystemColors.ControlDark, 3181DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3182_ => SystemColors.ControlDark,
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (9)
58return Selected ? SystemColors.HighlightText : LinkUtilities.IEActiveLinkColor; 96return !ActiveLinkColor.Equals(SystemColors.HotTrack); 166return Selected ? SystemColors.HighlightText : LinkUtilities.IELinkColor; 201? !LinkColor.Equals(SystemColors.HotTrack) 298return Selected ? SystemColors.HighlightText : LinkUtilities.GetVisitedLinkColor(); 303return Selected ? SystemColors.HighlightText : LinkUtilities.IEVisitedLinkColor; 343return !VisitedLinkColor.Equals(SystemColors.HotTrack); 356return Selected ? SystemColors.HighlightText : SystemColors.HotTrack;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (3)
70return !ActiveLinkColor.Equals(SystemColors.HotTrack); 181return !LinkColor.Equals(SystemColors.HotTrack); 361return !VisitedLinkColor.Equals(SystemColors.HotTrack);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (6)
28protected static readonly Color DefaultTitleBackColor = SystemColors.ActiveCaption; 33protected static readonly Color DefaultTitleForeColor = SystemColors.ActiveCaptionText; 38protected static readonly Color DefaultMonthBackColor = SystemColors.Window; 43protected static readonly Color DefaultTrailingForeColor = SystemColors.GrayText; 130get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 494: SystemColors.WindowText;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
546Color boxColor = Enabled ? ForeColor : SystemColors.GrayText;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (4)
248Color backColor = SystemColors.Control; 328using CreatePenScope hpenDark = new(SystemColors.ControlDark); 340using CreatePenScope hpenLight = new(SystemColors.ControlLight); 353return SystemColors.ControlText;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
238? SystemInformation.HighContrast ? SystemColors.HotTrack : IELinkColor
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (5)
116int r = (SystemColors.Window.R + SystemColors.WindowText.R + 1) / 2; 117int g = SystemColors.WindowText.G; 118int b = (SystemColors.Window.B + SystemColors.WindowText.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (7)
585foreColor = SystemColors.GrayText; 598backColor = SystemColors.Highlight; 600foreColor = Application.IsDarkModeEnabled ? SystemColors.ControlText : SystemColors.HighlightText; 605backColor = SystemColors.InactiveBorder; 606foreColor = SystemColors.GrayText; 733foreColor = SystemColors.GrayText;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
159return SystemColors.Window; 454return SystemColors.WindowText;
System\Windows\Forms\Controls\ListView\ListView.cs (7)
106private Color _odCacheForeColor = SystemColors.WindowText; 107private Color _odCacheBackColor = SystemColors.Window; 348get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 835get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 2864if (nmcd->clrText == ColorTranslator.ToWin32(SystemColors.HotTrack)) 4985if (c != SystemColors.Window || Application.IsDarkModeEnabled) 4992if (c != SystemColors.WindowText || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
291return SystemColors.Window; 422return SystemColors.WindowText;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (2)
80return _owner?._listView?.BackColor ?? SystemColors.Window; 173return _owner?._listView?.ForeColor ?? SystemColors.WindowText;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (5)
62private static readonly Color s_defaultTitleBackColor = SystemColors.ActiveCaption; 63private static readonly Color s_defaultTitleForeColor = SystemColors.ActiveCaptionText; 64private static readonly Color s_trailingForeColor = SystemColors.GrayText; 201return SystemColors.Window; 417return SystemColors.WindowText;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (3)
28private static readonly Color s_defaultForeColor = SystemColors.Highlight; 86BackColor = SystemColors.ControlDarkDark; 91ForeColor = SystemColors.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (12)
73private Color _lineColor = SystemInformation.HighContrast ? SystemColors.ControlDarkDark : SystemColors.InactiveBorder; 74private Color _categoryForegroundColor = SystemColors.ControlText; 75private Color _categorySplitterColor = SystemColors.Control; 76private Color _viewBorderColor = SystemColors.ControlDark; 78private Color _selectedItemWithFocusForeColor = Application.IsDarkModeEnabled ? SystemColors.ControlText : SystemColors.HighlightText; 80private 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)
35public Color BorderColor { get; set; } = SystemColors.ControlDark;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
125ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
78DisabledLinkColor = SystemColors.ControlDark
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (3)
18if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 76Color c = (ARGB)SystemColors.Window; 91Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
139BackColor = SystemColors.Window; 140ForeColor = SystemColors.WindowText; 141_grayTextColor = SystemColors.GrayText; 220_dropDownButton.BackColor = SystemColors.Control; 221_dropDownButton.ForeColor = SystemColors.ControlText; 261BackColor = SystemColors.Control, 262ForeColor = SystemColors.ControlText, 383if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) 385return SystemColors.GrayText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
515using Pen pen = new(SystemColors.ControlDark, 1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (2)
49Pen focusPen1 = new(SystemColors.ControlText, penWidth) 54Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3454SystemColors.GrayText,
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
178return SystemColors.Control;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
891TextRenderer.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; 507return SystemColors.WindowText; 955base.BackColor = value ? SystemColors.ControlLight : SystemColors.Window;
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
31if (windowColor != SystemColors.Window)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (32)
116public virtual Color ButtonPressedHighlightBorder => SystemColors.Highlight; 122public virtual Color ButtonCheckedHighlightBorder => SystemColors.Highlight; 178public virtual Color ImageMarginGradientEnd => (_usingSystemColors) ? SystemColors.Control : FromKnownColor(KnownColors.msocbvcrCBGradVertEnd); 233public virtual Color StatusStripBorder => SystemColors.ButtonHighlight; 346SystemColors.Window, 347GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 160), 351SystemColors.Window, 352GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 80), 358rgbTable[KnownColors.ButtonPressedHighlight] = SystemColors.Highlight; 359rgbTable[KnownColors.ButtonCheckedHighlight] = SystemColors.ControlLight; 360rgbTable[KnownColors.ButtonSelectedHighlight] = SystemColors.ControlLight; 371Color buttonFace = SystemColors.ButtonFace; 372Color buttonShadow = SystemColors.ButtonShadow; 373Color highlight = SystemColors.Highlight; 374Color window = SystemColors.Window; 376Color controlText = SystemColors.ControlText; 377Color buttonHighlight = SystemColors.ButtonHighlight; 378Color grayText = SystemColors.GrayText; 379Color highlightText = SystemColors.HighlightText; 380Color windowText = SystemColors.WindowText; 400gradientEnd = SystemColors.ButtonFace; 409rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = SystemColors.ControlLight; 437rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = (lowResolution) ? SystemColors.ControlLight : highlight; 516rgbTable[KnownColors.msocbvcrDocTabBdrDarkMouseOver] = SystemColors.MenuText; 519rgbTable[KnownColors.msocbvcrDocTabBdrLightMouseOver] = SystemColors.MenuText; 521rgbTable[KnownColors.msocbvcrDocTabBdrMouseOver] = SystemColors.MenuText; 546rgbTable[KnownColors.msocbvcrFocuslessHighlightedBkgd] = SystemColors.InactiveCaption; 548rgbTable[KnownColors.msocbvcrFocuslessHighlightedText] = SystemColors.InactiveCaptionText; 655rgbTable[KnownColors.msocbvcrWPInfoTipBkgd] = SystemColors.Info; 656rgbTable[KnownColors.msocbvcrWPInfoTipText] = SystemColors.InfoText;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (3)
48return (comboBox.Enabled) ? SystemColors.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder; 60return SystemColors.ControlDark; 65: SystemColors.Window;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (4)
203arrowColor = Enabled ? SystemColors.HighlightText : SystemColors.ControlDark; 207arrowColor = Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
578Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, ImageMargin, SystemColors.Control));
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (15)
154Color arrowColor = item.Selected && !item.Pressed ? SystemColors.HighlightText : SystemColors.ControlText; 205Color arrowColor = !item.Enabled ? SystemColors.ControlDark 206: item.Selected && !item.Pressed ? SystemColors.HighlightText 207: SystemColors.ControlText; 220e.DefaultTextColor = SystemColors.HighlightText; 222else if (e.TextColor != SystemColors.HighlightText && e.TextColor != SystemColors.ControlText) 227e.DefaultTextColor = SystemColors.HighlightText; 231e.DefaultTextColor = SystemColors.ControlText; 245e.TextColor = SystemColors.HighlightText; 292using Pen p = new(SystemColors.ButtonShadow) 382return SystemColors.Control.ToArgb() == Color.Black.ToArgb(); 468Pen focusPen1 = new(SystemColors.ControlText, penWidth) 473Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
13private Color _textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (7)
715image.MakeTransparent(SystemColors.Control); 952Color textColor = SystemColors.MenuText; 961textColor = SystemColors.HighlightText; 965textColor = SystemColors.MenuText; 1007Color arrowColor = (Selected || Pressed) ? SystemColors.HighlightText : SystemColors.MenuText; 1008arrowColor = (Enabled) ? arrowColor : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
57using Pen p = new(SystemColors.ButtonShadow)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
306DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 530using var controlTextBrush = SystemColors.ControlText.GetCachedSolidBrushScope(); 570borderColor = SystemColors.Highlight; 627borderColor = SystemColors.Highlight; 680e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
868Color 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)
18ForeColor = SystemColors.ControlDark; 304internal override bool ShouldSerializeForeColor() => ForeColor != SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (45)
47Color c when c == SystemColors.Control => Color.FromArgb(45, 45, 45), 48Color c when c == SystemColors.ControlLight => Color.FromArgb(60, 60, 60), 49Color c when c == SystemColors.ControlDark => Color.FromArgb(30, 30, 30), 50Color c when c == SystemColors.ControlText => Color.FromArgb(240, 240, 240), 51Color c when c == SystemColors.ButtonFace => Color.FromArgb(45, 45, 45), 52Color c when c == SystemColors.Highlight => Color.FromArgb(0, 120, 215), 53Color c when c == SystemColors.HighlightText => Color.White, 54Color c when c == SystemColors.Window => Color.FromArgb(32, 32, 32), 55Color c when c == SystemColors.WindowText => Color.FromArgb(240, 240, 240), 56Color c when c == SystemColors.GrayText => Color.FromArgb(153, 153, 153), 57Color c when c == SystemColors.InactiveBorder => Color.FromArgb(70, 70, 70), 58Color c when c == SystemColors.ButtonHighlight => Color.FromArgb(80, 80, 80), 59Color c when c == SystemColors.ButtonShadow => Color.FromArgb(20, 20, 20), 60Color c when c == SystemColors.Menu => Color.FromArgb(45, 45, 45), 61Color c when c == SystemColors.MenuText => Color.FromArgb(240, 240, 240), 139FillBackground(g, bounds, GetDarkModeColor(SystemColors.Menu)); 144FillBackground(g, bounds, GetDarkModeColor(SystemColors.Menu)); 162FillBackground(e.Graphics, bounds, GetDarkModeColor(SystemColors.Control)); 184using var borderPen = GetDarkModePen(SystemColors.ControlDark); 215using var borderPen = GetDarkModePen(SystemColors.ControlDark); 239using var highlightBrush = GetDarkModeBrush(SystemColors.Highlight); 292? GetDarkModeBrush(SystemColors.ControlDark) 293: GetDarkModeBrush(SystemColors.Highlight); 327? GetDarkModeBrush(SystemColors.ControlDark) 328: GetDarkModeBrush(SystemColors.Highlight); 335using var linePen = GetDarkModePen(SystemColors.ControlDark); 348arrowColor: SystemColors.ControlText, 377using var leftPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 382using var rightPen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 387using var leftPen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 392using var rightPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 406using var foreColorPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 411using var darkModePen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 435? GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope() 436: GetDarkModeColor(SystemColors.Highlight).GetCachedSolidBrushScope(); 471? SystemColors.HighlightText 472: SystemColors.ControlText) 521using var darkColorBrush = GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope(); 522using var lightColorBrush = GetDarkModeColor(SystemColors.ControlLight).GetCachedSolidBrushScope(); 567? GetDarkModeColor(SystemColors.HighlightText) 582using var marginColorBrush = GetDarkModeBrush(SystemColors.ControlLight); 596? GetDarkModeColor(SystemColors.HighlightText) 598? GetDarkModeColor(SystemColors.GrayText) 650using var highLightBrush = GetDarkModeBrush(SystemColors.GrayText); 651using var shadowBrush = GetDarkModeBrush(SystemColors.ButtonShadow);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
248FillBackground(g, bounds, SystemColors.ButtonFace); 253? SystemColors.ControlLight 259? SystemColors.Menu 265? SystemColors.MenuBar 278? SystemColors.MenuBar 446Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 515? SystemColors.Highlight 578? SystemColors.ControlText 579: SystemColors.ControlDark; 643ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.Highlight); 644using var brush = SystemColors.Highlight.GetCachedSolidBrushScope(); 722ControlPaint.DrawBorderSimple(g, bounds, SystemColors.Highlight); 862if (vsRenderer is null || (item.BackColor != SystemColors.Control))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (2)
249outerBorderColor = SystemColors.ControlDark; 250innerBorderColor = SystemColors.Control;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
238get => SystemColors.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
195get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 440get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 1883if (c != SystemColors.Window || Application.IsDarkModeEnabled) 1890if (c != SystemColors.WindowText || Application.IsDarkModeEnabled) 2828Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor; 2834ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
583ControlPaint.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)
194BackColor = SystemColors.ControlDark
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (7)
30BackColor = SystemColors.Control; 160savedColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 171PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlDark)); 232(COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control), 233(COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 266COLORREF oldTextColor = PInvokeCore.SetTextColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 267COLORREF 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; 396rgbColors = ShowColor || ShowEffects ? _color : SystemColors.ControlText
System\Windows\Forms\Help\Help.cs (1)
85clrBackground = SystemColors.Window
System\Windows\Forms\MDI\MDIClient.cs (2)
32BackColor = SystemColors.AppWorkspace; 314internal override bool ShouldSerializeBackColor() => BackColor != SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
293public override void ResetBackColor() => BackColor = SystemColors.AppWorkspace; 295internal override bool ShouldSerializeBackColor() => !BackColor.Equals(SystemColors.AppWorkspace); 595Color brushColor = ShouldSerializeForeColor() ? ForeColor : SystemColors.ControlText; 726ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect, SystemColors.ControlText); 746return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.ControlDarkDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (20)
168=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1116if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1132bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 1136using var lightPen = (stockColor ? SystemColors.ControlLightLight : hls.Lighter(1.0f)).GetCachedPenScope(); 1141using var darkPen = (stockColor ? SystemColors.ControlDarkDark : hls.Darker(1.0f)).GetCachedPenScope(); 1154? SystemColors.ControlLightLight 1155: SystemColors.Control).GetCachedPenScope(); 1161using 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); 1693using Pen pen = new(SystemColors.WindowFrame, 1); 2064TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle, SystemColors.GrayText, quality, format); 2142Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark; 2269Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark;
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (9)
29_isSystemColors_Control = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 103return SystemColors.ControlDark; 107return SystemColors.ControlDarkDark; 111ARGB dark = SystemColors.ControlDark; 112ARGB darkDark = SystemColors.ControlDarkDark; 154return SystemColors.ControlLight; 158return SystemColors.ControlLightLight; 162ARGB light = SystemColors.ControlLight; 163ARGB 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)
552return SystemColors.GrayText; 558return ControlPaint.IsDarker(backColor, SystemColors.Control) 560: SystemColors.ControlDark;
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101ControlPaint.DrawBorder(Graphics, Bounds, SystemColors.WindowFrame, ButtonBorderStyle.Solid);
System\Windows\Forms\ToolTip\ToolTip.cs (4)
43private Color _backColor = SystemColors.Info; 44private Color _foreColor = SystemColors.InfoText; 773if (BackColor != SystemColors.Info) 778if (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)
140using (Brush brush = new SolidBrush(SystemColors.ControlLightLight)) 151using Pen pen = new(SystemColors.ControlDark);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
593Color backColor = SystemColors.Window; 594Color textColor = SystemColors.WindowText; 597backColor = SystemColors.Highlight; 598textColor = SystemColors.HighlightText;
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
233TextRenderer.DrawText(pevent, Text, Font, bounds, SystemColors.ControlText, formatFlags);
System\ComponentModel\Design\DesignerActionPanel.cs (10)
120public Color ActiveLinkColor { get; } = SystemColors.HotTrack; 122public Color BorderColor { get; } = SystemColors.ActiveBorder; 172public Color GradientDarkColor { get; } = SystemColors.Control; 174public Color GradientLightColor { get; } = SystemColors.Control; 178public Color LinkColor { get; } = SystemColors.HotTrack; 180public Color SeparatorColor { get; } = SystemColors.ControlDark; 182public Color TitleBarColor { get; } = SystemColors.ActiveCaption; 184public Color TitleBarTextColor { get; } = SystemColors.ActiveCaptionText; 186public Color TitleBarUnselectedColor { get; } = SystemColors.InactiveCaption; 188public Color LabelForeColor { get; } = SystemColors.ControlText;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
112ShowDropDown(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)
22BackColor = SystemColors.Window;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (5)
35ForeColor = 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)
393Color cw = SystemColors.Window; 394Color ct = SystemColors.WindowText;
System\Drawing\Design\ColorEditor.ColorPalette.cs (8)
70BackColor = SystemColors.Control; 386SystemColors.ControlText, 397SystemColors.ControlText, 398SystemColors.Control); 404SystemColors.Control, 2, ButtonBorderStyle.Inset, 405SystemColors.Control, 2, ButtonBorderStyle.Inset, 406SystemColors.Control, 2, ButtonBorderStyle.Inset, 407SystemColors.Control, 2, ButtonBorderStyle.Inset);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
73private Color[] SystemColorValues => _systemColorConstants ??= GetConstants(typeof(SystemColors));
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
110BackColor = SystemColors.Control; 111ForeColor = SystemColors.ControlText;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
184BackColor = SystemColors.Window; 185ForeColor = SystemColors.WindowText; 200BackColor = SystemColors.Control;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53pe.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)
141styleColor = SystemColors.Info; 1406styleColor = SystemColors.Info; 1428selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.HighlightText, Color.Transparent); 1432selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.ControlDarkDark, Color.Transparent); 1445c.ForeColor = SystemColors.HighlightText; 1446c.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)
34BackColor = SystemColors.Control;
System\Windows\Forms\Design\DesignBindingPicker.cs (24)
143BackColor = SystemColors.ControlDark, 151BackColor = SystemColors.Window, 152ForeColor = SystemColors.WindowText, 171BackColor = SystemColors.Window, 172ForeColor = SystemColors.WindowText, 183BackColor = SystemColors.ControlDark, 190BackColor = SystemColors.Window, 191ForeColor = SystemColors.WindowText 237BackColor = SystemColors.Window, 238ForeColor = SystemColors.WindowText, 270BackColor = SystemColors.ControlDark, 278BackColor = SystemColors.Window, 279ForeColor = SystemColors.WindowText, 296BackColor = SystemColors.Window, 297ForeColor = SystemColors.WindowText, 315BackColor = SystemColors.ControlDark, 322BackColor = SystemColors.Window, 323ForeColor = SystemColors.WindowText 344BackColor = SystemColors.Control; 704dataSourceNode.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)
22private static SolidBrush s_hoverBrush = new(Color.FromArgb(alpha: 50, SystemColors.Highlight)); 25new(HatchStyle.Percent50, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark); 28PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 30PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 32PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 34PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 122g.FillRectangle(new SolidBrush(SystemColors.InactiveBorder), 0, 0, s_boxImageSize, s_boxImageSize); 123g.DrawRectangle(new Pen(SystemColors.ControlDarkDark), 0, 0, s_boxImageSize - 1, s_boxImageSize - 1); 167s_hoverBrush = new SolidBrush(Color.FromArgb(50, SystemColors.Highlight)); 170s_selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark); 173s_grabHandleFillBrushPrimary = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 176s_grabHandleFillBrush = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 179s_grabHandlePenPrimary = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 182s_grabHandlePen = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 228Color color = SystemColors.ControlDarkDark; 231color = SystemColors.ControlLight; 398gDest.Clear(SystemColors.Control); 431g.Clear(SystemColors.Control);
System\Windows\Forms\Design\DockEditor.DockUI.cs (3)
187BackColor = SystemColors.Control; 188ForeColor = SystemColors.ControlText; 295BackColor = SystemColors.Control;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
135value = SystemColors.Control; 637Control.BackColor = SystemColors.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
48BackColor = Drawing.SystemColors.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342Color backColor = SystemColors.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
135Color borderColor = SystemColors.Control;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30BackColor = SystemColors.Control
System\Windows\Forms\Design\TabOrder.cs (4)
57_highlightTextBrush = new SolidBrush(SystemColors.HighlightText); 58_highlightPen = new Pen(SystemColors.Highlight); 273textColor = SystemColors.Highlight; 279textColor = SystemColors.HighlightText;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
768textColor = SystemColors.HighlightText; 773textColor = SystemColors.WindowText; 903TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.WindowText, flags);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
384BackColor = SystemColors.Window,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
837ForeColor = SystemColors.WindowText 1767DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.Down)); 1989DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, SystemColors.ControlText, ArrowDirection.Down));
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
284_propertyGrid1.LineColor = SystemColors.ScrollBar;