5 writes to highlight
System.Windows.Forms (5)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
754colors.highlight = SystemColors.ControlLightLight; 760colors.highlight = ControlPaint.LightLight(backColor); 765colors.highlight = ControlPaint.LightLight(backColor); 789colors.highlight = colors.lowHighlight; 834colors.highlight = wg.GetNearestColor(colors.highlight);
40 references to highlight
System.Windows.Forms (40)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (13)
195penTopLeft = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlLightLight) : new WindowsPen(wg.DeviceContext, colors.highlight); 222insetPen = new WindowsPen(wg.DeviceContext, colors.highlight); 289pen = new WindowsPen(wg.DeviceContext, colors.highlight); 359pen = new WindowsPen(wg.DeviceContext, colors.highlight); 453WindowsPen pen = up ? new WindowsPen(wg.DeviceContext, colors.highlight) : new WindowsPen(wg.DeviceContext, colors.buttonShadow); 464pen = up ? new WindowsPen(wg.DeviceContext, colors.buttonShadow) : new WindowsPen(wg.DeviceContext, colors.highlight); 632using (SolidBrush brush = new SolidBrush(colors.highlight)) { 667TextRenderer.DrawText(g, Control.Text, Control.Font, r, colors.highlight, formatFlags); 781if (colors.highlight.GetBrightness() < .5) { 784colors.lowHighlight = Color.FromArgb(Adjust255(adjust, colors.highlight.R), 785Adjust255(adjust, colors.highlight.G), 786Adjust255(adjust, colors.highlight.B)); 834colors.highlight = wg.GetNearestColor(colors.highlight);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (2)
66backColor = colors.highlight; 69backColor = MixedColor(colors.highlight, colors.buttonFace);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (3)
33Brush backbrush = CreateDitherBrush(colors.highlight, colors.buttonFace); 73Brush backbrush = CreateDitherBrush(colors.highlight, colors.buttonFace); 97highlight = new Pen(colors.highlight),
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
156backbrush = CreateDitherBrush(colors.highlight, colors.buttonFace);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
140checkColor = SystemInformation.HighContrast ? colors.highlight : 176using( WindowsPen high = new WindowsPen(wg.DeviceContext, colors.highlight),
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (2)
28PaintFlatWorker(e, colors.windowText, colors.highlight, colors.windowFrame, colors); 58PaintFlatWorker(e, colors.windowText, colors.highlight, colors.windowFrame, colors);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (4)
38DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.highContrast ? colors.buttonFace : colors.highlight, true, colors); 41DrawCheckOnly(e, layout, colors, colors.windowText, colors.highlight); 63DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.highContrast ? colors.buttonFace : colors.highlight, true, colors); 65DrawCheckOnly(e, layout, colors, colors.windowText, colors.highlight);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
45lightlight = new Pen(colors.highlight)) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (2)
31PaintFlatWorker(e, colors.windowText, colors.highlight, colors.windowFrame, colors); 63PaintFlatWorker(e, colors.windowText, colors.highlight, colors.windowFrame, colors);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (6)
34DrawCheckBackgroundFlat(e, layout.checkBounds, colors.buttonShadow, colors.options.highContrast ? colors.buttonFace : colors.highlight); 35DrawCheckOnly(e, layout, colors.windowText, colors.highlight, true); 56Color checkBackgroundColor = (colors.options.highContrast && AccessibilityImprovements.Level1) ? colors.buttonFace : colors.highlight; 58DrawCheckOnly(e, layout, colors.windowText, colors.highlight, true); 79DrawCheckBackground3DLite(e, layout.checkBounds, colors.windowText, colors.highlight, colors, true); 80DrawCheckOnly(e, layout, colors.buttonShadow, colors.highlight, true);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1544colors.options.highContrast ? colors.buttonFace : colors.highlight, 1556colors.highlight); 1589colors.options.highContrast ? colors.buttonFace : colors.highlight, 1601colors.highlight);