1166 references to SystemColors
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
209SystemColors.ButtonFace
DesignSurface (1)
MainForm.Designer.cs (1)
72this.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)
74new 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.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.GetSysColorBrush.cs (1)
15bool useSolidBrush = SystemColors.UseAlternativeColorSet;
System.Windows.Forms (350)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3335qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText); 3336qaContainer.colorBack = GetOleColorFromColor(SystemColors.Window);
System\Windows\Forms\Application.cs (2)
309bool useAlternateColorSet = SystemColors.UseAlternativeColorSet; 314SystemColors.UseAlternativeColorSet = darkModeEnabled;
System\Windows\Forms\Control.cs (4)
1545public static Color DefaultBackColor => SystemColors.Control; 1576public static Color DefaultForeColor => SystemColors.ControlText; 1625color = SystemColors.Control; 8194using 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; 3455using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.Control); 3734&& !(SystemInformation.HighContrast && BackColor == SystemColors.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (6)
171=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 177return SystemColors.ControlDark; 180return focused ? SystemColors.ControlDark : SystemColors.Window; 184=> 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)
5672using var brush = SystemColors.HotTrack.GetCachedSolidBrushScope(); 16715ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(), SystemColors.ActiveCaptionText); 19329using 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; 3157DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3158_ => SystemColors.ControlDark, 3192DataGridViewAdvancedCellBorderStyle.Inset => SystemColors.ControlLightLight, 3193_ => 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; 2854if (nmcd->clrText == ColorTranslator.ToWin32(SystemColors.HotTrack)) 4939if (c != SystemColors.Window || Application.IsDarkModeEnabled) 4946if (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)
564Renderer.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 (6)
307DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 531using var controlTextBrush = SystemColors.ControlText.GetCachedSolidBrushScope(); 571borderColor = SystemColors.Highlight; 628borderColor = SystemColors.Highlight; 681e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
834Color backgroundColor = e.Item.Selected ? SystemColors.Highlight : e.Item.BackColor; 871textColor = (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; 583ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.Highlight); 584using var brush = SystemColors.Highlight.GetCachedSolidBrushScope(); 662ControlPaint.DrawBorderSimple(g, bounds, SystemColors.Highlight); 802if (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)
239get => 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); 595Color brushColor = SystemColors.ControlText; 726ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect, SystemColors.ControlText); 746return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.ControlDarkDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (20)
140=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1081if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1097bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 1101using var lightPen = (stockColor ? SystemColors.ControlLightLight : hls.Lighter(1.0f)).GetCachedPenScope(); 1106using var darkPen = (stockColor ? SystemColors.ControlDarkDark : hls.Darker(1.0f)).GetCachedPenScope(); 1119? SystemColors.ControlLightLight 1120: SystemColors.Control).GetCachedPenScope(); 1126using var bottomRightPen = (stockColor ? SystemColors.ControlDark : hls.Darker(0.5f)).GetCachedPenScope(); 1324? (SystemInformation.HighContrast ? SystemColors.GrayText : SystemColors.ControlDark) 1325: SystemColors.ControlText; 1394=> DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control); 1664using Pen pen = new(SystemColors.WindowFrame, 1); 2000TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle, SystemColors.GrayText, quality, format); 2078Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark; 2208Color 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)
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)
578_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; 707dataSourceNode.ForeColor = SystemColors.GrayText; 1586_helpTextCtrl.BackColor = SystemColors.Info; 1587_helpTextCtrl.ForeColor = SystemColors.InfoText; 1591_helpTextCtrl.BackColor = SystemColors.Window; 1592_helpTextCtrl.ForeColor = SystemColors.WindowText;
System\Windows\Forms\Design\DesignerFrame.cs (1)
274_splitter.BackColor = SystemColors.Control;
System\Windows\Forms\Design\DesignerUtils.cs (20)
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; 679Control.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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
772textColor = SystemColors.HighlightText; 777textColor = SystemColors.WindowText; 910TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.WindowText, flags);
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.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
34_picker.BackColor.Should().Be(SystemColors.Control);
System.Windows.Forms.Tests (497)
NumericUpDownTests.cs (1)
92State.Pen(1, SystemColors.Control, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ApplicationTests.cs (3)
168Assert.False(SystemColors.UseAlternativeColorSet); 173Assert.True(SystemColors.UseAlternativeColorSet); 178Assert.False(SystemColors.UseAlternativeColorSet ^ systemColorMode == SystemColorMode.Dark);
System\Windows\Forms\ButtonRenderingTests.cs (16)
50State.PenColor(SystemColors.ControlLightLight)), 53State.PenColor(SystemColors.ControlLightLight)), 56State.PenColor(SystemColors.ControlDarkDark)), 59State.PenColor(SystemColors.ControlDarkDark)), 62State.PenColor(SystemColors.Control)), 65State.PenColor(SystemColors.Control)), 68State.PenColor(SystemColors.ControlDark)), 71State.PenColor(SystemColors.ControlDark))); 136State.PenColor(SystemColors.ControlLightLight)), 139State.PenColor(SystemColors.ControlLightLight)), 142State.PenColor(SystemColors.ControlDarkDark)), 145State.PenColor(SystemColors.ControlDarkDark)), 148State.PenColor(SystemColors.Control)), 151State.PenColor(SystemColors.Control)), 154State.PenColor(SystemColors.ControlDark)), 157State.PenColor(SystemColors.ControlDark)));
System\Windows\Forms\ComboBoxTests.cs (12)
36Assert.Equal(SystemColors.Window, control.BackColor); 83Assert.Equal(SystemColors.WindowText, control.ForeColor); 167yield return new object[] { Color.Empty, SystemColors.Window }; 190yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 268Assert.Equal(SystemColors.Window, control.BackColor); 290Assert.Equal(SystemColors.Window, control.BackColor); 306Assert.Equal(SystemColors.Window, control.BackColor); 1049yield return new object[] { Color.Empty, SystemColors.WindowText }; 1075yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1136Assert.Equal(SystemColors.WindowText, control.ForeColor); 1158Assert.Equal(SystemColors.WindowText, control.ForeColor); 1174Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ControlPaintTests.cs (123)
301yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 35, 35, 35) }; 302yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 53, 53, 53) }; 303yield return new object[] { SystemColors.Control, Color.FromArgb(255, 133, 133, 133) }; 304yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 75, 75, 75) }; 305yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 85, 85, 85) }; 334yield return new object[] { SystemColors.ControlDarkDark, -1.5f, Color.FromArgb(255, 175, 175, 175) }; 335yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 9, 9, 9) }; 336yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 242, 242, 242) }; 337yield return new object[] { SystemColors.ControlLight, -1.5f, Color.FromArgb(255, 121, 121, 121) }; 338yield return new object[] { SystemColors.ControlLightLight, -1.5f, Color.FromArgb(255, 169, 169, 169) }; 354yield return new object[] { SystemColors.ControlDarkDark, -1f, Color.FromArgb(255, 140, 140, 140) }; 355yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 212, 212, 212) }; 356yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 215, 215, 215) }; 357yield return new object[] { SystemColors.ControlLight, -1f, Color.FromArgb(255, 45, 45, 45) }; 358yield return new object[] { SystemColors.ControlLightLight, -1f, Color.FromArgb(255, 84, 84, 84) }; 374yield return new object[] { SystemColors.ControlDarkDark, -0.5f, Color.FromArgb(255, 105, 105, 105) }; 375yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 159, 159, 159) }; 376yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 187, 187, 187) }; 377yield return new object[] { SystemColors.ControlLight, -0.5f, Color.FromArgb(255, 226, 226, 226) }; 378yield return new object[] { SystemColors.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) }; 394yield return new object[] { SystemColors.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) }; 395yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 132, 132, 132) }; 396yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 173, 173, 173) }; 397yield return new object[] { SystemColors.ControlLight, -0.25f, Color.FromArgb(255, 188, 188, 188) }; 398yield return new object[] { SystemColors.ControlLightLight, -0.25f, Color.FromArgb(255, 212, 212, 212) }; 414yield return new object[] { SystemColors.ControlDarkDark, 0f, Color.FromArgb(255, 70, 70, 70) }; 415yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 106, 106, 106) }; 416yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlDark }; 417yield return new object[] { SystemColors.ControlLight, 0f, Color.FromArgb(255, 150, 150, 150) }; 418yield return new object[] { SystemColors.ControlLightLight, 0f, Color.FromArgb(255, 170, 170, 170) }; 434yield return new object[] { SystemColors.ControlDarkDark, 0.25f, Color.FromArgb(255, 53, 53, 53) }; 435yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 79, 79, 79) }; 436yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 147, 147, 147) }; 437yield return new object[] { SystemColors.ControlLight, 0.25f, Color.FromArgb(255, 113, 113, 113) }; 438yield return new object[] { SystemColors.ControlLightLight, 0.25f, Color.FromArgb(255, 127, 127, 127) }; 454yield return new object[] { SystemColors.ControlDarkDark, 0.5f, Color.FromArgb(255, 35, 35, 35) }; 455yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 53, 53, 53) }; 456yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 133, 133, 133) }; 457yield return new object[] { SystemColors.ControlLight, 0.5f, Color.FromArgb(255, 75, 75, 75) }; 458yield return new object[] { SystemColors.ControlLightLight, 0.5f, Color.FromArgb(255, 85, 85, 85) }; 474yield return new object[] { SystemColors.ControlDarkDark, 1f, Color.FromArgb(255, 0, 0, 0) }; 475yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 0, 0, 0) }; 476yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlDarkDark }; 477yield return new object[] { SystemColors.ControlLight, 1f, Color.FromArgb(255, 0, 0, 0) }; 478yield return new object[] { SystemColors.ControlLightLight, 1f, Color.FromArgb(255, 0, 0, 0) }; 494yield return new object[] { SystemColors.ControlDarkDark, 1.5f, Color.FromArgb(255, 221, 221, 221) }; 495yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 203, 203, 203) }; 496yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 78, 78, 78) }; 497yield return new object[] { SystemColors.ControlLight, 1.5f, Color.FromArgb(255, 181, 181, 181) }; 526yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 0, 0, 0) }; 527yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 0, 0, 0) }; 528yield return new object[] { SystemColors.Control, SystemColors.ControlDarkDark }; 529yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 0, 0, 0) }; 530yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 0, 0, 0) }; 547yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlLight, style }; 548yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 549yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1685yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlLight, style }; 1686yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 1687yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1714yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlLight }; 1715yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.Control }; 1716yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlDark }; 2065yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 142, 142, 142) }; 2066yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 183, 183, 183) }; 2067yield return new object[] { SystemColors.Control, Color.FromArgb(255, 241, 241, 241) }; 2068yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 233, 233, 233) }; 2069yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 255, 255, 255) }; 2098yield return new object[] { SystemColors.ControlDarkDark, -1.5f, Color.FromArgb(255, 249, 249, 249) }; 2099yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 89, 89, 89) }; 2100yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 185, 185, 185) }; 2101yield return new object[] { SystemColors.ControlLight, -1.5f, Color.FromArgb(255, 207, 207, 207) }; 2102yield return new object[] { SystemColors.ControlLightLight, -1.5f, Color.FromArgb(255, 255, 255, 255) }; 2118yield return new object[] { SystemColors.ControlDarkDark, -1f, Color.FromArgb(255, 29, 29, 29) }; 2119yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 112, 112, 112) }; 2120yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 199, 199, 199) }; 2121yield return new object[] { SystemColors.ControlLight, -1f, Color.FromArgb(255, 213, 213, 213) }; 2122yield return new object[] { SystemColors.ControlLightLight, -1f, Color.FromArgb(255, 255, 255, 255) }; 2138yield return new object[] { SystemColors.ControlDarkDark, -0.5f, Color.FromArgb(255, 68, 68, 68) }; 2139yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 137, 137, 137) }; 2140yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 213, 213, 213) }; 2141yield return new object[] { SystemColors.ControlLight, -0.5f, Color.FromArgb(255, 221, 221, 221) }; 2142yield return new object[] { SystemColors.ControlLightLight, -0.5f, Color.FromArgb(255, 255, 255, 255) }; 2158yield return new object[] { SystemColors.ControlDarkDark, -0.25f, Color.FromArgb(255, 87, 87, 87) }; 2159yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 148, 148, 148) }; 2160yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 220, 220, 220) }; 2161yield return new object[] { SystemColors.ControlLight, -0.25f, Color.FromArgb(255, 224, 224, 224) }; 2162yield return new object[] { SystemColors.ControlLightLight, -0.25f, Color.FromArgb(255, 255, 255, 255) }; 2178yield return new object[] { SystemColors.ControlDarkDark, 0f, Color.FromArgb(255, 105, 105, 105) }; 2179yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 160, 160, 160) }; 2180yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlLight }; 2181yield return new object[] { SystemColors.ControlLight, 0f, Color.FromArgb(255, 227, 227, 227) }; 2182yield return new object[] { SystemColors.ControlLightLight, 0f, Color.FromArgb(255, 255, 255, 255) }; 2198yield return new object[] { SystemColors.ControlDarkDark, 0.25f, Color.FromArgb(255, 123, 123, 123) }; 2199yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 172, 172, 172) }; 2200yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 234, 234, 234) }; 2201yield return new object[] { SystemColors.ControlLight, 0.25f, Color.FromArgb(255, 230, 230, 230) }; 2202yield return new object[] { SystemColors.ControlLightLight, 0.25f, Color.FromArgb(255, 255, 255, 255) }; 2218yield return new object[] { SystemColors.ControlDarkDark, 0.5f, Color.FromArgb(255, 142, 142, 142) }; 2219yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 183, 183, 183) }; 2220yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 241, 241, 241) }; 2221yield return new object[] { SystemColors.ControlLight, 0.5f, Color.FromArgb(255, 233, 233, 233) }; 2222yield return new object[] { SystemColors.ControlLightLight, 0.5f, Color.FromArgb(255, 255, 255, 255) }; 2238yield return new object[] { SystemColors.ControlDarkDark, 1f, Color.FromArgb(255, 180, 180, 180) }; 2239yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 208, 208, 208) }; 2240yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlLightLight }; 2241yield return new object[] { SystemColors.ControlLight, 1f, Color.FromArgb(255, 241, 241, 241) }; 2242yield return new object[] { SystemColors.ControlLightLight, 1f, Color.FromArgb(255, 255, 255, 255) }; 2258yield return new object[] { SystemColors.ControlDarkDark, 1.5f, Color.FromArgb(255, 217, 217, 217) }; 2259yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 231, 231, 231) }; 2260yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 13, 13, 13) }; 2261yield return new object[] { SystemColors.ControlLight, 1.5f, Color.FromArgb(255, 247, 247, 247) }; 2290yield return new object[] { SystemColors.ControlDarkDark, Color.FromArgb(255, 180, 180, 180) }; 2291yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 208, 208, 208) }; 2292yield return new object[] { SystemColors.Control, SystemColors.ControlLightLight }; 2293yield return new object[] { SystemColors.ControlLight, Color.FromArgb(255, 241, 241, 241) }; 2294yield return new object[] { SystemColors.ControlLightLight, Color.FromArgb(255, 255, 255, 255) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (18)
103ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Inset); 120State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 126State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 132State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 138State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 144State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 150State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 159State.Pen(16, SystemColors.ControlLight, penStyle), 165State.Pen(16, SystemColors.ControlLight, penStyle), 252ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Outset); 271State.Pen(16, SystemColors.ControlLightLight, penStyle), 277State.Pen(16, SystemColors.ControlLightLight, penStyle), 283State.Pen(16, SystemColors.ControlDarkDark, penStyle), 289State.Pen(16, SystemColors.ControlDarkDark, penStyle), 295State.Pen(16, SystemColors.Control, penStyle), 301State.Pen(16, SystemColors.Control, penStyle), 307State.Pen(16, SystemColors.ControlDark, penStyle), 313State.Pen(16, SystemColors.ControlDark, penStyle),
System\Windows\Forms\ControlTests.cs (2)
483Assert.Equal(SystemColors.Control, Control.DefaultBackColor); 489Assert.Equal(SystemColors.ControlText, Control.DefaultForeColor);
System\Windows\Forms\DataGridViewTests.cs (3)
2340BackColor = SystemColors.Info, 2342SelectionBackColor = SystemColors.Highlight, 2343SelectionForeColor = SystemColors.HighlightText,
System\Windows\Forms\DataGridViewTests.Rendering.cs (6)
59State.Brush(SystemColors.ButtonShadow, BRUSH_STYLE.BS_SOLID), 90State.Brush(SystemColors.ButtonHighlight, BRUSH_STYLE.BS_SOLID), 96State.Pen(16, SystemColors.Desktop, penStyle), 125BackColor = SystemColors.Info, 127SelectionBackColor = SystemColors.Highlight, 128SelectionForeColor = SystemColors.HighlightText,
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (41)
35Assert.Equal(SystemColors.Window, control.BackColor); 80Assert.Equal(SystemColors.WindowText, control.ForeColor); 548yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 574null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 583null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 592null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 601null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 610null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 619null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 629null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 638null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 647null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 656null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 665null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 674null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 684null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 693null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 702null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 711null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 720null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 729null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false 757yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 766yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.Left, false }; 783null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 792null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 801null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 810null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 819null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 828null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 838null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 847null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 856null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 865null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 874null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 883null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, true 893null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 902null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 911null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 920null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 929null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Right, false 938null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Right, false
System\Windows\Forms\DateTimePickerTests.cs (6)
33Assert.Equal(SystemColors.Window, control.BackColor); 41Assert.Equal(SystemColors.Window, control.CalendarMonthBackground); 42Assert.Equal(SystemColors.ActiveCaption, control.CalendarTitleBackColor); 43Assert.Equal(SystemColors.ActiveCaptionText, control.CalendarTitleForeColor); 44Assert.Equal(SystemColors.GrayText, control.CalendarTrailingForeColor); 80Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\DomainUpDownTests.cs (2)
45_sub.BackColor.Should().Be(SystemColors.Window); 102_sub.ForeColor.Should().Be(SystemColors.WindowText);
System\Windows\Forms\DrawItemEventArgsTests.cs (12)
15yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, SystemColors.HighlightText, SystemColors.Highlight }; 16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, SystemColors.HighlightText, SystemColors.Highlight }; 18yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 19yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window }; 60Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.HighlightText : foreColor, e.ForeColor); 61Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : backColor, e.BackColor);
System\Windows\Forms\FontDialogTests.cs (2)
170yield return new object[] { SystemColors.ControlText, SystemColors.ControlText };
System\Windows\Forms\ListBoxTests.cs (18)
29Assert.Equal(SystemColors.Window, control.BackColor); 75Assert.Equal(SystemColors.WindowText, control.ForeColor); 351yield return new object[] { Color.Empty, SystemColors.Window }; 374yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 432Assert.Equal(SystemColors.Window, control.BackColor); 454Assert.Equal(SystemColors.Window, control.BackColor); 470Assert.Equal(SystemColors.Window, control.BackColor); 1242yield return new object[] { Color.Empty, SystemColors.WindowText }; 1268yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1329Assert.Equal(SystemColors.WindowText, control.ForeColor); 1351Assert.Equal(SystemColors.WindowText, control.ForeColor); 1367Assert.Equal(SystemColors.WindowText, control.ForeColor); 5980Assert.Equal(SystemColors.Window, control.BackColor); 5985Assert.Equal(SystemColors.Window, control.BackColor); 5989Assert.Equal(SystemColors.Window, control.BackColor); 5999Assert.Equal(SystemColors.WindowText, control.ForeColor); 6004Assert.Equal(SystemColors.WindowText, control.ForeColor); 6008Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\ListViewItemTests.cs (64)
18Assert.Equal(SystemColors.Window, item.BackColor); 23Assert.Equal(SystemColors.WindowText, item.ForeColor); 46yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 47yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 48yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 85yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 86yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 123yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 124yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 161yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 162yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 208Assert.Equal(SystemColors.Window, item.BackColor); 213Assert.Equal(SystemColors.WindowText, item.ForeColor); 245Assert.Equal(SystemColors.Window, item.BackColor); 250Assert.Equal(SystemColors.WindowText, item.ForeColor); 283Assert.Equal(SystemColors.Window, item.BackColor); 288Assert.Equal(SystemColors.WindowText, item.ForeColor); 321Assert.Equal(SystemColors.Window, item.BackColor); 326Assert.Equal(SystemColors.WindowText, item.ForeColor); 358Assert.Equal(SystemColors.Window, item.BackColor); 363Assert.Equal(SystemColors.WindowText, item.ForeColor); 396Assert.Equal(SystemColors.Window, item.BackColor); 401Assert.Equal(SystemColors.WindowText, item.ForeColor); 434Assert.Equal(SystemColors.Window, item.BackColor); 439Assert.Equal(SystemColors.WindowText, item.ForeColor); 471Assert.Equal(SystemColors.Window, item.BackColor); 476Assert.Equal(SystemColors.WindowText, item.ForeColor); 509Assert.Equal(SystemColors.Window, item.BackColor); 514Assert.Equal(SystemColors.WindowText, item.ForeColor); 547Assert.Equal(SystemColors.Window, item.BackColor); 552Assert.Equal(SystemColors.WindowText, item.ForeColor); 585Assert.Equal(SystemColors.Window, item.BackColor); 590Assert.Equal(SystemColors.WindowText, item.ForeColor); 622Assert.Equal(SystemColors.Window, item.BackColor); 627Assert.Equal(SystemColors.WindowText, item.ForeColor); 660Assert.Equal(SystemColors.Window, item.BackColor); 665Assert.Equal(SystemColors.WindowText, item.ForeColor); 698Assert.Equal(SystemColors.Window, item.BackColor); 703Assert.Equal(SystemColors.WindowText, item.ForeColor); 735Assert.Equal(SystemColors.Window, item.BackColor); 740Assert.Equal(SystemColors.WindowText, item.ForeColor); 774Assert.Equal(SystemColors.Window, item.BackColor); 779Assert.Equal(SystemColors.WindowText, item.ForeColor); 804Assert.Equal(SystemColors.Window, item.BackColor); 809Assert.Equal(SystemColors.WindowText, item.ForeColor); 851yield return new object[] { Color.Empty, SystemColors.Window }; 870Assert.Equal(SystemColors.Window, item.BackColor); 906yield return new object[] { Color.Empty, SystemColors.WindowText }; 927Assert.Equal(SystemColors.WindowText, item.ForeColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (4)
259yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 389yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (25)
19Assert.Equal(SystemColors.Window, subItem.BackColor); 22Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 45Assert.Equal(SystemColors.Window, subItem.BackColor); 48Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 56yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 95Assert.Equal(SystemColors.Window, subItem.BackColor); 106Assert.Equal(SystemColors.Window, subItem.BackColor); 110Assert.Equal(SystemColors.Window, subItem.BackColor); 131Assert.Equal(SystemColors.Window, subItem.BackColor); 137yield return new object[] { Color.Empty, SystemColors.Window }; 231Assert.Equal(SystemColors.Window, subItem.BackColor); 344Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 355Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 359Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 380Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 385yield return new object[] { Color.Empty, SystemColors.WindowText }; 544Assert.Equal(SystemColors.Window, subItem.BackColor); 546Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 549Assert.Equal(SystemColors.Window, subItem.BackColor); 551Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 561Assert.Equal(SystemColors.Window, subItem.BackColor); 563Assert.Equal(SystemColors.WindowText, subItem.ForeColor); 566Assert.Equal(SystemColors.Window, subItem.BackColor); 568Assert.Equal(SystemColors.WindowText, subItem.ForeColor);
System\Windows\Forms\ListViewTests.cs (8)
35Assert.Equal(SystemColors.Window, control.BackColor); 83Assert.Equal(SystemColors.WindowText, control.ForeColor); 454yield return new object[] { Color.Empty, SystemColors.Window }; 477yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 545Assert.Equal(SystemColors.Window, control.BackColor); 1310yield return new object[] { Color.Empty, SystemColors.WindowText }; 1336yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1407Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (1)
28Assert.Equal(SystemColors.AppWorkspace, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (11)
32Assert.Equal(SystemColors.Window, control.BackColor); 85Assert.Equal(SystemColors.WindowText, control.ForeColor); 133Assert.Equal(SystemColors.ActiveCaption, control.TitleBackColor); 134Assert.Equal(SystemColors.ActiveCaptionText, control.TitleForeColor); 139Assert.Equal(SystemColors.GrayText, control.TrailingForeColor); 283yield return new object[] { Color.Empty, SystemColors.Window }; 306yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 364Assert.Equal(SystemColors.Window, control.BackColor); 923yield return new object[] { Color.Empty, SystemColors.WindowText }; 949yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1010Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\Printing\PrintPreviewControlTests.cs (4)
19Assert.Equal(SystemColors.AppWorkspace.ToArgb(), actualBackColorArgb); 34Assert.Equal(SystemColors.ControlDarkDark.ToArgb(), actualBackColorArgb); 36Assert.False(SystemColors.AppWorkspace.ToArgb().Equals(actualBackColorArgb)); 43Assert.False(SystemColors.AppWorkspace.ToArgb().Equals(actualBackColorArgb));
System\Windows\Forms\ProgressBarTests.cs (6)
65Assert.Equal(SystemColors.Highlight, control.ForeColor); 635Assert.Equal(SystemColors.Highlight, control.ForeColor); 651Assert.Equal(SystemColors.Highlight, control.ForeColor); 2565Assert.Equal(SystemColors.Highlight, control.ForeColor); 2570Assert.Equal(SystemColors.Highlight, control.ForeColor); 2574Assert.Equal(SystemColors.Highlight, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (46)
58Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 59Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 64Assert.Equal(SystemColors.Control, control.CommandsBackColor); 65Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 67Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 89Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 109Assert.Equal(SystemColors.Control, control.HelpBackColor); 110Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 111Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 124Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 142Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 143Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 164Assert.Equal(SystemColors.Window, control.ViewBackColor); 165Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 166Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 763Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 779Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 841Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 857Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 1004Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1020Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1089Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1105Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1252Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1268Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1501Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 1517Assert.Equal(SystemColors.GrayText, control.DisabledItemForeColor); 1792Assert.Equal(SystemColors.Control, control.HelpBackColor); 1808Assert.Equal(SystemColors.Control, control.HelpBackColor); 1877Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 1893Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 1955Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 1971Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 2211Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2227Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2458Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2474Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2536Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 2552Assert.Equal(SystemColors.HighlightText, control.SelectedItemWithFocusForeColor); 3262Assert.Equal(SystemColors.Window, control.ViewBackColor); 3278Assert.Equal(SystemColors.Window, control.ViewBackColor); 3347Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 3363Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 3369yield return new object[] { Color.Empty, SystemColors.ControlText }; 3432Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3448Assert.Equal(SystemColors.WindowText, control.ViewForeColor);
System\Windows\Forms\RichTextBoxTests.cs (9)
39Assert.Equal(SystemColors.Window, control.BackColor); 84Assert.Equal(SystemColors.WindowText, control.ForeColor); 648yield return new object[] { Color.Empty, SystemColors.Window }; 729Assert.Equal(SystemColors.Window, control.BackColor); 1679yield return new object[] { Color.Empty, SystemColors.WindowText }; 1705yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1805Assert.Equal(SystemColors.WindowText, control.ForeColor); 3831Assert.Equal(SystemColors.Window, control.SelectionBackColor); 3933yield return new object[] { Color.Empty, SystemColors.Window };
System\Windows\Forms\TabControlTests.cs (8)
543Assert.Equal(SystemColors.Control, control.BackColor); 548Assert.Equal(SystemColors.Control, control.BackColor); 566Assert.Equal(SystemColors.Control, control.BackColor); 574Assert.Equal(SystemColors.Control, control.BackColor); 597Assert.Equal(SystemColors.Control, control.BackColor); 602Assert.Equal(SystemColors.Control, control.BackColor); 607Assert.Equal(SystemColors.Control, control.BackColor); 613Assert.Equal(SystemColors.Control, control.BackColor);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
87State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 113State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 139State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 166State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (6)
31yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.Control }; 33yield return new object[] { new ToolStripDropDown(), new Rectangle(0, 0, 100, 25), SystemColors.Menu }; 34yield return new object[] { new MenuStrip(), new Rectangle(0, 0, 200, 24), SystemColors.MenuBar }; 54yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control }; 56yield return new object[] { new ToolStripDropDown(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Menu }; 57yield return new object[] { new MenuStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.MenuBar };
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
56Assert.Equal(SystemColors.ControlDark, item.ForeColor);
System\Windows\Forms\ToolTipTests.cs (4)
23Assert.Equal(SystemColors.Info, toolTip.BackColor); 29Assert.Equal(SystemColors.InfoText, toolTip.ForeColor); 53Assert.Equal(SystemColors.Info, toolTip.BackColor); 59Assert.Equal(SystemColors.InfoText, toolTip.ForeColor);
System\Windows\Forms\TreeViewTests.cs (7)
27Assert.Equal(SystemColors.Window, control.BackColor); 69Assert.Equal(SystemColors.WindowText, control.ForeColor); 700yield return new object[] { Color.Empty, SystemColors.Window }; 723yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 781Assert.Equal(SystemColors.Window, control.BackColor); 1461yield return new object[] { Color.Empty, SystemColors.WindowText }; 1523Assert.Equal(SystemColors.WindowText, control.ForeColor);
System\Windows\Forms\UpDownBaseTests.cs (7)
31Assert.Equal(SystemColors.Window, control.BackColor); 89Assert.Equal(SystemColors.WindowText, control.ForeColor); 512yield return new object[] { Color.Empty, SystemColors.Window }; 535yield return new object[] { Color.Empty, SystemColors.Window, 1 }; 592Assert.Equal(SystemColors.Window, control.BackColor); 937yield return new object[] { Color.Empty, SystemColors.WindowText }; 1015Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxBaseTests.cs (6)
380Assert.Equal(SystemColors.Control, control.BackColor); 385yield return new object[] { Color.Empty, SystemColors.Window }; 431Assert.Equal(SystemColors.Window, control.BackColor); 1163yield return new object[] { Color.Empty, SystemColors.WindowText }; 1189yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1250Assert.Equal(SystemColors.WindowText, control.ForeColor);
TextBoxTests.cs (2)
34Assert.Equal(SystemColors.Window, control.BackColor); 74Assert.Equal(SystemColors.WindowText, control.ForeColor);
TrackBarTests.cs (9)
67Assert.Equal(SystemColors.WindowText, control.ForeColor); 701Assert.Equal(SystemColors.WindowText, control.ForeColor); 706Assert.Equal(SystemColors.WindowText, control.ForeColor); 724Assert.Equal(SystemColors.WindowText, control.ForeColor); 732Assert.Equal(SystemColors.WindowText, control.ForeColor); 754Assert.Equal(SystemColors.WindowText, control.ForeColor); 759Assert.Equal(SystemColors.WindowText, control.ForeColor); 764Assert.Equal(SystemColors.WindowText, control.ForeColor); 770Assert.Equal(SystemColors.WindowText, control.ForeColor);
System.Windows.Forms.UI.IntegrationTests (21)
PropertyGridTests.cs (21)
107_propertyGrid.CommandsBorderColor.Should().Be(SystemColors.ControlDark); 116_propertyGrid.HelpBorderColor.Should().Be(SystemColors.ControlDark); 125_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(SystemColors.Highlight); 134_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(SystemColors.HighlightText); 143_propertyGrid.DisabledItemForeColor.Should().Be(SystemColors.GrayText); 152_propertyGrid.CategorySplitterColor.Should().Be(SystemColors.Control); 161_propertyGrid.ForeColor.Should().Be(SystemColors.ControlText); 189_propertyGrid.BackColor.Should().Be(SystemColors.Control); 208_propertyGrid.CommandsBackColor.Should().Be(SystemColors.Control); 217_propertyGrid.CommandsForeColor.Should().Be(SystemColors.ControlText); 249_propertyGrid.HelpBackColor.Should().Be(SystemColors.Control); 258_propertyGrid.HelpForeColor.Should().Be(SystemColors.ControlText); 267_propertyGrid.LineColor.Should().Be(SystemColors.InactiveBorder); 338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window); 347_propertyGrid.ViewBorderColor.Should().Be(SystemColors.ControlDark); 356_propertyGrid.ViewForeColor.Should().Be(SystemColors.WindowText); 365_propertyGrid.CategoryForeColor.Should().Be(SystemColors.ControlText); 367_propertyGrid.CategoryForeColor = SystemColors.MenuHighlight; 368_propertyGrid.CategoryForeColor.Should().Be(SystemColors.MenuHighlight); 388_propertyGrid.CommandsActiveLinkColor = SystemColors.ControlDark; 389_propertyGrid.CommandsActiveLinkColor.Should().Be(SystemColors.ControlDark);
TestPassApp (3)
CommonControl2.Designer.cs (1)
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;
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
68HeaderForeColor = SystemColors.ControlText,
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;