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