101 references to ControlDark
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
80
new Pen(new SolidBrush(System.Drawing.SystemColors.
ControlDark
)),
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
17
yield return (unchecked((int)0x80000010), SystemColors.
ControlDark
);
117
yield return ("buttonshadow", SystemColors.
ControlDark
);
System\Drawing\SystemBrushesTests.cs (1)
18
yield return Brush(() => SystemBrushes.ControlDark, SystemColors.
ControlDark
);
System\Drawing\SystemPensTest.cs (1)
20
yield return Pen(() => SystemPens.ControlDark, SystemColors.
ControlDark
);
System.Windows.Forms (41)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
42
colors.ButtonShadow = SystemColors.
ControlDark
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
180
: stockColor ? SystemColors.
ControlDark
: colors.ButtonShadow);
284
: stockColor ? SystemColors.
ControlDark
: colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
100
Color comboColor = SystemInformation.HighContrast ? SystemColors.
ControlDark
: SystemColors.Control;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
142
checkColor = SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
190
=> comboBox.Enabled ? SystemColors.Window : SystemColors.
ControlDark
;
196
return SystemColors.
ControlDark
;
199
return focused ? SystemColors.
ControlDark
: SystemColors.Window;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
357
private static readonly Color s_defaultBackgroundColor = SystemColors.
ControlDark
;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
788
using CreateBrushScope hbrush = new(SystemColors.
ControlDark
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1433
int darkDistance = ColorDistance(baseline, SystemColors.
ControlDark
);
1443
: SystemColors.
ControlDark
;
3156
_ => SystemColors.
ControlDark
,
3191
_ => SystemColors.
ControlDark
,
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
328
using CreatePenScope hpenDark = new(SystemColors.
ControlDark
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
76
private Color _viewBorderColor = SystemColors.
ControlDark
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
35
public Color BorderColor { get; set; } = SystemColors.
ControlDark
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
78
DisabledLinkColor = SystemColors.
ControlDark
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
515
using Pen pen = new(SystemColors.
ControlDark
, 1)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
60
return SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
203
arrowColor = Enabled ? SystemColors.HighlightText : SystemColors.
ControlDark
;
207
arrowColor = Enabled ? SystemColors.ControlText : SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
205
Color arrowColor = !item.Enabled ? SystemColors.
ControlDark
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1011
arrowColor = (Enabled) ? arrowColor : SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
681
e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
18
ForeColor = SystemColors.
ControlDark
;
304
internal override bool ShouldSerializeForeColor() => ForeColor != SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
393
Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.
ControlDark
;
524
Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.
ControlDark
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
249
outerBorderColor = SystemColors.
ControlDark
;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
194
BackColor = SystemColors.
ControlDark
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
171
PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
ControlDark
));
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
740
return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.
ControlDark
: BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (5)
140
=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.
ControlDark
;
1129
using var bottomRightPen = (stockColor ? SystemColors.
ControlDark
: hls.Darker(0.5f)).GetCachedPenScope();
1327
? (SystemInformation.HighContrast ? SystemColors.GrayText : SystemColors.
ControlDark
)
2082
Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.
ControlDark
;
2212
Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.
ControlDark
;
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (2)
103
return SystemColors.
ControlDark
;
111
ARGB dark = SystemColors.
ControlDark
;
System\Windows\Forms\Rendering\TextRenderer.cs (1)
560
: SystemColors.
ControlDark
;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\ByteViewer.cs (1)
151
using Pen pen = new(SystemColors.
ControlDark
);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
180
public Color SeparatorColor { get; } = SystemColors.
ControlDark
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
112
ShowDropDown(listBox, SystemColors.
ControlDark
);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
152
_splitterLabel.BackColor = SystemColors.
ControlDark
;
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
143
BackColor = SystemColors.
ControlDark
,
183
BackColor = SystemColors.
ControlDark
,
270
BackColor = SystemColors.
ControlDark
,
315
BackColor = SystemColors.
ControlDark
,
System.Windows.Forms.Tests (42)
System\Windows\Forms\ButtonRenderingTests.cs (4)
66
State.PenColor(SystemColors.
ControlDark
)),
69
State.PenColor(SystemColors.
ControlDark
)));
152
State.PenColor(SystemColors.
ControlDark
)),
155
State.PenColor(SystemColors.
ControlDark
)));
System\Windows\Forms\ControlPaintTests.cs (26)
300
yield return new object[] { SystemColors.
ControlDark
, Color.FromArgb(255, 53, 53, 53) };
333
yield return new object[] { SystemColors.
ControlDark
, -1.5f, Color.FromArgb(255, 9, 9, 9) };
353
yield return new object[] { SystemColors.
ControlDark
, -1f, Color.FromArgb(255, 212, 212, 212) };
373
yield return new object[] { SystemColors.
ControlDark
, -0.5f, Color.FromArgb(255, 159, 159, 159) };
393
yield return new object[] { SystemColors.
ControlDark
, -0.25f, Color.FromArgb(255, 132, 132, 132) };
413
yield return new object[] { SystemColors.
ControlDark
, 0f, Color.FromArgb(255, 106, 106, 106) };
414
yield return new object[] { SystemColors.Control, 0f, SystemColors.
ControlDark
};
433
yield return new object[] { SystemColors.
ControlDark
, 0.25f, Color.FromArgb(255, 79, 79, 79) };
453
yield return new object[] { SystemColors.
ControlDark
, 0.5f, Color.FromArgb(255, 53, 53, 53) };
473
yield return new object[] { SystemColors.
ControlDark
, 1f, Color.FromArgb(255, 0, 0, 0) };
493
yield return new object[] { SystemColors.
ControlDark
, 1.5f, Color.FromArgb(255, 203, 203, 203) };
525
yield return new object[] { SystemColors.
ControlDark
, Color.FromArgb(255, 0, 0, 0) };
547
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
ControlDark
, style };
1685
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
ControlDark
, style };
1714
yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.
ControlDark
};
2064
yield return new object[] { SystemColors.
ControlDark
, Color.FromArgb(255, 183, 183, 183) };
2097
yield return new object[] { SystemColors.
ControlDark
, -1.5f, Color.FromArgb(255, 89, 89, 89) };
2117
yield return new object[] { SystemColors.
ControlDark
, -1f, Color.FromArgb(255, 112, 112, 112) };
2137
yield return new object[] { SystemColors.
ControlDark
, -0.5f, Color.FromArgb(255, 137, 137, 137) };
2157
yield return new object[] { SystemColors.
ControlDark
, -0.25f, Color.FromArgb(255, 148, 148, 148) };
2177
yield return new object[] { SystemColors.
ControlDark
, 0f, Color.FromArgb(255, 160, 160, 160) };
2197
yield return new object[] { SystemColors.
ControlDark
, 0.25f, Color.FromArgb(255, 172, 172, 172) };
2217
yield return new object[] { SystemColors.
ControlDark
, 0.5f, Color.FromArgb(255, 183, 183, 183) };
2237
yield return new object[] { SystemColors.
ControlDark
, 1f, Color.FromArgb(255, 208, 208, 208) };
2257
yield return new object[] { SystemColors.
ControlDark
, 1.5f, Color.FromArgb(255, 231, 231, 231) };
2289
yield return new object[] { SystemColors.
ControlDark
, Color.FromArgb(255, 208, 208, 208) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
305
State.Pen(16, SystemColors.
ControlDark
, penStyle),
311
State.Pen(16, SystemColors.
ControlDark
, penStyle),
System\Windows\Forms\PropertyGridTests.cs (9)
63
Assert.Equal(SystemColors.
ControlDark
, control.CommandsBorderColor);
109
Assert.Equal(SystemColors.
ControlDark
, control.HelpBorderColor);
163
Assert.Equal(SystemColors.
ControlDark
, control.ViewBorderColor);
1087
Assert.Equal(SystemColors.
ControlDark
, control.CommandsBorderColor);
1103
Assert.Equal(SystemColors.
ControlDark
, control.CommandsBorderColor);
1875
Assert.Equal(SystemColors.
ControlDark
, control.HelpBorderColor);
1891
Assert.Equal(SystemColors.
ControlDark
, control.HelpBorderColor);
3345
Assert.Equal(SystemColors.
ControlDark
, control.ViewBorderColor);
3361
Assert.Equal(SystemColors.
ControlDark
, control.ViewBorderColor);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
54
Assert.Equal(SystemColors.
ControlDark
, item.ForeColor);
System.Windows.Forms.UI.IntegrationTests (5)
PropertyGridTests.cs (5)
107
_propertyGrid.CommandsBorderColor.Should().Be(SystemColors.
ControlDark
);
116
_propertyGrid.HelpBorderColor.Should().Be(SystemColors.
ControlDark
);
347
_propertyGrid.ViewBorderColor.Should().Be(SystemColors.
ControlDark
);
388
_propertyGrid.CommandsActiveLinkColor = SystemColors.
ControlDark
;
389
_propertyGrid.CommandsActiveLinkColor.Should().Be(SystemColors.
ControlDark
);