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