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