1 write to HighContrast
System.Windows.Forms (1)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
24HighContrast = SystemInformation.HighContrast;
30 references to HighContrast
System.Windows.Forms (30)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (4)
48if (!HighContrast) 62colors.WindowDisabled = HighContrast ? SystemColors.GrayText : colors.ButtonShadow; 88if (HighContrast && _backColor != SystemColors.Control) 100if (HighContrast)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
472if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast) 493if (disabledText3D && !Control.Enabled && !colors.Options.HighContrast)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (4)
79DrawFlatFocus(e, layout.Focus, colors.Options.HighContrast ? colors.WindowText : colors.ContrastButtonShadow); 145backColor = colors.Options.HighContrast ? colors.ButtonShadow : colors.LowHighlight; 148backColor = colors.ButtonFace.MixColor(colors.Options.HighContrast 167DrawFlatFocus(e, layout.Focus, colors.Options.HighContrast ? colors.WindowText : colors.ContrastButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (4)
43Color borderColor = colors.Options.HighContrast 84DrawDefaultBorder(e, r, colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow, Control.IsDefault); 135DrawDefaultBorder(e, r, colors.Options.HighContrast ? colors.WindowText : colors.WindowFrame, Control.IsDefault); 136ControlPaint.DrawBorderSimple(e, r, colors.Options.HighContrast ? colors.WindowText : GetContrastingBorderColor(colors.ButtonShadow));
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (1)
79colors.Options.HighContrast ? colors.ButtonFace : checkBackground,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
34colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight, 41(colors.Options.HighContrast && !Control.Enabled) ? colors.WindowFrame : colors.ButtonShadow); 69colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight,
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (1)
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\DataGridViewButtonCell.cs (7)
778colors.Options.HighContrast ? colors.ButtonShadow : colors.LowHighlight); 810colors.Options.HighContrast ? colors.WindowText : colors.WindowFrame, 815colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow, 831colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow, 846colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow, 851colors.Options.HighContrast ? colors.WindowText : colors.ButtonShadow); 920colors.Options.HighContrast ? colors.WindowText : colors.ContrastButtonShadow);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1473colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight, 1520colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight,