47 references to ControlLight
System.Drawing.Common.Tests (5)
System\Drawing\ColorTranslatorTests.cs (3)
19
yield return (unchecked((int)0x80000016), SystemColors.
ControlLight
);
179
yield return new object[] { "threedhighlight", SystemColors.
ControlLight
};
245
yield return new object[] { SystemColors.
ControlLight
, "buttonface" };
System\Drawing\SystemBrushesTests.cs (1)
20
yield return Brush(() => SystemBrushes.ControlLight, SystemColors.
ControlLight
);
System\Drawing\SystemPensTest.cs (1)
22
yield return Pen(() => SystemPens.ControlLight, SystemColors.
ControlLight
);
System.Windows.Forms (13)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
164
? SystemInformation.HighContrast ? SystemColors.
ControlLight
: SystemColors.Control
224
? SystemColors.
ControlLight
273
: SystemInformation.HighContrast ? SystemColors.
ControlLight
: SystemColors.Control);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
340
using CreatePenScope hpenLight = new(SystemColors.
ControlLight
);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (4)
359
rgbTable[KnownColors.ButtonCheckedHighlight] = SystemColors.
ControlLight
;
360
rgbTable[KnownColors.ButtonSelectedHighlight] = SystemColors.
ControlLight
;
409
rgbTable[KnownColors.msocbvcrCBCtlBkgdSelectedMouseOver] = SystemColors.
ControlLight
;
437
rgbTable[KnownColors.msocbvcrCBCtlBkgdSelected] = (lowResolution) ? SystemColors.
ControlLight
: highlight;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
206
FillBackground(g, bounds, (toolStrip is ToolStripDropDown) ? SystemColors.
ControlLight
: e.BackColor);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2082
Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.
ControlLight
: SystemColors.ControlDark;
2212
Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.
ControlLight
: SystemColors.ControlDark;
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (2)
154
return SystemColors.
ControlLight
;
162
ARGB light = SystemColors.
ControlLight
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerUtils.cs (1)
231
color = SystemColors.
ControlLight
;
System.Windows.Forms.Tests (28)
System\Windows\Forms\ControlPaintTests.cs (26)
302
yield return new object[] { SystemColors.
ControlLight
, Color.FromArgb(255, 75, 75, 75) };
335
yield return new object[] { SystemColors.
ControlLight
, -1.5f, Color.FromArgb(255, 121, 121, 121) };
355
yield return new object[] { SystemColors.
ControlLight
, -1f, Color.FromArgb(255, 45, 45, 45) };
375
yield return new object[] { SystemColors.
ControlLight
, -0.5f, Color.FromArgb(255, 226, 226, 226) };
395
yield return new object[] { SystemColors.
ControlLight
, -0.25f, Color.FromArgb(255, 188, 188, 188) };
415
yield return new object[] { SystemColors.
ControlLight
, 0f, Color.FromArgb(255, 150, 150, 150) };
435
yield return new object[] { SystemColors.
ControlLight
, 0.25f, Color.FromArgb(255, 113, 113, 113) };
455
yield return new object[] { SystemColors.
ControlLight
, 0.5f, Color.FromArgb(255, 75, 75, 75) };
475
yield return new object[] { SystemColors.
ControlLight
, 1f, Color.FromArgb(255, 0, 0, 0) };
495
yield return new object[] { SystemColors.
ControlLight
, 1.5f, Color.FromArgb(255, 181, 181, 181) };
527
yield return new object[] { SystemColors.
ControlLight
, Color.FromArgb(255, 0, 0, 0) };
545
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
ControlLight
, style };
1683
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
ControlLight
, style };
1712
yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.
ControlLight
};
2066
yield return new object[] { SystemColors.
ControlLight
, Color.FromArgb(255, 233, 233, 233) };
2099
yield return new object[] { SystemColors.
ControlLight
, -1.5f, Color.FromArgb(255, 207, 207, 207) };
2119
yield return new object[] { SystemColors.
ControlLight
, -1f, Color.FromArgb(255, 213, 213, 213) };
2139
yield return new object[] { SystemColors.
ControlLight
, -0.5f, Color.FromArgb(255, 221, 221, 221) };
2159
yield return new object[] { SystemColors.
ControlLight
, -0.25f, Color.FromArgb(255, 224, 224, 224) };
2178
yield return new object[] { SystemColors.Control, 0f, SystemColors.
ControlLight
};
2179
yield return new object[] { SystemColors.
ControlLight
, 0f, Color.FromArgb(255, 227, 227, 227) };
2199
yield return new object[] { SystemColors.
ControlLight
, 0.25f, Color.FromArgb(255, 230, 230, 230) };
2219
yield return new object[] { SystemColors.
ControlLight
, 0.5f, Color.FromArgb(255, 233, 233, 233) };
2239
yield return new object[] { SystemColors.
ControlLight
, 1f, Color.FromArgb(255, 241, 241, 241) };
2259
yield return new object[] { SystemColors.
ControlLight
, 1.5f, Color.FromArgb(255, 247, 247, 247) };
2291
yield return new object[] { SystemColors.
ControlLight
, Color.FromArgb(255, 241, 241, 241) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
157
State.Pen(16, SystemColors.
ControlLight
, penStyle),
163
State.Pen(16, SystemColors.
ControlLight
, penStyle),