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