101 references to ControlDark
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
80new Pen(new SolidBrush(System.Drawing.SystemColors.ControlDark)),
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
17yield return (unchecked((int)0x80000010), SystemColors.ControlDark); 117yield return ("buttonshadow", SystemColors.ControlDark);
System\Drawing\SystemBrushesTests.cs (1)
18yield return Brush(() => SystemBrushes.ControlDark, SystemColors.ControlDark);
System\Drawing\SystemPensTest.cs (1)
20yield return Pen(() => SystemPens.ControlDark, SystemColors.ControlDark);
System.Windows.Forms (41)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
42colors.ButtonShadow = SystemColors.ControlDark;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
180: stockColor ? SystemColors.ControlDark : colors.ButtonShadow); 284: stockColor ? SystemColors.ControlDark : colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
100Color comboColor = SystemInformation.HighContrast ? SystemColors.ControlDark : SystemColors.Control;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
142checkColor = SystemColors.ControlDark;
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
190=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 196return SystemColors.ControlDark; 199return focused ? SystemColors.ControlDark : SystemColors.Window;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
357private static readonly Color s_defaultBackgroundColor = SystemColors.ControlDark;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
788using CreateBrushScope hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1433int darkDistance = ColorDistance(baseline, SystemColors.ControlDark); 1443: SystemColors.ControlDark; 3156_ => SystemColors.ControlDark, 3191_ => SystemColors.ControlDark,
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
328using CreatePenScope hpenDark = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
76private Color _viewBorderColor = SystemColors.ControlDark;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
35public Color BorderColor { get; set; } = SystemColors.ControlDark;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
78DisabledLinkColor = SystemColors.ControlDark
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
515using Pen pen = new(SystemColors.ControlDark, 1)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
60return SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
203arrowColor = Enabled ? SystemColors.HighlightText : SystemColors.ControlDark; 207arrowColor = Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
205Color arrowColor = !item.Enabled ? SystemColors.ControlDark
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1011arrowColor = (Enabled) ? arrowColor : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
681e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
18ForeColor = SystemColors.ControlDark; 304internal override bool ShouldSerializeForeColor() => ForeColor != SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
393Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 524Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
249outerBorderColor = SystemColors.ControlDark;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
194BackColor = SystemColors.ControlDark
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
171PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlDark));
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
740return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.ControlDark : BackColor;
System\Windows\Forms\Rendering\ControlPaint.cs (5)
140=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1129using var bottomRightPen = (stockColor ? SystemColors.ControlDark : hls.Darker(0.5f)).GetCachedPenScope(); 1327? (SystemInformation.HighContrast ? SystemColors.GrayText : SystemColors.ControlDark) 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)
103return SystemColors.ControlDark; 111ARGB dark = SystemColors.ControlDark;
System\Windows\Forms\Rendering\TextRenderer.cs (1)
560: SystemColors.ControlDark;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\ByteViewer.cs (1)
151using Pen pen = new(SystemColors.ControlDark);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
180public Color SeparatorColor { get; } = SystemColors.ControlDark;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
112ShowDropDown(listBox, SystemColors.ControlDark);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
152_splitterLabel.BackColor = SystemColors.ControlDark;
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
143BackColor = SystemColors.ControlDark, 183BackColor = SystemColors.ControlDark, 270BackColor = SystemColors.ControlDark, 315BackColor = SystemColors.ControlDark,
System.Windows.Forms.Tests (42)
System\Windows\Forms\ButtonRenderingTests.cs (4)
66State.PenColor(SystemColors.ControlDark)), 69State.PenColor(SystemColors.ControlDark))); 152State.PenColor(SystemColors.ControlDark)), 155State.PenColor(SystemColors.ControlDark)));
System\Windows\Forms\ControlPaintTests.cs (26)
300yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 53, 53, 53) }; 333yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 9, 9, 9) }; 353yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 212, 212, 212) }; 373yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 159, 159, 159) }; 393yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 132, 132, 132) }; 413yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 106, 106, 106) }; 414yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlDark }; 433yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 79, 79, 79) }; 453yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 53, 53, 53) }; 473yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 0, 0, 0) }; 493yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 203, 203, 203) }; 525yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 0, 0, 0) }; 547yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1685yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.ControlDark, style }; 1714yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlDark }; 2064yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 183, 183, 183) }; 2097yield return new object[] { SystemColors.ControlDark, -1.5f, Color.FromArgb(255, 89, 89, 89) }; 2117yield return new object[] { SystemColors.ControlDark, -1f, Color.FromArgb(255, 112, 112, 112) }; 2137yield return new object[] { SystemColors.ControlDark, -0.5f, Color.FromArgb(255, 137, 137, 137) }; 2157yield return new object[] { SystemColors.ControlDark, -0.25f, Color.FromArgb(255, 148, 148, 148) }; 2177yield return new object[] { SystemColors.ControlDark, 0f, Color.FromArgb(255, 160, 160, 160) }; 2197yield return new object[] { SystemColors.ControlDark, 0.25f, Color.FromArgb(255, 172, 172, 172) }; 2217yield return new object[] { SystemColors.ControlDark, 0.5f, Color.FromArgb(255, 183, 183, 183) }; 2237yield return new object[] { SystemColors.ControlDark, 1f, Color.FromArgb(255, 208, 208, 208) }; 2257yield return new object[] { SystemColors.ControlDark, 1.5f, Color.FromArgb(255, 231, 231, 231) }; 2289yield return new object[] { SystemColors.ControlDark, Color.FromArgb(255, 208, 208, 208) };
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
305State.Pen(16, SystemColors.ControlDark, penStyle), 311State.Pen(16, SystemColors.ControlDark, penStyle),
System\Windows\Forms\PropertyGridTests.cs (9)
63Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 109Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 163Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 1087Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1103Assert.Equal(SystemColors.ControlDark, control.CommandsBorderColor); 1875Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 1891Assert.Equal(SystemColors.ControlDark, control.HelpBorderColor); 3345Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor); 3361Assert.Equal(SystemColors.ControlDark, control.ViewBorderColor);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
54Assert.Equal(SystemColors.ControlDark, item.ForeColor);
System.Windows.Forms.UI.IntegrationTests (5)
PropertyGridTests.cs (5)
107_propertyGrid.CommandsBorderColor.Should().Be(SystemColors.ControlDark); 116_propertyGrid.HelpBorderColor.Should().Be(SystemColors.ControlDark); 347_propertyGrid.ViewBorderColor.Should().Be(SystemColors.ControlDark); 388_propertyGrid.CommandsActiveLinkColor = SystemColors.ControlDark; 389_propertyGrid.CommandsActiveLinkColor.Should().Be(SystemColors.ControlDark);