1 write to highContrast
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
735
highContrast
= SystemInformation.HighContrast;
31 references to highContrast
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (6)
631
(!AccessibilityImprovements.Level1 || (!colors.options.
highContrast
&& AccessibilityImprovements.Level1))) {
660
if (disabledText3D && !Control.Enabled && (!AccessibilityImprovements.Level1 || (!colors.options.
highContrast
&& AccessibilityImprovements.Level1))) {
757
if (!
highContrast
) {
768
colors.windowDisabled = (
highContrast
&& AccessibilityImprovements.Level1) ? SystemColors.GrayText : colors.buttonShadow;
788
if (
highContrast
&& backColor != SystemColors.Control) {
815
if (
highContrast
&& AccessibilityImprovements.Level1) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
84
DrawFlatFocus(g, layout.focus, colors.options.
highContrast
? colors.windowText : colors.constrastButtonShadow);
141
backColor = colors.options.
highContrast
? colors.buttonShadow : colors.lowHighlight;
144
backColor = MixedColor(colors.options.
highContrast
? colors.buttonShadow : colors.lowHighlight, colors.buttonFace);
159
DrawFlatFocus(g, layout.focus, colors.options.
highContrast
? colors.windowText : colors.constrastButtonShadow);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (5)
53
DrawDefaultBorder(g, r, colors.options.
highContrast
? colors.windowText : colors.buttonShadow, this.Control.IsDefault);
56
DrawFlatBorder(g, r, colors.options.
highContrast
? colors.windowText : colors.buttonShadow);
93
DrawDefaultBorder(g, r, colors.options.
highContrast
? colors.windowText : colors.buttonShadow, this.Control.IsDefault);
142
DrawDefaultBorder(g, r, colors.options.
highContrast
? colors.windowText : colors.windowFrame, this.Control.IsDefault);
143
ControlPaint.DrawBorder(g, r, colors.options.
highContrast
? colors.windowText : colors.buttonShadow, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (1)
71
DrawCheckFlat(e, layout, checkColor, colors.options.
highContrast
? colors.buttonFace : checkBackground, checkBorder, colors);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (3)
38
DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.
highContrast
? colors.buttonFace : colors.highlight, true, colors);
40
(colors.options.
highContrast
&& !Control.Enabled && AccessibilityImprovements.Level1) ? colors.windowFrame : colors.buttonShadow);
63
DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.
highContrast
? colors.buttonFace : colors.highlight, true, colors);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (1)
76
DrawCheckFlat(e, layout, checkColor, colors.options.
highContrast
? colors.buttonFace : checkBackground, checkBorder);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (2)
34
DrawCheckBackgroundFlat(e, layout.checkBounds, colors.buttonShadow, colors.options.
highContrast
? colors.buttonFace : colors.highlight);
56
Color checkBackgroundColor = (colors.options.
highContrast
&& AccessibilityImprovements.Level1) ? colors.buttonFace : colors.highlight;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
821
if (colors.options.
highContrast
)
880
colors.options.
highContrast
? colors.windowText : colors.windowFrame,
884
colors.options.
highContrast
? colors.windowText : colors.buttonShadow,
898
colors.options.
highContrast
? colors.windowText : colors.buttonShadow,
909
ButtonBaseAdapter.DrawDefaultBorder(g, valBounds, colors.options.
highContrast
? colors.windowText : colors.buttonShadow, false /*isDefault*/);
910
ButtonBaseAdapter.DrawFlatBorder(g, valBounds, colors.options.
highContrast
? colors.windowText : colors.buttonShadow);
974
colors.options.
highContrast
? colors.windowText : colors.constrastButtonShadow);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1544
colors.options.
highContrast
? colors.buttonFace : colors.highlight,
1589
colors.options.
highContrast
? colors.buttonFace : colors.highlight,