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