5 writes to buttonShadow
System.Windows.Forms (5)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
752
colors.
buttonShadow
= SystemColors.ControlDark;
758
colors.
buttonShadow
= ControlPaint.Dark(backColor);
763
colors.
buttonShadow
= ControlPaint.Dark(backColor);
817
colors.
buttonShadow
= colors.windowDisabled;
830
colors.
buttonShadow
= wg.GetNearestColor(colors.buttonShadow);
45 references to buttonShadow
System.Windows.Forms (45)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (10)
243
bottomRightInsetPen = stockColor ? new WindowsPen(wg.DeviceContext, SystemColors.ControlDark) : new WindowsPen(wg.DeviceContext, colors.
buttonShadow
);
425
pen = new WindowsPen(wg.DeviceContext, colors.
buttonShadow
);
453
WindowsPen pen = up ? new WindowsPen(wg.DeviceContext, colors.highlight) : new WindowsPen(wg.DeviceContext, colors.
buttonShadow
);
464
pen = up ? new WindowsPen(wg.DeviceContext, colors.
buttonShadow
) : new WindowsPen(wg.DeviceContext, colors.highlight);
637
brush.Color = colors.
buttonShadow
;
663
TextRenderer.DrawText(g, Control.Text, Control.Font, r, colors.
buttonShadow
, formatFlags);
670
TextRenderer.DrawText(g, Control.Text, Control.Font, r, colors.
buttonShadow
, formatFlags);
768
colors.windowDisabled = (highContrast && AccessibilityImprovements.Level1) ? SystemColors.GrayText : colors.
buttonShadow
;
810
colors.constrastButtonShadow = colors.
buttonShadow
;
830
colors.buttonShadow = wg.GetNearestColor(colors.
buttonShadow
);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
103
DrawFlatBorder(g, r, colors.
buttonShadow
);
141
backColor = colors.options.highContrast ? colors.
buttonShadow
: colors.lowHighlight;
144
backColor = MixedColor(colors.options.highContrast ? colors.
buttonShadow
: colors.lowHighlight, colors.buttonFace);
177
DrawFlatBorder(g, r, colors.
buttonShadow
);
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);
98
buttonShadow = new Pen(colors.
buttonShadow
)) {
143
ControlPaint.DrawBorder(g, r, colors.options.highContrast ? colors.windowText : colors.
buttonShadow
, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
216
ControlPaint.DrawBorder(g, r, colors.
buttonShadow
, ButtonBorderStyle.Solid);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (3)
137
checkColor = colors.
buttonShadow
;
141
colors.
buttonShadow
;
177
shadow = new WindowsPen(wg.DeviceContext, colors.
buttonShadow
),
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (6)
31
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
46
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
61
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
40
(colors.options.highContrast && !Control.Enabled && AccessibilityImprovements.Level1) ? colors.windowFrame : colors.
buttonShadow
);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (1)
43
using (Pen dark = new Pen(colors.
buttonShadow
),
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (6)
34
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
50
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
66
PaintFlatWorker(e, colors.
buttonShadow
, colors.buttonFace, colors.
buttonShadow
, colors);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (2)
34
DrawCheckBackgroundFlat(e, layout.checkBounds, colors.
buttonShadow
, colors.options.highContrast ? colors.buttonFace : colors.highlight);
80
DrawCheckOnly(e, layout, colors.
buttonShadow
, colors.highlight, true);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
823
windowsBrush = new System.Windows.Forms.Internal.WindowsSolidBrush(wg.DeviceContext, colors.
buttonShadow
);
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
);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1592
ButtonBaseAdapter.DrawFlatBorder(g, layout.checkBounds, colors.
buttonShadow
);