23 references to GetDarkModeColor
System.Windows.Forms (23)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (23)
75GetDarkModeColor(color).GetCachedSolidBrushScope(); 83GetDarkModeColor(color).GetCachedPenScope(); 139FillBackground(g, bounds, GetDarkModeColor(SystemColors.Menu)); 144FillBackground(g, bounds, GetDarkModeColor(SystemColors.Menu)); 149FillBackground(g, bounds, GetDarkModeColor(e.BackColor)); 162FillBackground(e.Graphics, bounds, GetDarkModeColor(SystemColors.Control)); 251backColor: GetDarkModeColor(e.Item.BackColor), 377using var leftPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 382using var rightPen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 387using var leftPen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 392using var rightPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 406using var foreColorPen = GetDarkModeColor(SystemColors.ControlDark).GetCachedPenScope(); 411using var darkModePen = GetDarkModeColor(SystemColors.ButtonShadow).GetCachedPenScope(); 435? GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope() 436: GetDarkModeColor(SystemColors.Highlight).GetCachedSolidBrushScope(); 469using var arrowBrush = GetDarkModeColor( 521using var darkColorBrush = GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope(); 522using var lightColorBrush = GetDarkModeColor(SystemColors.ControlLight).GetCachedSolidBrushScope(); 567? GetDarkModeColor(SystemColors.HighlightText) 568: GetDarkModeColor(e.ArrowColor); 596? GetDarkModeColor(SystemColors.HighlightText) 598? GetDarkModeColor(SystemColors.GrayText) 599: GetDarkModeColor(e.TextColor);