2 writes to buttonFace
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
749
colors.
buttonFace
= backColor;
829
colors.
buttonFace
= wg.GetNearestColor(colors.buttonFace);
42 references to buttonFace
System.Windows.Forms (42)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (13)
173
bool stockColor = colors.
buttonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor();
225
insetPen = new WindowsPen(wg.DeviceContext, colors.
buttonFace
);
301
pen = new WindowsPen(wg.DeviceContext, colors.
buttonFace
);
318
if (colors.
buttonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor()) {
322
pen = new WindowsPen(wg.DeviceContext, colors.
buttonFace
);
337
bool stockColor = colors.
buttonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor();
405
pen = new WindowsPen(wg.DeviceContext, colors.
buttonFace
);
773
if (colors.
buttonFace
.GetBrightness() < .5) {
776
colors.lowButtonFace = Color.FromArgb(Adjust255(adjust, colors.
buttonFace
.R),
777
Adjust255(adjust, colors.
buttonFace
.G),
778
Adjust255(adjust, colors.
buttonFace
.B));
806
if (colors.
buttonFace
.GetBrightness() < .5) {
829
colors.buttonFace = wg.GetNearestColor(colors.
buttonFace
);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
59
backColor = MixedColor(Control.FlatAppearance.CheckedBackColor, colors.
buttonFace
);
69
backColor = MixedColor(colors.highlight, colors.
buttonFace
);
144
backColor = MixedColor(colors.options.highContrast ? colors.buttonShadow : colors.lowHighlight, colors.
buttonFace
);
226
backColor = MixedColor(colors.
buttonFace
, colors.lowButtonFace);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (2)
33
Brush backbrush = CreateDitherBrush(colors.highlight, colors.
buttonFace
);
73
Brush backbrush = CreateDitherBrush(colors.highlight, colors.
buttonFace
);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
156
backbrush = CreateDitherBrush(colors.highlight, colors.
buttonFace
);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (3)
68
DrawDitheredFill(e.Graphics, colors.
buttonFace
, checkBackground, bounds);
119
DrawDitheredFill(e.Graphics, colors.
buttonFace
, checkBackground, bounds);
178
face = new WindowsPen(wg.DeviceContext, colors.
buttonFace
)) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (4)
31
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
46
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
61
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
71
DrawCheckFlat(e, layout, checkColor, colors.options.highContrast ? colors.
buttonFace
: checkBackground, checkBorder, 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);
63
DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.highContrast ? colors.
buttonFace
: colors.highlight, true, colors);
92
DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.
buttonFace
, true, colors);
94
DrawCheckOnly(e, layout, colors, colors.windowText, colors.
buttonFace
);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
44
light = new Pen(colors.
buttonFace
),
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (4)
34
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
50
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
66
PaintFlatWorker(e, colors.buttonShadow, colors.
buttonFace
, colors.buttonShadow, colors);
76
DrawCheckFlat(e, layout, checkColor, colors.options.highContrast ? colors.
buttonFace
: checkBackground, checkBorder);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (2)
34
DrawCheckBackgroundFlat(e, layout.checkBounds, colors.buttonShadow, colors.options.highContrast ? colors.
buttonFace
: colors.highlight);
56
Color checkBackgroundColor = (colors.options.highContrast && AccessibilityImprovements.Level1) ? colors.
buttonFace
: colors.highlight;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1497
colors.
buttonFace
,
1509
colors.
buttonFace
);
1544
colors.options.highContrast ? colors.
buttonFace
: colors.highlight,
1589
colors.options.highContrast ? colors.
buttonFace
: colors.highlight,