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