21 references to Dark
System.Windows.Forms (13)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (2)
50
colors.ButtonShadow = ControlPaint.
Dark
(_backColor);
56
colors.ButtonShadow = ControlPaint.
Dark
(_backColor);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
113
ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.
Dark
(Control.BackColor));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1452
? ControlPaint.
Dark
(baseline)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
138
s_iedisabledLinkColor = ControlPaint.
Dark
(DisabledColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
32
ControlPaint.DrawBorderSimple(e, r, ControlPaint.
Dark
(Control.BackColor));
61
ControlPaint.DrawBorderSimple(e, r, ControlPaint.
Dark
(Control.BackColor));
System\Windows\Forms\Rendering\ControlPaint.cs (5)
1898
using var dark = GdiPlusCache.GetCachedPenScope(
Dark
(backColor));
1928
using CreatePenScope hpenDark = new(
Dark
(backColor));
1967
using var darkBrush =
Dark
(color).GetCachedSolidBrushScope();
1968
color =
Dark
(color);
2013
paintcolor =
Dark
(color);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
559
? ControlPaint.
Dark
(backColor)
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\PanelDesigner.cs (1)
74
ControlPaint.
Dark
(Control.BackColor);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
44
penColor = ControlPaint.
Dark
(ctl.BackColor);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
149
Color penColor = control.BackColor.GetBrightness() < .5 ? ControlPaint.Light(control.BackColor) : ControlPaint.
Dark
(control.BackColor);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
48
ControlPaint.
Dark
(Control.BackColor);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlPaintTests.cs (2)
310
Assert.Equal(expected, ControlPaint.
Dark
(baseColor));
313
Assert.Equal(expected, ControlPaint.
Dark
(baseColor));
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
231
State.Pen(16, ControlPaint.
Dark
(Color.PeachPuff), penStyle),
237
State.Pen(16, ControlPaint.
Dark
(Color.PeachPuff), penStyle),