490 references to SystemColors
System.Drawing (68)
commonui\System\Drawing\ColorConverter.cs (2)
75FillConstants(tempHash, typeof(System.Drawing.SystemColors)); 299member = typeof(SystemColors).GetProperty(c.Name);
commonui\System\Drawing\SystemBrushes.cs (33)
32return FromSystemColor(SystemColors.ActiveBorder); 42return FromSystemColor(SystemColors.ActiveCaption); 52return FromSystemColor(SystemColors.ActiveCaptionText); 62return FromSystemColor(SystemColors.AppWorkspace); 72return FromSystemColor(SystemColors.ButtonFace); 82return FromSystemColor(SystemColors.ButtonHighlight); 92return FromSystemColor(SystemColors.ButtonShadow); 102return FromSystemColor(SystemColors.Control); 112return FromSystemColor(SystemColors.ControlLightLight); 122return FromSystemColor(SystemColors.ControlLight); 132return FromSystemColor(SystemColors.ControlDark); 142return FromSystemColor(SystemColors.ControlDarkDark); 152return FromSystemColor(SystemColors.ControlText); 164return FromSystemColor(SystemColors.Desktop); 174return FromSystemColor(SystemColors.GradientActiveCaption); 184return FromSystemColor(SystemColors.GradientInactiveCaption); 194return FromSystemColor(SystemColors.GrayText); 204return FromSystemColor(SystemColors.Highlight); 214return FromSystemColor(SystemColors.HighlightText); 224return FromSystemColor(SystemColors.HotTrack); 234return FromSystemColor(SystemColors.InactiveCaption); 244return FromSystemColor(SystemColors.InactiveBorder); 254return FromSystemColor(SystemColors.InactiveCaptionText); 264return FromSystemColor(SystemColors.Info); 274return FromSystemColor(SystemColors.InfoText); 284return FromSystemColor(SystemColors.Menu); 294return FromSystemColor(SystemColors.MenuBar); 304return FromSystemColor(SystemColors.MenuHighlight); 314return FromSystemColor(SystemColors.MenuText); 325return FromSystemColor(SystemColors.ScrollBar); 335return FromSystemColor(SystemColors.Window); 345return FromSystemColor(SystemColors.WindowFrame); 355return FromSystemColor(SystemColors.WindowText);
commonui\System\Drawing\SystemPens.cs (33)
32return FromSystemColor(SystemColors.ActiveBorder); 42return FromSystemColor(SystemColors.ActiveCaption); 52return FromSystemColor(SystemColors.ActiveCaptionText); 64return FromSystemColor(SystemColors.AppWorkspace); 74return FromSystemColor(SystemColors.ButtonFace); 84return FromSystemColor(SystemColors.ButtonHighlight); 94return FromSystemColor(SystemColors.ButtonShadow); 104return FromSystemColor(SystemColors.Control); 114return FromSystemColor(SystemColors.ControlText); 124return FromSystemColor(SystemColors.ControlDark); 134return FromSystemColor(SystemColors.ControlDarkDark); 144return FromSystemColor(SystemColors.ControlLight); 154return FromSystemColor(SystemColors.ControlLightLight); 164return FromSystemColor(SystemColors.Desktop); 174return FromSystemColor(SystemColors.GradientActiveCaption); 184return FromSystemColor(SystemColors.GradientInactiveCaption); 194return FromSystemColor(SystemColors.GrayText); 204return FromSystemColor(SystemColors.Highlight); 214return FromSystemColor(SystemColors.HighlightText); 224return FromSystemColor(SystemColors.HotTrack); 234return FromSystemColor(SystemColors.InactiveBorder); 244return FromSystemColor(SystemColors.InactiveCaption); 254return FromSystemColor(SystemColors.InactiveCaptionText); 264return FromSystemColor(SystemColors.Info); 274return FromSystemColor(SystemColors.InfoText); 284return FromSystemColor(SystemColors.Menu); 294return FromSystemColor(SystemColors.MenuBar); 304return FromSystemColor(SystemColors.MenuHighlight); 314return FromSystemColor(SystemColors.MenuText); 325return FromSystemColor(SystemColors.ScrollBar); 335return FromSystemColor(SystemColors.Window); 345return FromSystemColor(SystemColors.WindowFrame); 355return FromSystemColor(SystemColors.WindowText);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\Util\TaskFormBase.cs (2)
100this._bottomDividerLabel.BackColor = System.Drawing.SystemColors.ControlLightLight; 110this._headerPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
System.Web.Mobile (14)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (2)
240Color cw = SystemColors.Window; 241Color ct = SystemColors.WindowText;
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
618SetBehaviorStyle("borderColor", ColorTranslator.ToHtml(SystemColors.ControlDark));
UI\MobileControls\Design\PropertyOverridesDialog.cs (3)
167this._pgProperties.LineColor = System.Drawing.SystemColors.ScrollBar; 173this._pgProperties.ViewBackColor = System.Drawing.SystemColors.Window; 174this._pgProperties.ViewForeColor = System.Drawing.SystemColors.WindowText;
UI\MobileControls\Design\Util\EditableTreeList.cs (1)
69TvList.ForeColor = System.Drawing.SystemColors.WindowText;
UI\MobileControls\Design\Util\HeaderLabel.cs (1)
25BackColor = SystemColors.Control;
UI\MobileControls\Design\Util\ImageCreator.cs (6)
76Brush controlTextBrush = new SolidBrush(SystemColors.ControlText), 77controlDarkBrush = new SolidBrush(SystemColors.ControlDark), 78controlBrush = new SolidBrush(SystemColors.Control), 79windowBrush = new SolidBrush(SystemColors.Window) 82Pen controlDarkPen = new Pen(SystemColors.ControlDark), 83windowPen = new Pen(SystemColors.Window)
System.Windows.Forms (343)
winforms\Managed\System\WinForms\AxHost.cs (2)
4454qaContainer.colorFore = GetOleColorFromColor(SystemColors.WindowText); 4455qaContainer.colorBack = GetOleColorFromColor(SystemColors.Window);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1232if (isEnableVisualStyleBackgroundSet || ((RawBackColor.IsEmpty) && (BackColor == SystemColors.Control)))
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (21)
153if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) { 173bool stockColor = colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 195penTopLeft = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlLightLight) : new WindowsPen(wg.DeviceContext, colors.highlight); 205penBottomRight = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlDarkDark) : new WindowsPen(wg.DeviceContext, colors.buttonShadowDark); 214insetPen = new WindowsPen(wg.DeviceContext, SystemColors.ControlLight); 217insetPen = new WindowsPen(wg.DeviceContext, SystemColors.Control); 243bottomRightInsetPen = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlDark) : new WindowsPen(wg.DeviceContext, colors.buttonShadow); 318if (colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor()) { 319pen = new WindowsPen(wg.DeviceContext, SystemColors.ControlLight); 337bool stockColor = colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 356pen = new WindowsPen(wg.DeviceContext, SystemColors.ControlLightLight); 375pen = new WindowsPen(wg.DeviceContext, SystemColors.ControlDarkDark); 398pen = new WindowsPen(wg.DeviceContext, SystemColors.ControlLight); 401pen = new WindowsPen(wg.DeviceContext, SystemColors.Control); 422pen = new WindowsPen(wg.DeviceContext, SystemColors.ControlDark); 751if (backColor == SystemColors.Control) { 752colors.buttonShadow = SystemColors.ControlDark; 753colors.buttonShadowDark = SystemColors.ControlDarkDark; 754colors.highlight = SystemColors.ControlLightLight; 768colors.windowDisabled = (highContrast && AccessibilityImprovements.Level1) ? SystemColors.GrayText : colors.buttonShadow; 788if (highContrast && backColor != SystemColors.Control) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
74PaintBackground(e, r, IsHighContrastHighlighted2() ? SystemColors.Highlight : backColor); 81PaintField(e, layout, colors, IsHighContrastHighlighted2() ? SystemColors.HighlightText : colors.windowText, false); 233PaintBackground(e, r, IsHighContrastHighlighted2() ? SystemColors.Highlight : backColor); 240PaintField(e, layout, colors, IsHighContrastHighlighted2() ? SystemColors.HighlightText : colors.windowText, false);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (4)
43Control.PaintBackground(e, r, IsHighContrastHighlighted2() ? SystemColors.Highlight : Control.BackColor, r.Location); 51PaintField(e, layout, colors, state != CheckState.Indeterminate && IsHighContrastHighlighted2() ? SystemColors.HighlightText : colors.windowText, true); 83Control.PaintBackground(e, r, IsHighContrastHighlighted2() ? SystemColors.Highlight : Control.BackColor, r.Location); 91PaintField(e, layout, colors, IsHighContrastHighlighted2() ? SystemColors.HighlightText : colors.windowText, true);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (4)
91Color color = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor; 119IsFilledWithHighlightColor = (color.ToArgb() == SystemColors.Highlight.ToArgb()); 187var highlightTextColor = SystemColors.HighlightText; 196PaintField(e, layout, colors, SystemColors.HighlightText, true);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
90brush = new WindowsSolidBrush(wg.DeviceContext, SystemColors.Control); 92else if (controlCheckState == CheckState.Indeterminate && checkBackground == SystemColors.Window && disabledColors) { 93Color comboColor = SystemInformation.HighContrast ? SystemColors.ControlDark : 94SystemColors.Control; 95byte R = (byte)((comboColor.R + SystemColors.Window.R) / 2); 96byte G = (byte)((comboColor.G + SystemColors.Window.G) / 2); 97byte B = (byte)((comboColor.B + SystemColors.Window.B) / 2);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (3)
39field = SystemColors.Control; 71field = SystemColors.Control; 138checkColor = SystemColors.ControlDark;
winforms\Managed\System\WinForms\ButtonRenderer.cs (2)
176textColor = SystemColors.ControlText; 247textColor = SystemColors.ControlText;
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (2)
162textColor = SystemColors.ControlText; 211textColor = SystemColors.ControlText;
winforms\Managed\System\WinForms\CheckedListBox.cs (6)
738foreColor = SystemColors.GrayText; 747backColor = SystemColors.Highlight; 748foreColor = SystemColors.HighlightText; 752backColor = SystemColors.InactiveBorder; 753foreColor = SystemColors.GrayText; 857foreColor = SystemColors.GrayText;
winforms\Managed\System\WinForms\ComboBox.cs (8)
316return SystemColors.Window; 671return SystemColors.WindowText; 6083return (comboBox.Enabled) ? SystemColors.Window : SystemColors.ControlDark; 6088return SystemColors.ControlDark; 6090return (focused) ? SystemColors.ControlDark : SystemColors.Window; 6094return (comboBox.Enabled) ? comboBox.BackColor : SystemColors.Control;
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (1)
53if (windowColor != SystemColors.Window) {
winforms\Managed\System\WinForms\Control.cs (3)
2146get { return SystemColors.Control;} 2185get { return SystemColors.ControlText;} 2259color = SystemColors.Control;
winforms\Managed\System\WinForms\ControlPaint.cs (30)
142return SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1011if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) { 1012pen.Color = SystemColors.ControlLight; 1024bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 1242((SystemInformation.HighContrast && AccessibilityImprovements.Level1) ? SystemColors.GrayText : SystemColors.ControlDark) : 1243SystemColors.ControlText; 1313DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control); 1964TextRenderer.DrawText(dc, s, font, layoutRectangle, SystemColors.GrayText, format); 2138brushColor = SystemColors.ControlLight; 2141brushColor = SystemColors.ControlDark; 2259brushColor = SystemColors.ControlLight; 2262brushColor = SystemColors.ControlDark; 2426using (Pen pen = new Pen(SystemColors.Window)) { 2435using (Pen pen = new Pen(SystemColors.Window)) { 2458using (Pen pen = new Pen(SystemColors.Window)) { 2472using (Pen pen = new Pen(SystemColors.Window)) { 2484using (Pen pen = new Pen(SystemColors.Window)) { 2499using (Pen pen = new Pen(SystemColors.Window)) { 2816isSystemColors_Control = (color.ToKnownColor() == SystemColors.Control.ToKnownColor()); 2901return SystemColors.ControlDark; 2904return SystemColors.ControlDarkDark; 2907Color dark = SystemColors.ControlDark; 2908Color darkDark = SystemColors.ControlDarkDark; 2968return SystemColors.ControlLight; 2971return SystemColors.ControlLightLight; 2974Color light = SystemColors.ControlLight; 2975Color lightLight = SystemColors.ControlLightLight;
winforms\Managed\System\WinForms\DataGrid.cs (1)
662return new Pen(SystemColors.ControlText);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
132return new Pen(SystemColors.ActiveCaptionText);
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
41private Brush borderBrush = new SolidBrush(SystemColors.WindowFrame); 955g.DrawLine(new Pen(SystemColors.ControlDark),
winforms\Managed\System\WinForms\DataGridTable.cs (1)
354return new Pen(SystemColors.ControlText);
winforms\Managed\System\WinForms\DataGridView.cs (1)
2620return SystemColors.ControlDark;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
792ControlPaint.DrawBorder(g, valBounds, SystemColors.Control, 850Color mouseOverBackColor = SystemColors.ControlDark; 944ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, SystemColors.Control);
winforms\Managed\System\WinForms\DataGridViewCell.cs (10)
1683int darkDistance = ColorDistance(baseline, SystemColors.ControlDark); 1684int lightDistance = ColorDistance(baseline, SystemColors.ControlLightLight); 1694darkPen = this.DataGridView.GetCachedPen(SystemColors.ControlDark); 1702lightPen = this.DataGridView.GetCachedPen(SystemColors.ControlLightLight); 1713darkPen = this.DataGridView.GetCachedPen(SystemColors.ControlDark); 1721lightPen = this.DataGridView.GetCachedPen(SystemColors.ControlLightLight); 3585dividerWidthColor = SystemColors.ControlLightLight; 3589dividerWidthColor = SystemColors.ControlDark; 3623dividerHeightColor = SystemColors.ControlLightLight; 3627dividerHeightColor = SystemColors.ControlDark;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (6)
2320Color color= SystemColors.Control; 2325bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 2327if (color == SystemColors.Control) 2329buttonShadow = SystemColors.ControlDark; 2330buttonShadowDark = SystemColors.ControlDarkDark; 2331highlight = SystemColors.ControlLightLight;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (6)
112return !this.ActiveLinkColor.Equals(SystemColors.HotTrack); 245return !this.LinkColor.Equals(SystemColors.HotTrack); 406return this.Selected ? SystemColors.HighlightText : LinkUtilities.GetVisitedLinkColor(); 449return !this.VisitedLinkColor.Equals(SystemColors.HotTrack); 462return this.Selected ? SystemColors.HighlightText : SystemColors.HotTrack;
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (3)
72return !this.ActiveLinkColor.Equals(SystemColors.HotTrack); 182return !this.LinkColor.Equals(SystemColors.HotTrack); 355return !this.VisitedLinkColor.Equals(SystemColors.HotTrack);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
5733g.FillRectangle(GetCachedBrush(SystemColors.HotTrack), rectInsertionBar); 17156ControlPaint.DrawHighContrastFocusRectangle(g, this.GetGridFocusRectangle(), SystemColors.ActiveCaptionText); 19878Pen pen = GetCachedPen(SystemColors.ControlText);
winforms\Managed\System\WinForms\DateTimePicker.cs (6)
45protected static readonly Color DefaultTitleBackColor = SystemColors.ActiveCaption; 50protected static readonly Color DefaultTitleForeColor = SystemColors.ActiveCaptionText; 55protected static readonly Color DefaultMonthBackColor = SystemColors.Window; 60protected static readonly Color DefaultTrailingForeColor = SystemColors.GrayText; 164return SystemColors.Window; 598return SystemColors.WindowText;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (8)
235grayStrip.BackColor = SystemColors.ControlDark; 655this.BackColor = SystemColors.Control; 745savedColor = SafeNativeMethods.SetBkColor(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 756SafeNativeMethods.SetBkColor(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlDark)); 809state, ColorTranslator.ToWin32(SystemColors.Control), ColorTranslator.ToWin32(SystemColors.ControlText)); 839oldTextColor = SafeNativeMethods.SetTextColor(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 840oldBackColor = SafeNativeMethods.SetBkColor(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.Control));
winforms\Managed\System\WinForms\DrawItemEvent.cs (4)
82this.foreColor = SystemColors.WindowText; 83this.backColor = SystemColors.Window; 105return SystemColors.Highlight; 142return SystemColors.HighlightText;
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (1)
159ControlPaint.DrawBorder(graphics, bounds, SystemColors.WindowFrame, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\FontDialog.cs (3)
185color = SystemColors.ControlText; 532color = SystemColors.ControlText; 597cf.rgbColors = ColorTranslator.ToWin32(SystemColors.ControlText);
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (3)
340return SystemColors.GrayText; 346Color disabledTextForeColor = SystemColors.ControlDark; 347if (ControlPaint.IsDarker(backColor, SystemColors.Control)) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
632boxColor = SystemColors.GrayText;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (4)
224Color backColor = SystemColors.Control; 281Pen light = new Pen(SystemColors.ControlLight); 282Pen dark = new Pen(SystemColors.ControlDark); 316return SystemColors.ControlText;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
313return SystemColors.HotTrack;
winforms\Managed\System\WinForms\LinkUtilities.cs (5)
114int r = (SystemColors.Window.R + SystemColors.WindowText.R + 1) / 2; 115int g = SystemColors.WindowText.G; 116int b = (SystemColors.Window.B + SystemColors.WindowText.B + 1) / 2;
winforms\Managed\System\WinForms\ListBox.cs (2)
194return SystemColors.Window; 496return SystemColors.WindowText;
winforms\Managed\System\WinForms\ListView.cs (7)
126private Color odCacheForeColor = SystemColors.WindowText; 127private Color odCacheBackColor = SystemColors.Window; 380return SystemColors.Window; 849return SystemColors.WindowText; 2791if (nmcd->clrText == ColorTranslator.ToWin32(SystemColors.HotTrack)) 4643if (c != SystemColors.Window) { 4647if (c != SystemColors.WindowText)
winforms\Managed\System\WinForms\ListViewItem.cs (4)
347return SystemColors.Window; 472return SystemColors.WindowText; 1478return SystemColors.Window; 1576return SystemColors.WindowText;
winforms\Managed\System\WinForms\MDIClient.cs (2)
52BackColor = SystemColors.AppWorkspace; 333return BackColor != SystemColors.AppWorkspace;
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
81static readonly Color DEFAULT_TITLE_BACK_COLOR = SystemColors.ActiveCaption; 82static readonly Color DEFAULT_TITLE_FORE_COLOR = SystemColors.ActiveCaptionText; 83static readonly Color DEFAULT_TRAILING_FORE_COLOR = SystemColors.GrayText; 313return SystemColors.Window; 537return SystemColors.WindowText;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
703BackColor = SystemColors.AppWorkspace; 946return !BackColor.Equals(SystemColors.AppWorkspace);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1735using (Pen pen = new Pen(SystemColors.ControlDark))
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (31)
122get { return SystemColors.Highlight; } 132get { return SystemColors.Highlight; } 226get { return (usingSystemColors) ? SystemColors.Control : FromKnownColor(KnownColors.msocbvcrCBGradVertEnd); } 482rgbTable[ProfessionalColorTable.KnownColors.ButtonPressedHighlight] = GetAlphaBlendedColor(g, SystemColors.Window, GetAlphaBlendedColor(g, SystemColors.Highlight, SystemColors.Window, 160), 50); 483rgbTable[ProfessionalColorTable.KnownColors.ButtonCheckedHighlight] = GetAlphaBlendedColor(g, SystemColors.Window, GetAlphaBlendedColor(g, SystemColors.Highlight, SystemColors.Window, 80), 20); 488rgbTable[ProfessionalColorTable.KnownColors.ButtonPressedHighlight] = SystemColors.Highlight; 489rgbTable[ProfessionalColorTable.KnownColors.ButtonCheckedHighlight] = SystemColors.ControlLight; 490rgbTable[ProfessionalColorTable.KnownColors.ButtonSelectedHighlight] = SystemColors.ControlLight; 501Color buttonFace = SystemColors.ButtonFace; 502Color buttonShadow = SystemColors.ButtonShadow; 503Color highlight = SystemColors.Highlight; 504Color window = SystemColors.Window; 506Color controlText = SystemColors.ControlText; 507Color buttonHighlight = SystemColors.ButtonHighlight; 508Color grayText = SystemColors.GrayText; 509Color highlightText = SystemColors.HighlightText; 510Color windowText = SystemColors.WindowText; 528gradientEnd = SystemColors.ButtonFace; 541rgbTable[ProfessionalColorTable.KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = SystemColors.ControlLight; 568rgbTable[ProfessionalColorTable.KnownColors.msocbvcrCBCtlBkgdSelected] = (lowResolution) ? SystemColors.ControlLight : highlight; 659rgbTable[ProfessionalColorTable.KnownColors.msocbvcrDocTabBdrDarkMouseOver] = SystemColors.MenuText; 662rgbTable[ProfessionalColorTable.KnownColors.msocbvcrDocTabBdrLightMouseOver] = SystemColors.MenuText; 664rgbTable[ProfessionalColorTable.KnownColors.msocbvcrDocTabBdrMouseOver] = SystemColors.MenuText; 689rgbTable[ProfessionalColorTable.KnownColors.msocbvcrFocuslessHighlightedBkgd] = SystemColors.InactiveCaption; 691rgbTable[ProfessionalColorTable.KnownColors.msocbvcrFocuslessHighlightedText] = SystemColors.InactiveCaptionText; 798rgbTable[ProfessionalColorTable.KnownColors.msocbvcrWPInfoTipBkgd] = SystemColors.Info; 799rgbTable[ProfessionalColorTable.KnownColors.msocbvcrWPInfoTipText] = SystemColors.InfoText;
winforms\Managed\System\WinForms\ProgressBar.cs (1)
57private Color defaultForeColor = SystemColors.Highlight;
winforms\Managed\System\WinForms\PropertyGrid.cs (19)
92private Color lineColor = SystemInformation.HighContrast ? (AccessibilityImprovements.Level1 ? SystemColors.ControlDarkDark : SystemColors.ControlDark ) 93: SystemColors.InactiveBorder; 96private Color categoryForeColor = SystemColors.ControlText; 97private Color categorySplitterColor = SystemColors.Control; 98private Color viewBorderColor = SystemColors.ControlDark; 99private Color selectedItemWithFocusForeColor = SystemColors.HighlightText; 100private Color selectedItemWithFocusBackColor = SystemColors.Highlight; 253doccomment.BackColor = SystemColors.Control; 254doccomment.ForeColor = SystemColors.ControlText; 4236hotcommands.SetColors(SystemColors.Control, SystemColors.ControlText, SystemColors.ActiveCaption, SystemColors.ActiveCaption, SystemColors.ActiveCaption, SystemColors.ControlDark); 4239hotcommands.SetColors(SystemColors.Control, SystemColors.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty); 5021private Color borderColor = SystemColors.ControlDark;
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
219ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (3)
157if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) { 202Color c = SystemColors.Window; 215ControlPaint.DrawImageReplaceColor(graphics, image, imageBounds, Color.Black, SystemColors.HighlightText);
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
80label.DisabledLinkColor = SystemColors.ControlDark;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (10)
204BackColor = SystemColors.Window; 205ForeColor = SystemColors.WindowText; 206grayTextColor = SystemColors.GrayText; 284btnDropDown.BackColor = SystemColors.Control; 285btnDropDown.ForeColor = SystemColors.ControlText; 307btnDialog.BackColor = SystemColors.Control; 308btnDialog.ForeColor = SystemColors.ControlText; 448if (this.ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) { 449return SystemColors.GrayText; 5920Pen pen = new Pen(SystemColors.ControlDark, 1);
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (2)
149textColor = SystemColors.ControlText; 198textColor = SystemColors.ControlText;
winforms\Managed\System\WinForms\StatusBar.cs (1)
135return SystemColors.Control;
winforms\Managed\System\WinForms\TabControl.cs (1)
210return SystemColors.Control;
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
472using (Pen pen = new Pen(SystemColors.Window)) {
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
299return SystemColors.Control; 301return SystemColors.Window; 593return SystemColors.WindowText;
winforms\Managed\System\WinForms\TextBoxRenderer.cs (2)
50if (windowColor != SystemColors.Window) { 53using(SolidBrush brush = new SolidBrush(SystemColors.Window)) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (3)
671return (comboBox.Enabled) ? SystemColors.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder; 679return SystemColors.ControlDark; 681return (focused) ? GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder : SystemColors.Window;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (4)
184arrowColor = Enabled ? SystemColors.HighlightText : SystemColors.ControlDark; 187arrowColor = Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
601Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, this.ImageMargin, SystemColors.Control));
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (14)
117SystemColors.HighlightText : SystemColors.MenuText; 154 Color arrowColor = AccessibilityImprovements.Level2 && item.Selected && !item.Pressed ? SystemColors.HighlightText : SystemColors.ControlText; 184 Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 197e.DefaultTextColor = SystemColors.HighlightText; 199else if (e.TextColor != SystemColors.HighlightText && e.TextColor != SystemColors.ControlText) { 202e.DefaultTextColor = SystemColors.HighlightText; 205e.DefaultTextColor = SystemColors.ControlText; 216e.TextColor = SystemColors.HighlightText; 259 using (Pen p = new Pen(SystemColors.ButtonShadow)) { 345 return SystemColors.Control.ToArgb() == Color.Black.ToArgb();
winforms\Managed\System\WinForms\ToolStripItemTextRenderEventArgs.cs (2)
21private Color textColor = SystemColors.ControlText; 26private Color defaultTextColor = SystemColors.ControlText;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (7)
824image.MakeTransparent(SystemColors.Control); 1060Color textColor = SystemColors.MenuText; 1066textColor = SystemColors.HighlightText; 1069textColor = SystemColors.MenuText; 1114Color arrowColor = (Selected ||Pressed) ? SystemColors.HighlightText : SystemColors.MenuText; 1115arrowColor = (Enabled) ? arrowColor : SystemColors.ControlDark;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
45using( Pen p = new Pen(SystemColors.ButtonShadow) ) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (5)
279DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 512borderColor = SystemColors.Highlight; 554borderColor = SystemColors.Highlight; 595e.DefaultArrowColor = (item.Enabled) ? SystemColors.ControlText : SystemColors.ControlDark;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
932textColor = (item.Enabled) ? textColor : SystemColors.GrayText;
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (3)
67backColor = SystemColors.Menu; 70backColor = SystemColors.MenuBar; 73backColor = SystemColors.Control;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (2)
28this.ForeColor = SystemColors.ControlDark; 455return (ForeColor != SystemColors.ControlDark);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (12)
187FillBackground(g, bounds, SystemColors.ButtonFace); 190FillBackground(g, bounds, (toolStrip is ToolStripDropDown) ? SystemColors.ControlLight : e.BackColor); 194e.BackColor : SystemColors.Menu); 198e.BackColor : SystemColors.MenuBar); 208e.BackColor : SystemColors.MenuBar); 233e.Graphics.DrawRectangle(new Pen(SystemColors.ControlDark), bounds); 345Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 409SystemColors.Highlight : ProfessionalColors.MenuItemBorder; 459Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 710if (vsRenderer == null || (item.BackColor != SystemColors.Control)) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
864outerBorderColor = SystemColors.ControlDark; 865innerBorderColor = SystemColors.Control;
winforms\Managed\System\WinForms\ToolTip.cs (4)
69Color backColor = SystemColors.Info; 70Color foreColor = SystemColors.InfoText; 928if (BackColor != SystemColors.Info) { 931if (ForeColor != SystemColors.InfoText) {
winforms\Managed\System\WinForms\TrackBar.cs (1)
301return SystemColors.WindowText;
winforms\Managed\System\WinForms\TreeView.cs (6)
205return SystemColors.Window; 458return SystemColors.WindowText; 2005if (c != SystemColors.Window) 2009if (c != SystemColors.WindowText) 2838Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor; 2844 ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (2)
230this.tableLayoutPanelQuestion.BackColor = System.Drawing.SystemColors.Window; 354this.lineLabel.BackColor = System.Drawing.SystemColors.ControlDark;
winforms\Managed\System\WinForms\UpDownBase.cs (1)
856ControlPaint.DrawBorder(e.Graphics, editBounds, SystemColors.Control, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleInformation.cs (2)
287return SystemColors.WindowFrame; 310return SystemColors.ButtonHighlight;
System.Workflow.Activities (8)
Rules\Design\Dialogs\BasicBrowserDialog.Designer.cs (3)
108this.rulesToolStrip.BackColor = System.Drawing.SystemColors.Control; 170this.previewRichEditBoxPanel.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 176this.previewRichTextBox.BackColor = System.Drawing.SystemColors.Control;
Rules\Design\Dialogs\IntellisenseTextBox.cs (4)
286listViewItem.ForeColor = SystemColors.HighlightText; 287listViewItem.BackColor = SystemColors.Highlight; 292listViewItem.ForeColor = SystemColors.ControlText; 293listViewItem.BackColor = SystemColors.Window;
Rules\Design\Dialogs\RuleSetDialog.Designer.cs (1)
151this.rulesToolStrip.BackColor = System.Drawing.SystemColors.Control;
System.Workflow.ComponentModel (29)
AuthoringOM\Design\DesignerHelpers.cs (4)
296using (SolidBrush backgroundBrush = new SolidBrush(Color.FromArgb(alpha, SystemColors.Control))) 297using (Pen lightPen = new Pen(Color.FromArgb(alpha, SystemColors.ControlLightLight))) 298using (Pen darkPen = new Pen(Color.FromArgb(alpha, SystemColors.ControlDark))) 299using (Pen darkdarkPen = new Pen(Color.FromArgb(alpha, SystemColors.ControlDarkDark)))
AuthoringOM\Design\DesignerWidgets.cs (6)
1228using (Brush gradientBrush = new LinearGradientBrush(new Point(this.leftGradientRectangle.Left, this.leftGradientRectangle.Top), new Point(this.leftGradientRectangle.Right, this.leftGradientRectangle.Top), SystemColors.Window, SystemColors.ScrollBar)) 1511BackColor = SystemColors.Control; 1712BackColor = SystemColors.Control; 1736this.buttonTips.BackColor = SystemColors.Info; 1737this.buttonTips.ForeColor = SystemColors.InfoText;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
213this.artifactTreeView.BackColor = System.Drawing.SystemColors.Window; 1200this.BackColor = SystemColors.Control;
AuthoringOM\Design\DocumentOutline.cs (1)
480this.ForeColor = (!activity.Enabled || ActivityDesigner.IsCommentedActivity(activity)) ? WorkflowTheme.CurrentTheme.AmbientTheme.CommentIndicatorColor : SystemColors.WindowText;
AuthoringOM\Design\Themes.cs (16)
1403ForeColor = SystemColors.ControlText; 1404BorderColor = SystemColors.ControlDark; 1405BackColorStart = SystemColors.Control; 1406BackColorEnd = SystemColors.ControlLight; 1911PreviewForeColor = SystemColors.ButtonFace; 1912PreviewBackColor = SystemColors.Window; 1913PreviewBorderColor = SystemColors.ControlDarkDark; 1914BorderColor = SystemColors.ControlDarkDark; 3175DropIndicatorColor = SystemColors.HotTrack; 3176SelectionForeColor = SystemColors.Highlight; 3177SelectionPatternColor = SystemColors.Highlight; 3178ForeColor = SystemColors.WindowText; 3179CommentIndicatorColor = SystemColors.GrayText; 3180ReadonlyIndicatorColor = SystemColors.GrayText; 3181BackColor = SystemColors.Window; 3182GridColor = SystemColors.InactiveBorder;
System.WorkflowServices (25)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
506label.ForeColor = System.Drawing.SystemColors.GrayText;
System\Workflow\Activities\Design\OperationPickerDialog.designer.cs (10)
53this.operationsToolStrip.BackColor = System.Drawing.SystemColors.Control; 108this.operationsPanel.BaseColor = System.Drawing.SystemColors.Window; 109this.operationsPanel.BorderColor = System.Drawing.SystemColors.ControlDark; 113this.operationsPanel.LightingColor = System.Drawing.SystemColors.Window; 120this.operationsListBox.BackColor = System.Drawing.SystemColors.Window; 134this.detailsViewPanel.BaseColor = System.Drawing.SystemColors.Control; 138this.detailsViewPanel.LightingColor = System.Drawing.SystemColors.Control; 144this.footerPanel.BackColor = System.Drawing.SystemColors.Control; 146this.footerPanel.BorderColor = System.Drawing.SystemColors.ControlDark; 162this.BackColor = System.Drawing.SystemColors.Control;
System\Workflow\Activities\Design\ServiceContractDetailViewControl.Designer.cs (1)
42this.contractNameLabel.ForeColor = System.Drawing.SystemColors.ControlText;
System\Workflow\Activities\Design\ServiceContractViewControl.cs (2)
57this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window; 65this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window;
System\Workflow\Activities\Design\ServiceContractViewControl.Designer.cs (2)
46this.contractNameLabel.ForeColor = System.Drawing.SystemColors.ControlDarkDark; 74this.BackColor = System.Drawing.SystemColors.Window;
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.designer.cs (4)
74this.parametersGrid.BackgroundColor = System.Drawing.SystemColors.Window; 91this.operationNameLabel.ForeColor = System.Drawing.SystemColors.ControlText; 118this.operationsToolStrip.BackColor = System.Drawing.SystemColors.Window; 185this.protectionLevelLabel.ForeColor = System.Drawing.SystemColors.ControlText;
System\Workflow\Activities\Design\ServiceOperationViewControl.cs (2)
51this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window; 59this.backgroundPanel.BaseColor = System.Drawing.SystemColors.Window;
System\Workflow\Activities\Design\ServiceOperationViewControl.designer.cs (3)
47this.backgroundPanel.BackColor = System.Drawing.SystemColors.Window; 79this.operationNameLabel.ForeColor = System.Drawing.SystemColors.WindowText; 86this.BackColor = System.Drawing.SystemColors.Window;
WsatUI (1)
MMCUI\WSATControl.designer.cs (1)
171this.textBoxEndpointCert.BackColor = System.Drawing.SystemColors.Control;