12 references to Light
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1456? ControlPaint.Light(baseline)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
39Color c = ControlPaint.Light(Control.BackColor);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\PanelDesigner.cs (1)
73ControlPaint.Light(Control.BackColor) :
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
40penColor = ControlPaint.Light(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)
47ControlPaint.Light(Control.BackColor) :
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (2)
2074Assert.Equal(expected, ControlPaint.Light(baseColor)); 2077Assert.Equal(expected, ControlPaint.Light(baseColor));
System\Windows\Forms\ControlPaintTests.Rendering.cs (4)
82State.Pen(16, ControlPaint.Light(Color.Gray), penStyle), 88State.Pen(16, ControlPaint.Light(Color.Gray), penStyle), 142State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 148State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle),