1155 references to SystemColors
Accessibility_Core_App (3)
CommonControl2.Designer.cs (1)
132this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
ContainerControls2.Designer.cs (1)
290groupBox5.ForeColor = SystemColors.Control;
DataBindingExample.Designer.cs (1)
168this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
206SystemColors.ButtonFace
DesignSurface (1)
MainForm.Designer.cs (1)
74this.splitContainer.Panel1.BackColor = System.Drawing.SystemColors.Window;
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)
71BackColor = System.Drawing.SystemColors.Control;
MS\Internal\Documents\DialogDivider.cs (1)
80new Pen(new SolidBrush(System.Drawing.SystemColors.ControlDark)),
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (4)
137_columnHeaderPanel.BackColor = System.Drawing.SystemColors.Control; 147_listBoxSummary.BackColor = System.Drawing.SystemColors.Window; 164_listboxMainPanel.BackColor = System.Drawing.SystemColors.Info; 174_listboxItemPanel.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
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 (1)
Special\Forwards.cs (1)
18[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.SystemColors))]
System.Drawing.Common.Tests (140)
System\Drawing\ColorTranslatorTests.cs (70)
12yield return (unchecked((int)0x8000000A), SystemColors.ActiveBorder); 13yield return (unchecked((int)0x80000002), SystemColors.ActiveCaption); 14yield return (unchecked((int)0x80000009), SystemColors.ActiveCaptionText); 15yield return (unchecked((int)0x8000000C), SystemColors.AppWorkspace); 16yield return (unchecked((int)0x8000000F), SystemColors.Control); 17yield return (unchecked((int)0x80000010), SystemColors.ControlDark); 18yield return (unchecked((int)0x80000015), SystemColors.ControlDarkDark); 19yield return (unchecked((int)0x80000016), SystemColors.ControlLight); 20yield return (unchecked((int)0x80000014), SystemColors.ControlLightLight); 21yield return (unchecked((int)0x80000012), SystemColors.ControlText); 22yield return (unchecked((int)0x80000001), SystemColors.Desktop); 23yield return (unchecked((int)0x8000001B), SystemColors.GradientActiveCaption); 24yield return (unchecked((int)0x8000001C), SystemColors.GradientInactiveCaption); 25yield return (unchecked((int)0x80000011), SystemColors.GrayText); 26yield return (unchecked((int)0x8000000D), SystemColors.Highlight); 27yield return (unchecked((int)0x8000000E), SystemColors.HighlightText); 28yield return (unchecked((int)0x8000001A), SystemColors.HotTrack); 29yield return (unchecked((int)0x8000000B), SystemColors.InactiveBorder); 30yield return (unchecked((int)0x80000003), SystemColors.InactiveCaption); 31yield return (unchecked((int)0x80000013), SystemColors.InactiveCaptionText); 32yield return (unchecked((int)0x80000018), SystemColors.Info); 33yield return (unchecked((int)0x80000017), SystemColors.InfoText); 34yield return (unchecked((int)0x80000004), SystemColors.Menu); 35yield return (unchecked((int)0x8000001E), SystemColors.MenuBar); 36yield return (unchecked((int)0x8000001D), SystemColors.MenuHighlight); 37yield return (unchecked((int)0x80000007), SystemColors.MenuText); 38yield return (unchecked((int)0x80000000), SystemColors.ScrollBar); 39yield return (unchecked((int)0x80000005), SystemColors.Window); 40yield return (unchecked((int)0x80000006), SystemColors.WindowFrame); 41yield return (unchecked((int)0x80000008), SystemColors.WindowText); 61yield return new object[] { int.MinValue, SystemColors.ScrollBar }; 97yield return new object[] { SystemColors.ButtonFace, unchecked((int)0x8000000F) }; 98yield return new object[] { SystemColors.ButtonHighlight, unchecked((int)0x80000014) }; 99yield return new object[] { SystemColors.ButtonShadow, unchecked((int)0x80000010) }; 111yield return ("activeborder", SystemColors.ActiveBorder); 112yield return ("activecaption", SystemColors.ActiveCaption); 113yield return ("appworkspace", SystemColors.AppWorkspace); 114yield return ("background", SystemColors.Desktop); 115yield return ("buttonface", SystemColors.Control); 116yield return ("buttonhighlight", SystemColors.ControlLightLight); 117yield return ("buttonshadow", SystemColors.ControlDark); 118yield return ("buttontext", SystemColors.ControlText); 119yield return ("captiontext", SystemColors.ActiveCaptionText); 120yield return ("graytext", SystemColors.GrayText); 121yield return ("highlight", SystemColors.Highlight); 122yield return ("highlighttext", SystemColors.HighlightText); 123yield return ("inactiveborder", SystemColors.InactiveBorder); 124yield return ("inactivecaption", SystemColors.InactiveCaption); 125yield return ("inactivecaptiontext", SystemColors.InactiveCaptionText); 126yield return ("infobackground", SystemColors.Info); 127yield return ("infotext", SystemColors.InfoText); 128yield return ("menu", SystemColors.Menu); 129yield return ("menutext", SystemColors.MenuText); 130yield return ("scrollbar", SystemColors.ScrollBar); 131yield return ("window", SystemColors.Window); 132yield return ("windowframe", SystemColors.WindowFrame); 133yield return ("windowtext", SystemColors.WindowText); 134yield return ("threeddarkshadow", SystemColors.ControlDarkDark); 152yield return new object[] { "ActiveBorder", SystemColors.ActiveBorder }; 153yield return new object[] { "ACTIVEBORDER", SystemColors.ActiveBorder }; 178yield return new object[] { "threedface", SystemColors.Control }; 179yield return new object[] { "threedhighlight", SystemColors.ControlLight }; 180yield return new object[] { "threedlightshadow", SystemColors.ControlLightLight }; 245yield return new object[] { SystemColors.ControlLight, "buttonface" }; 246yield return new object[] { SystemColors.GradientActiveCaption, "activecaption" }; 247yield return new object[] { SystemColors.HotTrack, "highlight" }; 248yield return new object[] { SystemColors.MenuHighlight, "highlighttext" }; 249yield return new object[] { SystemColors.GradientInactiveCaption, "inactivecaption" }; 250yield return new object[] { SystemColors.MenuBar, "menu" }; 251yield return new object[] { SystemColors.ButtonShadow, "" };
System\Drawing\Drawing2D\HatchBrushTests.cs (2)
74clone.Color = SystemColors.AppWorkspace; 75Assert.Equal(SystemColors.AppWorkspace, clone.Color);
System\Drawing\SolidBrushTests.cs (2)
45clone.Color = SystemColors.AppWorkspace; 46Assert.Equal(SystemColors.AppWorkspace, clone.Color);
System\Drawing\SystemBrushesTests.cs (33)
10yield return Brush(() => SystemBrushes.ActiveBorder, SystemColors.ActiveBorder); 11yield return Brush(() => SystemBrushes.ActiveCaption, SystemColors.ActiveCaption); 12yield return Brush(() => SystemBrushes.ActiveCaptionText, SystemColors.ActiveCaptionText); 13yield return Brush(() => SystemBrushes.AppWorkspace, SystemColors.AppWorkspace); 14yield return Brush(() => SystemBrushes.ButtonFace, SystemColors.ButtonFace); 15yield return Brush(() => SystemBrushes.ButtonHighlight, SystemColors.ButtonHighlight); 16yield return Brush(() => SystemBrushes.ButtonShadow, SystemColors.ButtonShadow); 17yield return Brush(() => SystemBrushes.Control, SystemColors.Control); 18yield return Brush(() => SystemBrushes.ControlDark, SystemColors.ControlDark); 19yield return Brush(() => SystemBrushes.ControlDarkDark, SystemColors.ControlDarkDark); 20yield return Brush(() => SystemBrushes.ControlLight, SystemColors.ControlLight); 21yield return Brush(() => SystemBrushes.ControlLightLight, SystemColors.ControlLightLight); 22yield return Brush(() => SystemBrushes.ControlText, SystemColors.ControlText); 23yield return Brush(() => SystemBrushes.Desktop, SystemColors.Desktop); 24yield return Brush(() => SystemBrushes.GradientActiveCaption, SystemColors.GradientActiveCaption); 25yield return Brush(() => SystemBrushes.GradientInactiveCaption, SystemColors.GradientInactiveCaption); 26yield return Brush(() => SystemBrushes.GrayText, SystemColors.GrayText); 27yield return Brush(() => SystemBrushes.Highlight, SystemColors.Highlight); 28yield return Brush(() => SystemBrushes.HighlightText, SystemColors.HighlightText); 29yield return Brush(() => SystemBrushes.HotTrack, SystemColors.HotTrack); 30yield return Brush(() => SystemBrushes.InactiveBorder, SystemColors.InactiveBorder); 31yield return Brush(() => SystemBrushes.InactiveCaption, SystemColors.InactiveCaption); 32yield return Brush(() => SystemBrushes.InactiveCaptionText, SystemColors.InactiveCaptionText); 33yield return Brush(() => SystemBrushes.Info, SystemColors.Info); 34yield return Brush(() => SystemBrushes.InfoText, SystemColors.InfoText); 35yield return Brush(() => SystemBrushes.Menu, SystemColors.Menu); 36yield return Brush(() => SystemBrushes.MenuBar, SystemColors.MenuBar); 37yield return Brush(() => SystemBrushes.MenuHighlight, SystemColors.MenuHighlight); 38yield return Brush(() => SystemBrushes.MenuText, SystemColors.MenuText); 39yield return Brush(() => SystemBrushes.ScrollBar, SystemColors.ScrollBar); 40yield return Brush(() => SystemBrushes.Window, SystemColors.Window); 41yield return Brush(() => SystemBrushes.WindowFrame, SystemColors.WindowFrame); 42yield return Brush(() => SystemBrushes.WindowText, SystemColors.WindowText);
System\Drawing\SystemPensTest.cs (33)
12yield return Pen(() => SystemPens.ActiveBorder, SystemColors.ActiveBorder); 13yield return Pen(() => SystemPens.ActiveCaption, SystemColors.ActiveCaption); 14yield return Pen(() => SystemPens.ActiveCaptionText, SystemColors.ActiveCaptionText); 15yield return Pen(() => SystemPens.AppWorkspace, SystemColors.AppWorkspace); 16yield return Pen(() => SystemPens.ButtonFace, SystemColors.ButtonFace); 17yield return Pen(() => SystemPens.ButtonHighlight, SystemColors.ButtonHighlight); 18yield return Pen(() => SystemPens.ButtonShadow, SystemColors.ButtonShadow); 19yield return Pen(() => SystemPens.Control, SystemColors.Control); 20yield return Pen(() => SystemPens.ControlDark, SystemColors.ControlDark); 21yield return Pen(() => SystemPens.ControlDarkDark, SystemColors.ControlDarkDark); 22yield return Pen(() => SystemPens.ControlLight, SystemColors.ControlLight); 23yield return Pen(() => SystemPens.ControlLightLight, SystemColors.ControlLightLight); 24yield return Pen(() => SystemPens.ControlText, SystemColors.ControlText); 25yield return Pen(() => SystemPens.Desktop, SystemColors.Desktop); 26yield return Pen(() => SystemPens.GradientActiveCaption, SystemColors.GradientActiveCaption); 27yield return Pen(() => SystemPens.GradientInactiveCaption, SystemColors.GradientInactiveCaption); 28yield return Pen(() => SystemPens.GrayText, SystemColors.GrayText); 29yield return Pen(() => SystemPens.Highlight, SystemColors.Highlight); 30yield return Pen(() => SystemPens.HighlightText, SystemColors.HighlightText); 31yield return Pen(() => SystemPens.HotTrack, SystemColors.HotTrack); 32yield return Pen(() => SystemPens.InactiveBorder, SystemColors.InactiveBorder); 33yield return Pen(() => SystemPens.InactiveCaption, SystemColors.InactiveCaption); 34yield return Pen(() => SystemPens.InactiveCaptionText, SystemColors.InactiveCaptionText); 35yield return Pen(() => SystemPens.Info, SystemColors.Info); 36yield return Pen(() => SystemPens.InfoText, SystemColors.InfoText); 37yield return Pen(() => SystemPens.Menu, SystemColors.Menu); 38yield return Pen(() => SystemPens.MenuBar, SystemColors.MenuBar); 39yield return Pen(() => SystemPens.MenuHighlight, SystemColors.MenuHighlight); 40yield return Pen(() => SystemPens.MenuText, SystemColors.MenuText); 41yield return Pen(() => SystemPens.ScrollBar, SystemColors.ScrollBar); 42yield return Pen(() => SystemPens.Window, SystemColors.Window); 43yield return Pen(() => SystemPens.WindowFrame, SystemColors.WindowFrame); 44yield return Pen(() => SystemPens.WindowText, SystemColors.WindowText);
System.Drawing.Primitives (3)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
18FillWithProperties(colors, typeof(SystemColors));
System\Drawing\KnownColorTable.cs (1)
543return (!SystemColors.s_useAlternativeColorSet)
System\Drawing\SystemColors.cs (1)
57/// the alternative color set (as returned by <see cref="SystemColors"/> statics or
System.Windows.Forms (349)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3366qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText); 3367qaContainer.colorBack = GetOleColorFromColor(SystemColors.Window);
System\Windows\Forms\Application.cs (2)
309bool useAlternateColorSet = SystemColors.UseAlternativeColorSet; 314SystemColors.UseAlternativeColorSet = darkModeEnabled;
System\Windows\Forms\Control.cs (4)
1546public static Color DefaultBackColor => SystemColors.Control; 1577public static Color DefaultForeColor => SystemColors.ControlText; 1626color = SystemColors.Control; 8160using CreateBrushScope hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1265get => (_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)
105if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 131bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 146: stockColor ? SystemColors.ControlLightLight : colors.Highlight); 155: stockColor ? SystemColors.ControlDarkDark : colors.ButtonShadowDark); 164? SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.Control 180: stockColor ? SystemColors.ControlDark : colors.ButtonShadow); 223colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor() 224? SystemColors.ControlLight 234bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 249: stockColor ? SystemColors.ControlLightLight : colors.Highlight); 258: stockColor ? SystemColors.ControlDarkDark : colors.ButtonShadowDark); 273: SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.Control); 284: stockColor ? SystemColors.ControlDark : colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (4)
67PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor); 75PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText, drawFocus: false); 244PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor); 256IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText,
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\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 (4)
258get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 538get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 3453using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.Control); 3732&& !(SystemInformation.HighContrast && BackColor == SystemColors.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
190=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 196return SystemColors.ControlDark; 199return focused ? SystemColors.ControlDark : SystemColors.Window; 203=> comboBox.Enabled ? comboBox.BackColor : SystemColors.Control;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
35if (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; 2080private static Color DefaultGridColor => SystemColors.WindowFrame;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
5675using var brush = SystemColors.HotTrack.GetCachedSolidBrushScope(); 16699ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(), SystemColors.ActiveCaptionText); 19313using var pen = SystemColors.ControlText.GetCachedPenScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
752SystemColors.Control, 788using CreateBrushScope hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
1433int darkDistance = ColorDistance(baseline, SystemColors.ControlDark); 1434int lightDistance = ColorDistance(baseline, SystemColors.ControlLightLight); 1443: SystemColors.ControlDark; 1447: SystemColors.ControlLightLight; 1453: SystemColors.WindowFrame; 1457: SystemColors.ControlLightLight; 3155DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3156_ => SystemColors.ControlDark, 3190DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3191_ => 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; 495: SystemColors.WindowText;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
547Color 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 (6)
585foreColor = SystemColors.GrayText; 598backColor = SystemColors.Highlight; 599foreColor = SystemColors.HighlightText; 603backColor = SystemColors.InactiveBorder; 604foreColor = SystemColors.GrayText; 731foreColor = SystemColors.GrayText;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
163return SystemColors.Window; 456return 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; 833get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 2850if (nmcd->clrText == ColorTranslator.ToWin32(SystemColors.HotTrack)) 4935if (c != SystemColors.Window || Application.IsDarkModeEnabled) 4942if (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; 205return SystemColors.Window; 421return SystemColors.WindowText;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
28private static readonly Color s_defaultForeColor = SystemColors.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
73private Color _lineColor = SystemInformation.HighContrast ? SystemColors.ControlDarkDark : SystemColors.InactiveBorder; 74private Color _categoryForegroundColor = SystemColors.ControlText; 75private Color _categorySplitterColor = SystemColors.Control; 76private Color _viewBorderColor = SystemColors.ControlDark; 77private Color _selectedItemWithFocusForeColor = SystemColors.HighlightText; 78private Color _selectedItemWithFocusBackColor = SystemColors.Highlight; 214_helpPane.BackColor = SystemColors.Control; 215_helpPane.ForeColor = SystemColors.ControlText; 3700=> _commandsPane.SetColors(SystemColors.Control, SystemColors.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
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) 75Color c = (ARGB)SystemColors.Window; 90Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
138BackColor = SystemColors.Window; 139ForeColor = SystemColors.WindowText; 140_grayTextColor = SystemColors.GrayText; 208_dropDownButton.BackColor = SystemColors.Control; 209_dropDownButton.ForeColor = SystemColors.ControlText; 244BackColor = SystemColors.Control, 245ForeColor = SystemColors.ControlText, 360if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) 362return 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\TabControl\TabControl.cs (1)
177return SystemColors.Control;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
910TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle, SystemColors.GrayText, TextRenderer.DefaultQuality, flags);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
292return SystemColors.Control; 296return SystemColors.Window; 506return SystemColors.WindowText;
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)
568Renderer.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); 955Color textColor = SystemColors.MenuText; 964textColor = SystemColors.HighlightText; 968textColor = SystemColors.MenuText; 1010Color arrowColor = (Selected || Pressed) ? SystemColors.HighlightText : SystemColors.MenuText; 1011arrowColor = (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 (5)
307DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 571borderColor = SystemColors.Highlight; 628borderColor = SystemColors.Highlight; 681e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
835Color backgroundColor = e.Item.Selected ? SystemColors.Highlight : e.Item.BackColor; 872textColor = (item is not null && item.Enabled) ? textColor : SystemColors.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (4)
65_backColor = SystemColors.Control; 77_backColor = SystemColors.Menu; 81_backColor = SystemColors.MenuBar; 85_backColor = SystemColors.Control;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
18ForeColor = SystemColors.ControlDark; 304internal override bool ShouldSerializeForeColor() => ForeColor != SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
202FillBackground(g, bounds, SystemColors.ButtonFace); 206FillBackground(g, bounds, (toolStrip is ToolStripDropDown) ? SystemColors.ControlLight : e.BackColor); 211e.BackColor : SystemColors.Menu); 216e.BackColor : SystemColors.MenuBar); 227e.BackColor : SystemColors.MenuBar); 393Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 462? SystemColors.Highlight 524Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 586ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.Highlight); 587using var brush = SystemColors.Highlight.GetCachedSolidBrushScope(); 663ControlPaint.DrawBorderSimple(g, bounds, SystemColors.Highlight); 803if (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)
240get => SystemColors.WindowText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
198get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 442get => ShouldSerializeForeColor() ? base.ForeColor : SystemColors.WindowText; 1885if (c != SystemColors.Window || Application.IsDarkModeEnabled) 1892if (c != SystemColors.WindowText || Application.IsDarkModeEnabled) 2841Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor; 2847ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
585ControlPaint.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)
36BackColor = SystemColors.AppWorkspace; 318internal 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); 595using var brush = SystemColors.ControlText.GetCachedSolidBrushScope(); 720ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect, SystemColors.ControlText); 740return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.ControlDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (20)
140=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1084if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1100bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 1104using var lightPen = (stockColor ? SystemColors.ControlLightLight : hls.Lighter(1.0f)).GetCachedPenScope(); 1109using var darkPen = (stockColor ? SystemColors.ControlDarkDark : hls.Darker(1.0f)).GetCachedPenScope(); 1122? SystemColors.ControlLightLight 1123: SystemColors.Control).GetCachedPenScope(); 1129using var bottomRightPen = (stockColor ? SystemColors.ControlDark : hls.Darker(0.5f)).GetCachedPenScope(); 1327? (SystemInformation.HighContrast ? SystemColors.GrayText : SystemColors.ControlDark) 1328: SystemColors.ControlText; 1398=> DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control); 1668using Pen pen = new(SystemColors.WindowFrame, 1); 2004TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle, SystemColors.GrayText, quality, format); 2082Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark; 2212Color 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 (116)
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)
579Color backColor = SystemColors.Window; 580Color textColor = SystemColors.WindowText; 583backColor = SystemColors.Highlight; 584textColor = 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)
177BackColor = SystemColors.Window; 178ForeColor = SystemColors.WindowText; 193BackColor = 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)
144styleColor = SystemColors.Info; 1421styleColor = SystemColors.Info; 1443selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.HighlightText, Color.Transparent); 1447selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.ControlDarkDark, Color.Transparent); 1460c.ForeColor = SystemColors.HighlightText; 1461c.BackColor = SystemColors.Highlight;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
143_cellStyleProperties.LineColor = Drawing.SystemColors.ScrollBar;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
580_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; 708dataSourceNode.ForeColor = SystemColors.GrayText; 1584_helpTextCtrl.BackColor = SystemColors.Info; 1585_helpTextCtrl.ForeColor = SystemColors.InfoText; 1589_helpTextCtrl.BackColor = SystemColors.Window; 1590_helpTextCtrl.ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\DesignerFrame.cs (1)
274_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)
138value = SystemColors.Control; 680Control.BackColor = SystemColors.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
50BackColor = Drawing.SystemColors.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342Color backColor = SystemColors.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
138Color 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); 276textColor = SystemColors.Highlight; 282textColor = SystemColors.HighlightText;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
393BackColor = SystemColors.Window,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
879ForeColor = SystemColors.WindowText 1815DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.Down)); 2037DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, SystemColors.ControlText, ArrowDirection.Down));
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
284_propertyGrid1.LineColor = SystemColors.ScrollBar;
System.Windows.Forms.Tests (493)
NumericUpDownTests.cs (1)
90State.Pen(1, SystemColors.Control, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ApplicationTests.cs (3)
166Assert.False(SystemColors.UseAlternativeColorSet); 171Assert.True(SystemColors.UseAlternativeColorSet); 176Assert.False(SystemColors.UseAlternativeColorSet ^ systemColorMode == SystemColorMode.Dark);
System\Windows\Forms\ButtonRenderingTests.cs (16)
48State.PenColor(SystemColors.ControlLightLight)), 51State.PenColor(SystemColors.ControlLightLight)), 54State.PenColor(SystemColors.ControlDarkDark)), 57State.PenColor(SystemColors.ControlDarkDark)), 60State.PenColor(SystemColors.Control)), 63State.PenColor(SystemColors.Control)), 66State.PenColor(SystemColors.ControlDark)), 69State.PenColor(SystemColors.ControlDark))); 134State.PenColor(SystemColors.ControlLightLight)), 137State.PenColor(SystemColors.ControlLightLight)), 140State.PenColor(SystemColors.ControlDarkDark)), 143State.PenColor(SystemColors.ControlDarkDark)), 146State.PenColor(SystemColors.Control)), 149State.PenColor(SystemColors.Control)), 152State.PenColor(SystemColors.ControlDark)), 155State.PenColor(SystemColors.ControlDark)));
System\Windows\Forms\ComboBoxTests.cs (12)
34Assert.Equal(SystemColors.Window, control.BackColor); 81Assert.Equal(SystemColors.WindowText, control.ForeColor); 165yield return new object[] { Color.Empty, SystemColors.Window }; 188yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 266Assert.Equal(SystemColors.Window, control.BackColor); 288Assert.Equal(SystemColors.Window, control.BackColor); 304Assert.Equal(SystemColors.Window, control.BackColor); 1047yield return new object[] { Color.Empty, SystemColors.WindowText }; 1073yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1134Assert.Equal(SystemColors.WindowText, control.ForeColor); 1156Assert.Equal(SystemColors.WindowText, control.ForeColor); 1172Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ControlPaintTests.cs (123)
299yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 35, 35, 35) }; 300yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 53, 53, 53) }; 301yield return new object[] { SystemColors.Control, Color.FromArgb(255, 133, 133, 133) }; 302yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 75, 75, 75) }; 303yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 85, 85, 85) }; 332yield return new object[] { SystemColors.ControlDarkDark, -1.5f, Color.FromArgb(255, 175, 175, 175) }; 333yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 9, 9, 9) }; 334yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 242, 242, 242) }; 335yield return new object[] { SystemColors.ControlLight, -1.5f, Color.FromArgb(255, 121, 121, 121) }; 336yield return new object[] { SystemColors.ControlLightLight, -1.5f, Color.FromArgb(255, 169, 169, 169) }; 352yield return new object[] { SystemColors.ControlDarkDark, -1f, Color.FromArgb(255, 140, 140, 140) }; 353yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 212, 212, 212) }; 354yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 215, 215, 215) }; 355yield return new object[] { SystemColors.ControlLight, -1f, Color.FromArgb(255, 45, 45, 45) }; 356yield return new object[] { SystemColors.ControlLightLight, -1f, Color.FromArgb(255, 84, 84, 84) }; 372yield return new object[] { SystemColors.ControlDarkDark, -0.5f, Color.FromArgb(255, 105, 105, 105) }; 373yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 159, 159, 159) }; 374yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 187, 187, 187) }; 375yield return new object[] { SystemColors.ControlLight, -0.5f, Color.FromArgb(255, 226, 226, 226) }; 376yield return new object[] { SystemColors.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) }; 392yield return new object[] { SystemColors.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) }; 393yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 132, 132, 132) }; 394yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 173, 173, 173) }; 395yield return new object[] { SystemColors.ControlLight, -0.25f, Color.FromArgb(255, 188, 188, 188) }; 396yield return new object[] { SystemColors.ControlLightLight, -0.25f, Color.FromArgb(255, 212, 212, 212) }; 412yield return new object[] { SystemColors.ControlDarkDark, 0f, Color.FromArgb(255, 70, 70, 70) }; 413yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 106, 106, 106) }; 414yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlDark }; 415yield return new object[] { SystemColors.ControlLight, 0f, Color.FromArgb(255, 150, 150, 150) }; 416yield return new object[] { SystemColors.ControlLightLight, 0f, Color.FromArgb(255, 170, 170, 170) }; 432yield return new object[] { SystemColors.ControlDarkDark, 0.25f, Color.FromArgb(255, 53, 53, 53) }; 433yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 79, 79, 79) }; 434yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 147, 147, 147) }; 435yield return new object[] { SystemColors.ControlLight, 0.25f, Color.FromArgb(255, 113, 113, 113) }; 436yield return new object[] { SystemColors.ControlLightLight, 0.25f, Color.FromArgb(255, 127, 127, 127) }; 452yield return new object[] { SystemColors.ControlDarkDark, 0.5f, Color.FromArgb(255, 35, 35, 35) }; 453yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 53, 53, 53) }; 454yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 133, 133, 133) }; 455yield return new object[] { SystemColors.ControlLight, 0.5f, Color.FromArgb(255, 75, 75, 75) }; 456yield return new object[] { SystemColors.ControlLightLight, 0.5f, Color.FromArgb(255, 85, 85, 85) }; 472yield return new object[] { SystemColors.ControlDarkDark, 1f, Color.FromArgb(255, 0, 0, 0) }; 473yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 0, 0, 0) }; 474yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlDarkDark }; 475yield return new object[] { SystemColors.ControlLight, 1f, Color.FromArgb(255, 0, 0, 0) }; 476yield return new object[] { SystemColors.ControlLightLight, 1f, Color.FromArgb(255, 0, 0, 0) }; 492yield return new object[] { SystemColors.ControlDarkDark, 1.5f, Color.FromArgb(255, 221, 221, 221) }; 493yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 203, 203, 203) }; 494yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 78, 78, 78) }; 495yield return new object[] { SystemColors.ControlLight, 1.5f, Color.FromArgb(255, 181, 181, 181) }; 524yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 0, 0, 0) }; 525yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 0, 0, 0) }; 526yield return new object[] { SystemColors.Control, SystemColors.ControlDarkDark }; 527yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 0, 0, 0) }; 528yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 0, 0, 0) }; 545yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlLight, style }; 546yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 547yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1683yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlLight, style }; 1684yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 1685yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1712yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlLight }; 1713yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.Control }; 1714yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlDark }; 2063yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 142, 142, 142) }; 2064yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 183, 183, 183) }; 2065yield return new object[] { SystemColors.Control, Color.FromArgb(255, 241, 241, 241) }; 2066yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 233, 233, 233) }; 2067yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 255, 255, 255) }; 2096yield return new object[] { SystemColors.ControlDarkDark, -1.5f, Color.FromArgb(255, 249, 249, 249) }; 2097yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 89, 89, 89) }; 2098yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 185, 185, 185) }; 2099yield return new object[] { SystemColors.ControlLight, -1.5f, Color.FromArgb(255, 207, 207, 207) }; 2100yield return new object[] { SystemColors.ControlLightLight, -1.5f, Color.FromArgb(255, 255, 255, 255) }; 2116yield return new object[] { SystemColors.ControlDarkDark, -1f, Color.FromArgb(255, 29, 29, 29) }; 2117yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 112, 112, 112) }; 2118yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 199, 199, 199) }; 2119yield return new object[] { SystemColors.ControlLight, -1f, Color.FromArgb(255, 213, 213, 213) }; 2120yield return new object[] { SystemColors.ControlLightLight, -1f, Color.FromArgb(255, 255, 255, 255) }; 2136yield return new object[] { SystemColors.ControlDarkDark, -0.5f, Color.FromArgb(255, 68, 68, 68) }; 2137yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 137, 137, 137) }; 2138yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 213, 213, 213) }; 2139yield return new object[] { SystemColors.ControlLight, -0.5f, Color.FromArgb(255, 221, 221, 221) }; 2140yield return new object[] { SystemColors.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) }; 2156yield return new object[] { SystemColors.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) }; 2157yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 148, 148, 148) }; 2158yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 220, 220, 220) }; 2159yield return new object[] { SystemColors.ControlLight, -0.25f, Color.FromArgb(255, 224, 224, 224) }; 2160yield return new object[] { SystemColors.ControlLightLight, -0.25f, Color.FromArgb(255, 255, 255, 255) }; 2176yield return new object[] { SystemColors.ControlDarkDark, 0f, Color.FromArgb(255, 105, 105, 105) }; 2177yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 160, 160, 160) }; 2178yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlLight }; 2179yield return new object[] { SystemColors.ControlLight, 0f, Color.FromArgb(255, 227, 227, 227) }; 2180yield return new object[] { SystemColors.ControlLightLight, 0f, Color.FromArgb(255, 255, 255, 255) }; 2196yield return new object[] { SystemColors.ControlDarkDark, 0.25f, Color.FromArgb(255, 123, 123, 123) }; 2197yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 172, 172, 172) }; 2198yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 234, 234, 234) }; 2199yield return new object[] { SystemColors.ControlLight, 0.25f, Color.FromArgb(255, 230, 230, 230) }; 2200yield return new object[] { SystemColors.ControlLightLight, 0.25f, Color.FromArgb(255, 255, 255, 255) }; 2216yield return new object[] { SystemColors.ControlDarkDark, 0.5f, Color.FromArgb(255, 142, 142, 142) }; 2217yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 183, 183, 183) }; 2218yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 241, 241, 241) }; 2219yield return new object[] { SystemColors.ControlLight, 0.5f, Color.FromArgb(255, 233, 233, 233) }; 2220yield return new object[] { SystemColors.ControlLightLight, 0.5f, Color.FromArgb(255, 255, 255, 255) }; 2236yield return new object[] { SystemColors.ControlDarkDark, 1f, Color.FromArgb(255, 180, 180, 180) }; 2237yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 208, 208, 208) }; 2238yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlLightLight }; 2239yield return new object[] { SystemColors.ControlLight, 1f, Color.FromArgb(255, 241, 241, 241) }; 2240yield return new object[] { SystemColors.ControlLightLight, 1f, Color.FromArgb(255, 255, 255, 255) }; 2256yield return new object[] { SystemColors.ControlDarkDark, 1.5f, Color.FromArgb(255, 217, 217, 217) }; 2257yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 231, 231, 231) }; 2258yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 13, 13, 13) }; 2259yield return new object[] { SystemColors.ControlLight, 1.5f, Color.FromArgb(255, 247, 247, 247) }; 2288yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 180, 180, 180) }; 2289yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 208, 208, 208) }; 2290yield return new object[] { SystemColors.Control, SystemColors.ControlLightLight }; 2291yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 241, 241, 241) }; 2292yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 255, 255, 255) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (18)
101ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Inset); 118State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 124State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 130State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 136State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 142State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 148State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 157State.Pen(16, SystemColors.ControlLight, penStyle), 163State.Pen(16, SystemColors.ControlLight, penStyle), 250ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Outset); 269State.Pen(16, SystemColors.ControlLightLight, penStyle), 275State.Pen(16, SystemColors.ControlLightLight, penStyle), 281State.Pen(16, SystemColors.ControlDarkDark, penStyle), 287State.Pen(16, SystemColors.ControlDarkDark, penStyle), 293State.Pen(16, SystemColors.Control, penStyle), 299State.Pen(16, SystemColors.Control, penStyle), 305State.Pen(16, SystemColors.ControlDark, penStyle), 311State.Pen(16, SystemColors.ControlDark, penStyle),
System\Windows\Forms\ControlTests.cs (2)
481Assert.Equal(SystemColors.Control, Control.DefaultBackColor); 487Assert.Equal(SystemColors.ControlText, Control.DefaultForeColor);
System\Windows\Forms\DataGridViewTests.cs (3)
2338BackColor = SystemColors.Info, 2340SelectionBackColor = SystemColors.Highlight, 2341SelectionForeColor = SystemColors.HighlightText,
System\Windows\Forms\DataGridViewTests.Rendering.cs (6)
57State.Brush(SystemColors.ButtonShadow, BRUSH_STYLE.BS_SOLID), 88State.Brush(SystemColors.ButtonHighlight, BRUSH_STYLE.BS_SOLID), 94State.Pen(16, SystemColors.Desktop, penStyle), 123BackColor = SystemColors.Info, 125SelectionBackColor = SystemColors.Highlight, 126SelectionForeColor = SystemColors.HighlightText,
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (41)
33Assert.Equal(SystemColors.Window, control.BackColor); 78Assert.Equal(SystemColors.WindowText, control.ForeColor); 546yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 572null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 581null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 590null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 599null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 608null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 617null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 627null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 636null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 645null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 654null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 663null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 672null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 682null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 691null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 700null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 709null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 718null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 727null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false 755yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 764yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.Left, false }; 781null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 790null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 799null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 808null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 817null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 826null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 836null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 845null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 854null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 863null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 872null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 881null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 891null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 900null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 909null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 918null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 927null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 936null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false
System\Windows\Forms\DateTimePickerTests.cs (6)
31Assert.Equal(SystemColors.Window, control.BackColor); 39Assert.Equal(SystemColors.Window, control.CalendarMonthBackground); 40Assert.Equal(SystemColors.ActiveCaption, control.CalendarTitleBackColor); 41Assert.Equal(SystemColors.ActiveCaptionText, control.CalendarTitleForeColor); 42Assert.Equal(SystemColors.GrayText, control.CalendarTrailingForeColor); 78Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DomainUpDownTests.cs (2)
43_sub.BackColor.Should().Be(SystemColors.Window); 100_sub.ForeColor.Should().Be(SystemColors.WindowText);
System\Windows\Forms\DrawItemEventArgsTests.cs (12)
13yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, SystemColors.HighlightText, SystemColors.Highlight }; 14yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 15yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, SystemColors.HighlightText, SystemColors.Highlight }; 16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window }; 58Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.HighlightText : foreColor, e.ForeColor); 59Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : backColor, e.BackColor);
System\Windows\Forms\FontDialogTests.cs (2)
168yield return new object[] { SystemColors.ControlText, SystemColors.ControlText };
System\Windows\Forms\ListBoxTests.cs (18)
27Assert.Equal(SystemColors.Window, control.BackColor); 73Assert.Equal(SystemColors.WindowText, control.ForeColor); 349yield return new object[] { Color.Empty, SystemColors.Window }; 372yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 430Assert.Equal(SystemColors.Window, control.BackColor); 452Assert.Equal(SystemColors.Window, control.BackColor); 468Assert.Equal(SystemColors.Window, control.BackColor); 1240yield return new object[] { Color.Empty, SystemColors.WindowText }; 1266yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1327Assert.Equal(SystemColors.WindowText, control.ForeColor); 1349Assert.Equal(SystemColors.WindowText, control.ForeColor); 1365Assert.Equal(SystemColors.WindowText, control.ForeColor); 5978Assert.Equal(SystemColors.Window, control.BackColor); 5983Assert.Equal(SystemColors.Window, control.BackColor); 5987Assert.Equal(SystemColors.Window, control.BackColor); 5997Assert.Equal(SystemColors.WindowText, control.ForeColor); 6002Assert.Equal(SystemColors.WindowText, control.ForeColor); 6006Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (64)
16Assert.Equal(SystemColors.Window, item.BackColor); 21Assert.Equal(SystemColors.WindowText, item.ForeColor); 44yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 45yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 46yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 82yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 83yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 120yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 121yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 158yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 159yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 206Assert.Equal(SystemColors.Window, item.BackColor); 211Assert.Equal(SystemColors.WindowText, item.ForeColor); 243Assert.Equal(SystemColors.Window, item.BackColor); 248Assert.Equal(SystemColors.WindowText, item.ForeColor); 281Assert.Equal(SystemColors.Window, item.BackColor); 286Assert.Equal(SystemColors.WindowText, item.ForeColor); 319Assert.Equal(SystemColors.Window, item.BackColor); 324Assert.Equal(SystemColors.WindowText, item.ForeColor); 356Assert.Equal(SystemColors.Window, item.BackColor); 361Assert.Equal(SystemColors.WindowText, item.ForeColor); 394Assert.Equal(SystemColors.Window, item.BackColor); 399Assert.Equal(SystemColors.WindowText, item.ForeColor); 432Assert.Equal(SystemColors.Window, item.BackColor); 437Assert.Equal(SystemColors.WindowText, item.ForeColor); 469Assert.Equal(SystemColors.Window, item.BackColor); 474Assert.Equal(SystemColors.WindowText, item.ForeColor); 507Assert.Equal(SystemColors.Window, item.BackColor); 512Assert.Equal(SystemColors.WindowText, item.ForeColor); 545Assert.Equal(SystemColors.Window, item.BackColor); 550Assert.Equal(SystemColors.WindowText, item.ForeColor); 583Assert.Equal(SystemColors.Window, item.BackColor); 588Assert.Equal(SystemColors.WindowText, item.ForeColor); 620Assert.Equal(SystemColors.Window, item.BackColor); 625Assert.Equal(SystemColors.WindowText, item.ForeColor); 658Assert.Equal(SystemColors.Window, item.BackColor); 663Assert.Equal(SystemColors.WindowText, item.ForeColor); 696Assert.Equal(SystemColors.Window, item.BackColor); 701Assert.Equal(SystemColors.WindowText, item.ForeColor); 733Assert.Equal(SystemColors.Window, item.BackColor); 738Assert.Equal(SystemColors.WindowText, item.ForeColor); 772Assert.Equal(SystemColors.Window, item.BackColor); 777Assert.Equal(SystemColors.WindowText, item.ForeColor); 802Assert.Equal(SystemColors.Window, item.BackColor); 807Assert.Equal(SystemColors.WindowText, item.ForeColor); 849yield return new object[] { Color.Empty, SystemColors.Window }; 868Assert.Equal(SystemColors.Window, item.BackColor); 904yield return new object[] { Color.Empty, SystemColors.WindowText }; 925Assert.Equal(SystemColors.WindowText, item.ForeColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (4)
258yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 388yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (25)
17Assert.Equal(SystemColors.Window, subItem.BackColor); 20Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 44Assert.Equal(SystemColors.Window, subItem.BackColor); 47Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 55yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 94Assert.Equal(SystemColors.Window, subItem.BackColor); 105Assert.Equal(SystemColors.Window, subItem.BackColor); 109Assert.Equal(SystemColors.Window, subItem.BackColor); 130Assert.Equal(SystemColors.Window, subItem.BackColor); 136yield return new object[] { Color.Empty, SystemColors.Window }; 230Assert.Equal(SystemColors.Window, subItem.BackColor); 343Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 354Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 358Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 379Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 384yield return new object[] { Color.Empty, SystemColors.WindowText }; 543Assert.Equal(SystemColors.Window, subItem.BackColor); 545Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 548Assert.Equal(SystemColors.Window, subItem.BackColor); 550Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 560Assert.Equal(SystemColors.Window, subItem.BackColor); 562Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 565Assert.Equal(SystemColors.Window, subItem.BackColor); 567Assert.Equal(SystemColors.WindowText, subItem.ForeColor);
System\Windows\Forms\ListViewTests.cs (8)
33Assert.Equal(SystemColors.Window, control.BackColor); 81Assert.Equal(SystemColors.WindowText, control.ForeColor); 452yield return new object[] { Color.Empty, SystemColors.Window }; 475yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 543Assert.Equal(SystemColors.Window, control.BackColor); 1308yield return new object[] { Color.Empty, SystemColors.WindowText }; 1334yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1405Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (1)
26Assert.Equal(SystemColors.AppWorkspace, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (11)
30Assert.Equal(SystemColors.Window, control.BackColor); 83Assert.Equal(SystemColors.WindowText, control.ForeColor); 131Assert.Equal(SystemColors.ActiveCaption, control.TitleBackColor); 132Assert.Equal(SystemColors.ActiveCaptionText, control.TitleForeColor); 137Assert.Equal(SystemColors.GrayText, control.TrailingForeColor); 281yield return new object[] { Color.Empty, SystemColors.Window }; 304yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 362Assert.Equal(SystemColors.Window, control.BackColor); 921yield return new object[] { Color.Empty, SystemColors.WindowText }; 947yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1008Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ProgressBarTests.cs (6)
63Assert.Equal(SystemColors.Highlight, control.ForeColor); 633Assert.Equal(SystemColors.Highlight, control.ForeColor); 649Assert.Equal(SystemColors.Highlight, control.ForeColor); 2563Assert.Equal(SystemColors.Highlight, control.ForeColor); 2568Assert.Equal(SystemColors.Highlight, control.ForeColor); 2572Assert.Equal(SystemColors.Highlight, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (46)
56Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 57Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 62Assert.Equal(SystemColors.Control, control.CommandsBackColor); 63Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 65Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 87Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 107Assert.Equal(SystemColors.Control, control.HelpBackColor); 108Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 109Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 122Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 140Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 141Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 162Assert.Equal(SystemColors.Window, control.ViewBackColor); 163Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 164Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 761Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 777Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 839Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 855Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 1002Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1018Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1087Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1103Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1250Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1266Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1499Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 1515Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 1790Assert.Equal(SystemColors.Control, control.HelpBackColor); 1806Assert.Equal(SystemColors.Control, control.HelpBackColor); 1875Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 1891Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 1953Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 1969Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 2209Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2225Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2456Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2472Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2534Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 2550Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 3260Assert.Equal(SystemColors.Window, control.ViewBackColor); 3276Assert.Equal(SystemColors.Window, control.ViewBackColor); 3345Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 3361Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 3367yield return new object[] { Color.Empty, SystemColors.ControlText }; 3430Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3446Assert.Equal(SystemColors.WindowText, control.ViewForeColor);
System\Windows\Forms\RichTextBoxTests.cs (9)
37Assert.Equal(SystemColors.Window, control.BackColor); 82Assert.Equal(SystemColors.WindowText, control.ForeColor); 646yield return new object[] { Color.Empty, SystemColors.Window }; 727Assert.Equal(SystemColors.Window, control.BackColor); 1677yield return new object[] { Color.Empty, SystemColors.WindowText }; 1703yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1803Assert.Equal(SystemColors.WindowText, control.ForeColor); 3829Assert.Equal(SystemColors.Window, control.SelectionBackColor); 3931yield return new object[] { Color.Empty, SystemColors.Window };
System\Windows\Forms\TabControlTests.cs (8)
541Assert.Equal(SystemColors.Control, control.BackColor); 546Assert.Equal(SystemColors.Control, control.BackColor); 564Assert.Equal(SystemColors.Control, control.BackColor); 572Assert.Equal(SystemColors.Control, control.BackColor); 595Assert.Equal(SystemColors.Control, control.BackColor); 600Assert.Equal(SystemColors.Control, control.BackColor); 605Assert.Equal(SystemColors.Control, control.BackColor); 611Assert.Equal(SystemColors.Control, control.BackColor);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
85State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 111State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 137State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 164State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (6)
29yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.Control }; 31yield return new object[] { new ToolStripDropDown(), new Rectangle(0, 0, 100, 25), SystemColors.Menu }; 32yield return new object[] { new MenuStrip(), new Rectangle(0, 0, 200, 24), SystemColors.MenuBar }; 52yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control }; 54yield return new object[] { new ToolStripDropDown(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Menu }; 55yield return new object[] { new MenuStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.MenuBar };
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
54Assert.Equal(SystemColors.ControlDark, item.ForeColor);
System\Windows\Forms\ToolTipTests.cs (4)
21Assert.Equal(SystemColors.Info, toolTip.BackColor); 27Assert.Equal(SystemColors.InfoText, toolTip.ForeColor); 51Assert.Equal(SystemColors.Info, toolTip.BackColor); 57Assert.Equal(SystemColors.InfoText, toolTip.ForeColor);
System\Windows\Forms\TreeViewTests.cs (7)
25Assert.Equal(SystemColors.Window, control.BackColor); 67Assert.Equal(SystemColors.WindowText, control.ForeColor); 698yield return new object[] { Color.Empty, SystemColors.Window }; 721yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 779Assert.Equal(SystemColors.Window, control.BackColor); 1459yield return new object[] { Color.Empty, SystemColors.WindowText }; 1521Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\UpDownBaseTests.cs (7)
29Assert.Equal(SystemColors.Window, control.BackColor); 87Assert.Equal(SystemColors.WindowText, control.ForeColor); 510yield return new object[] { Color.Empty, SystemColors.Window }; 533yield return new object[] { Color.Empty, SystemColors.Window, 1 }; 590Assert.Equal(SystemColors.Window, control.BackColor); 935yield return new object[] { Color.Empty, SystemColors.WindowText }; 1013Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxBaseTests.cs (6)
378Assert.Equal(SystemColors.Control, control.BackColor); 383yield return new object[] { Color.Empty, SystemColors.Window }; 429Assert.Equal(SystemColors.Window, control.BackColor); 1161yield return new object[] { Color.Empty, SystemColors.WindowText }; 1187yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1248Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxTests.cs (2)
32Assert.Equal(SystemColors.Window, control.BackColor); 72Assert.Equal(SystemColors.WindowText, control.ForeColor);
TrackBarTests.cs (9)
65Assert.Equal(SystemColors.WindowText, control.ForeColor); 699Assert.Equal(SystemColors.WindowText, control.ForeColor); 704Assert.Equal(SystemColors.WindowText, control.ForeColor); 722Assert.Equal(SystemColors.WindowText, control.ForeColor); 730Assert.Equal(SystemColors.WindowText, control.ForeColor); 752Assert.Equal(SystemColors.WindowText, control.ForeColor); 757Assert.Equal(SystemColors.WindowText, control.ForeColor); 762Assert.Equal(SystemColors.WindowText, control.ForeColor); 768Assert.Equal(SystemColors.WindowText, control.ForeColor);
System.Windows.Forms.UI.IntegrationTests (21)
PropertyGridTests.cs (21)
107_propertyGrid.CommandsBorderColor.Should().Be(SystemColors.ControlDark); 116_propertyGrid.HelpBorderColor.Should().Be(SystemColors.ControlDark); 125_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(SystemColors.Highlight); 134_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(SystemColors.HighlightText); 143_propertyGrid.DisabledItemForeColor.Should().Be(SystemColors.GrayText); 152_propertyGrid.CategorySplitterColor.Should().Be(SystemColors.Control); 161_propertyGrid.ForeColor.Should().Be(SystemColors.ControlText); 189_propertyGrid.BackColor.Should().Be(SystemColors.Control); 208_propertyGrid.CommandsBackColor.Should().Be(SystemColors.Control); 217_propertyGrid.CommandsForeColor.Should().Be(SystemColors.ControlText); 249_propertyGrid.HelpBackColor.Should().Be(SystemColors.Control); 258_propertyGrid.HelpForeColor.Should().Be(SystemColors.ControlText); 267_propertyGrid.LineColor.Should().Be(SystemColors.InactiveBorder); 338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window); 347_propertyGrid.ViewBorderColor.Should().Be(SystemColors.ControlDark); 356_propertyGrid.ViewForeColor.Should().Be(SystemColors.WindowText); 365_propertyGrid.CategoryForeColor.Should().Be(SystemColors.ControlText); 367_propertyGrid.CategoryForeColor = SystemColors.MenuHighlight; 368_propertyGrid.CategoryForeColor.Should().Be(SystemColors.MenuHighlight); 388_propertyGrid.CommandsActiveLinkColor = SystemColors.ControlDark; 389_propertyGrid.CommandsActiveLinkColor.Should().Be(SystemColors.ControlDark);
WinFormsControlsTest (13)
CustomComCtl32Button.cs (1)
95Pen pen = new(SystemColors.ControlDarkDark, 1);
DataGridViewTest.Designer.cs (7)
57dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; 59dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; 60dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; 61dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; 75dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Info; 78dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; 79dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
Dialogs.Designer.cs (1)
52this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;
MessageBoxes.Designer.cs (1)
40this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;
MultipleControls.Designer.cs (2)
225this.checkedListBox1.BackColor = System.Drawing.SystemColors.Window; 281this.checkedListBox2.BackColor = System.Drawing.SystemColors.Window;
PropertyGrid.Designer.cs (1)
39this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;