7 writes to Highlight
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (5)
44
colors.
Highlight
= SystemColors.ControlLightLight;
52
colors.
Highlight
= ControlPaint.LightLight(_backColor);
58
colors.
Highlight
= ControlPaint.LightLight(_backColor);
90
colors.
Highlight
= colors.LowHighlight;
118
colors.
Highlight
= hdc.FindNearestColor(colors.Highlight);
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (1)
109
Highlight
= Color.Yellow
System\Windows\Forms\RadioButtonBaseAdapterTests.cs (1)
179
Highlight
= Color.LightGray
33 references to Highlight
System.Windows.Forms (33)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (5)
78
if (colors.
Highlight
.GetBrightness() < .5)
84
Adjust255(adjust, colors.
Highlight
.R),
85
Adjust255(adjust, colors.
Highlight
.G),
86
Adjust255(adjust, colors.
Highlight
.B));
118
colors.Highlight = hdc.FindNearestColor(colors.
Highlight
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
148
: stockColor ? SystemColors.ControlLightLight : colors.
Highlight
);
167
: SystemInformation.HighContrast ? colors.
Highlight
: colors.ButtonFace);
205
using CreatePenScope highlightPen = new(colors.
Highlight
);
251
: stockColor ? SystemColors.ControlLightLight : colors.
Highlight
);
307
using CreatePenScope topLeftPen = new(up ? colors.
Highlight
: color);
313
using CreatePenScope bottomRightPen = new(up ? color : colors.
Highlight
);
474
using var highlightBrush = colors.
Highlight
.GetCachedSolidBrushScope();
503
TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.
Highlight
, formatFlags);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
59
backColor = colors.
Highlight
;
62
backColor = colors.
Highlight
.MixColor(colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
22
using Brush backgroundBrush = CreateDitherBrush(colors.
Highlight
, colors.ButtonFace);
68
using Brush backgroundBrush = CreateDitherBrush(colors.
Highlight
, colors.ButtonFace);
90
using var highlight = colors.
Highlight
.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
132
backgroundBrush = CreateDitherBrush(colors.
Highlight
, colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
168
checkColor = SystemInformation.HighContrast ? colors.
Highlight
: colors.ButtonShadow;
215
using CreatePenScope high = new(colors.
Highlight
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (2)
23
PaintFlatWorker(e, colors.WindowText, colors.
Highlight
, colors.WindowFrame, colors);
61
PaintFlatWorker(e, colors.WindowText, colors.
Highlight
, colors.WindowFrame, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (2)
34
colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
,
69
colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
43
using var lightLight = colors.
Highlight
.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (2)
24
PaintFlatWorker(e, colors.WindowText, colors.
Highlight
, colors.WindowFrame, colors);
64
PaintFlatWorker(e, colors.WindowText, colors.
Highlight
, colors.WindowFrame, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
30
colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
);
55
Color checkBackgroundColor = colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
;
80
DrawCheckBackground3DLite(e, layout.CheckBounds, colors.
Highlight
, colors, disabledColors: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1473
colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
,
1520
colors.Options.HighContrast ? colors.ButtonFace : colors.
Highlight
,