62 references to ControlDark
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
73new Pen(new SolidBrush(System.Drawing.SystemColors.ControlDark)),
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
22public static Brush ControlDark => FromSystemColor(SystemColors.ControlDark);
System\Drawing\SystemPens.cs (1)
22public static Pen ControlDark => FromSystemColor(SystemColors.ControlDark);
System.Windows.Forms (51)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
42colors.ButtonShadow = SystemColors.ControlDark;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
182: stockColor ? SystemColors.ControlDark : colors.ButtonShadow); 285: 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)
171=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 177return SystemColors.ControlDark; 180return 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)
785using CreateBrushScope hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1422int darkDistance = ColorDistance(baseline, SystemColors.ControlDark); 1432: SystemColors.ControlDark; 3147_ => SystemColors.ControlDark, 3182_ => 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)
1008arrowColor = (Enabled) ? arrowColor : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
680e.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\ToolStripSystemDarkModeRenderer.cs (11)
49Color c when c == SystemColors.ControlDark => Color.FromArgb(30, 30, 30), 184using var borderPen = GetDarkModePen(SystemColors.ControlDark); 215using var borderPen = GetDarkModePen(SystemColors.ControlDark); 292? GetDarkModeBrush(SystemColors.ControlDark) 327? GetDarkModeBrush(SystemColors.ControlDark) 335using var linePen = GetDarkModePen(SystemColors.ControlDark); 377using var leftPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 392using var rightPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 406using var foreColorPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 435? GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope() 521using var darkColorBrush = GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
446Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 579: 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\Rendering\ControlPaint.cs (5)
168=> SystemInformation.HighContrast ? SystemColors.WindowFrame : SystemColors.ControlDark; 1161using var bottomRightPen = (stockColor ? SystemColors.ControlDark : hls.Darker(0.5f)).GetCachedPenScope(); 1359? (SystemInformation.HighContrast ? SystemColors.GrayText : SystemColors.ControlDark) 2142Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark; 2269Color 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,