4 writes to ButtonFace
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (2)
37
ButtonFace
= _backColor
113
colors.
ButtonFace
= hdc.FindNearestColor(colors.ButtonFace);
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (1)
107
ButtonFace
= Color.LightGray,
System\Windows\Forms\RadioButtonBaseAdapterTests.cs (1)
177
ButtonFace
= Color.Gray,
40 references to ButtonFace
System.Windows.Forms (40)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (6)
67
if (colors.
ButtonFace
.GetBrightness() < .5)
73
Adjust255(adjust, colors.
ButtonFace
.R),
74
Adjust255(adjust, colors.
ButtonFace
.G),
75
Adjust255(adjust, colors.
ButtonFace
.B));
95
colors.ContrastButtonShadow = colors.
ButtonFace
.GetBrightness() < .5 ? colors.LowHighlight : colors.ButtonShadow;
113
colors.ButtonFace = hdc.FindNearestColor(colors.
ButtonFace
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (7)
133
bool stockColor = colors.
ButtonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor();
167
: SystemInformation.HighContrast ? colors.Highlight : colors.
ButtonFace
);
212
using CreatePenScope facePen = new(colors.
ButtonFace
);
225
colors.
ButtonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor()
227
: colors.
ButtonFace
);
236
bool stockColor = colors.
ButtonFace
.ToKnownColor() == SystemColors.Control.ToKnownColor();
274
? colors.
ButtonFace
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (4)
50
backColor = Control.FlatAppearance.CheckedBackColor.MixColor(colors.
ButtonFace
);
62
backColor = colors.Highlight.MixColor(colors.
ButtonFace
);
148
backColor = colors.
ButtonFace
.MixColor(colors.Options.HighContrast
233
? colors.
ButtonFace
.MixColor(colors.LowButtonFace)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
22
using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.
ButtonFace
);
68
using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.
ButtonFace
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
132
backgroundBrush = CreateDitherBrush(colors.Highlight, colors.
ButtonFace
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (3)
66
DrawDitheredFill(e.Graphics, colors.
ButtonFace
, checkBackground, bounds);
128
DrawDitheredFill(e.GraphicsInternal, colors.
ButtonFace
, checkBackground, bounds);
217
using CreatePenScope face = new(colors.
ButtonFace
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (4)
27
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
46
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
65
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
79
colors.Options.HighContrast ? colors.
ButtonFace
: checkBackground,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
34
colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight,
69
colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight,
109
DrawCheckBackground(e, layout.CheckBounds, colors.
ButtonFace
, disabledColors: true, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
42
using var light = colors.
ButtonFace
.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (4)
28
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
48
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
68
PaintFlatWorker(e, colors.ButtonShadow, colors.
ButtonFace
, colors.ButtonShadow, colors);
78
DrawCheckFlat(e, layout, checkColor, colors.Options.HighContrast ? colors.
ButtonFace
: checkBackground, checkBorder);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (2)
30
colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight);
55
Color checkBackgroundColor = colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
1424
colors.
ButtonFace
,
1473
colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight,
1520
colors.Options.HighContrast ? colors.
ButtonFace
: colors.Highlight,