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