77 references to ColorTable
System.Windows.Forms (77)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
26return renderer.ColorTable;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (75)
107get { return (ColorTable.UseSystemColors || !ToolStripManager.VisualStylesEnabled); } 302Color.Silver.GetCachedSolidBrushScope() : ColorTable.ButtonSelectedBorder.GetCachedSolidBrushScope(); 373using var pen = ColorTable.ButtonSelectedBorder.GetCachedPenScope(); 387using var pen = ColorTable.ButtonSelectedBorder.GetCachedPenScope(); 420using (var pen = ColorTable.ToolStripBorder.GetCachedPenScope()) 465FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false); 523using var gripLightBrush = ColorTable.GripLight.GetCachedSolidBrushScope(); 531using var gripDarkBrush = ColorTable.GripDark.GetCachedSolidBrushScope(); 566Color borderColor = ColorTable.MenuItemBorder; 578ColorTable.MenuItemSelectedGradientBegin, 579ColorTable.MenuItemSelectedGradientEnd, 622Color borderColor = ColorTable.MenuItemBorder; 635ColorTable.MenuItemSelectedGradientBegin, 636ColorTable.MenuItemSelectedGradientEnd, 662using var pen = ColorTable.MenuItemBorder.GetCachedPenScope(); 701Color begin = (rightToLeft == RightToLeft.No) ? ColorTable.ImageMarginGradientBegin : ColorTable.ImageMarginGradientEnd; 702Color end = (rightToLeft == RightToLeft.No) ? ColorTable.ImageMarginGradientEnd : ColorTable.ImageMarginGradientBegin; 704FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 796RenderBackgroundGradient(e.Graphics, toolStripPanel, ColorTable.ToolStripPanelGradientBegin, ColorTable.ToolStripPanelGradientEnd); 822e.Graphics.Clear(ColorTable.ToolStripContentPanelGradientEnd); 916overflowBottomLeftShadow = ColorTable.ButtonPressedGradientBegin; 921overflowBottomLeftShadow = ColorTable.ButtonSelectedGradientMiddle; 926overflowBottomLeftShadow = ColorTable.ToolStripBorder; 927overflowTopShadow = ColorTable.ToolStripGradientMiddle; 1025using Pen p = new(ColorTable.StatusStripBorder); 1037ColorTable.StatusStripGradientBegin, 1038ColorTable.StatusStripGradientEnd, 1056Color fill = (e.Item.Selected) ? ColorTable.CheckSelectedBackground : ColorTable.CheckBackground; 1057fill = (e.Item.Pressed) ? ColorTable.CheckPressedBackground : fill; 1061using var pen = ColorTable.ButtonSelectedBorder.GetCachedPenScope(); 1089ColorTable.MenuItemPressedGradientBegin, 1090ColorTable.MenuItemPressedGradientEnd, 1095using var pen = ColorTable.MenuBorder.GetCachedPenScope(); 1101RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1178FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, mode, /*flipHorizontal=*/false); 1185using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1197using (var pen = ColorTable.MenuBorder.GetCachedPenScope()) 1205using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1243overflowButtonGradientBegin = ColorTable.ButtonPressedGradientBegin; 1244overflowButtonGradientMiddle = ColorTable.ButtonPressedGradientMiddle; 1245overflowButtonGradientEnd = ColorTable.ButtonPressedGradientEnd; 1246overflowBottomLeftShadow = ColorTable.ButtonPressedGradientBegin; 1251overflowButtonGradientBegin = ColorTable.ButtonSelectedGradientBegin; 1252overflowButtonGradientMiddle = ColorTable.ButtonSelectedGradientMiddle; 1253overflowButtonGradientEnd = ColorTable.ButtonSelectedGradientEnd; 1254overflowBottomLeftShadow = ColorTable.ButtonSelectedGradientMiddle; 1259overflowButtonGradientBegin = ColorTable.OverflowButtonGradientBegin; 1260overflowButtonGradientMiddle = ColorTable.OverflowButtonGradientMiddle; 1261overflowButtonGradientEnd = ColorTable.OverflowButtonGradientEnd; 1262overflowBottomLeftShadow = ColorTable.ToolStripBorder; 1263overflowTopShadow = horizontal ? ColorTable.ToolStripGradientMiddle : ColorTable.ToolStripGradientEnd; 1351using (var brush = ColorTable.ToolStripGradientMiddle.GetCachedSolidBrushScope()) 1385using (var brush = ColorTable.ToolStripGradientEnd.GetCachedSolidBrushScope()) 1415ColorTable.ButtonSelectedGradientBegin, 1416ColorTable.ButtonSelectedGradientEnd, 1423using var brush = ColorTable.ButtonSelectedHighlight.GetCachedSolidBrushScope(); 1439ColorTable.ButtonCheckedGradientBegin, 1440ColorTable.ButtonCheckedGradientEnd, 1447using var brush = ColorTable.ButtonCheckedHighlight.GetCachedSolidBrushScope(); 1495using var foreColorPen = ColorTable.SeparatorDark.GetCachedPenScope(); 1496using var highlightColorPen = ColorTable.SeparatorLight.GetCachedPenScope(); 1551ColorTable.ButtonPressedGradientBegin, 1552ColorTable.ButtonPressedGradientEnd, 1558using var brush = ColorTable.ButtonPressedHighlight.GetCachedSolidBrushScope(); 1595using var pen = ColorTable.ButtonSelectedBorder.GetCachedPenScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
61return renderer.ColorTable;