74 references to ColorTable
System.Windows.Forms (74)
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
621return renderer.ColorTable;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (72)
108get { return (ColorTable.UseSystemColors || !ToolStripManager.VisualStylesEnabled); } 275using (Brush b = new SolidBrush(ColorTable.ButtonSelectedBorder)) { 334using (Pen p = new Pen(ColorTable.ButtonSelectedBorder)) { 346using (Pen p = new Pen(ColorTable.ButtonSelectedBorder)) { 378using (Pen p = new Pen(ColorTable.ToolStripBorder)) { 415FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false); 469using (Brush b = new SolidBrush(ColorTable.GripLight)) { 477using (Brush b = new SolidBrush(ColorTable.GripDark)) { 509Color borderColor = ColorTable.MenuItemBorder; 516using (Brush b = new SolidBrush(ColorTable.MenuItemSelected)) { 549Color borderColor = ColorTable.MenuItemBorder; 558using (Brush b = new LinearGradientBrush(bounds, ColorTable.MenuItemSelectedGradientBegin, ColorTable.MenuItemSelectedGradientEnd, LinearGradientMode.Vertical)) { 615Color begin = (rightToLeft == RightToLeft.No) ? ColorTable.ImageMarginGradientBegin : ColorTable.ImageMarginGradientEnd; 616Color end = (rightToLeft == RightToLeft.No) ? ColorTable.ImageMarginGradientEnd : ColorTable.ImageMarginGradientBegin; 618FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 695RenderBackgroundGradient(e.Graphics, toolStripPanel, ColorTable.ToolStripPanelGradientBegin, ColorTable.ToolStripPanelGradientEnd); 717e.Graphics.Clear(ColorTable.ToolStripContentPanelGradientEnd); 801overflowBottomLeftShadow = ColorTable.ButtonPressedGradientBegin; 805overflowBottomLeftShadow = ColorTable.ButtonSelectedGradientMiddle; 809overflowBottomLeftShadow = ColorTable.ToolStripBorder; 810overflowTopShadow = ColorTable.ToolStripGradientMiddle; 903RenderBackgroundGradient(e.Graphics, statusStrip, ColorTable.StatusStripGradientBegin, ColorTable.StatusStripGradientEnd, statusStrip.Orientation); 914Color fill = (e.Item.Selected) ? ColorTable.CheckSelectedBackground : ColorTable.CheckBackground; 915fill = (e.Item.Pressed) ? ColorTable.CheckPressedBackground : fill; 920using (Pen p = new Pen(ColorTable.ButtonSelectedBorder)) { 941using (Brush b = new LinearGradientBrush(bounds, ColorTable.MenuItemPressedGradientBegin, ColorTable.MenuItemPressedGradientEnd, LinearGradientMode.Vertical)) { 946using (Pen p = new Pen(ColorTable.MenuBorder)) { 952RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1018FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.Graphics, bounds, iconWellGradientWidth, iconWellGradientWidth, mode, /*flipHorizontal=*/false); 1026using (Brush b = new SolidBrush(ColorTable.ToolStripDropDownBackground)) { 1038using (Pen p = new Pen(ColorTable.MenuBorder)) { 1044using (Brush b = new SolidBrush(ColorTable.ToolStripDropDownBackground)) { 1078overflowButtonGradientBegin = ColorTable.ButtonPressedGradientBegin; 1079overflowButtonGradientMiddle = ColorTable.ButtonPressedGradientMiddle; 1080overflowButtonGradientEnd = ColorTable.ButtonPressedGradientEnd; 1081overflowBottomLeftShadow = ColorTable.ButtonPressedGradientBegin; 1085overflowButtonGradientBegin = ColorTable.ButtonSelectedGradientBegin; 1086overflowButtonGradientMiddle = ColorTable.ButtonSelectedGradientMiddle; 1087overflowButtonGradientEnd = ColorTable.ButtonSelectedGradientEnd; 1088overflowBottomLeftShadow = ColorTable.ButtonSelectedGradientMiddle; 1092overflowButtonGradientBegin = ColorTable.OverflowButtonGradientBegin; 1093overflowButtonGradientMiddle = ColorTable.OverflowButtonGradientMiddle; 1094overflowButtonGradientEnd = ColorTable.OverflowButtonGradientEnd; 1095overflowBottomLeftShadow = ColorTable.ToolStripBorder; 1096overflowTopShadow = (horizontal) ? ColorTable.ToolStripGradientMiddle : ColorTable.ToolStripGradientEnd; 1170using (Brush b = new SolidBrush(ColorTable.ToolStripGradientMiddle)) { 1201using (Brush b = new SolidBrush(ColorTable.ToolStripGradientEnd)) { 1224using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonSelectedGradientBegin, ColorTable.ButtonSelectedGradientEnd, LinearGradientMode.Vertical)) { 1229Color fillColor = ColorTable.ButtonSelectedHighlight; 1241using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonCheckedGradientBegin, ColorTable.ButtonCheckedGradientEnd, LinearGradientMode.Vertical)) { 1247Color fillColor = ColorTable.ButtonCheckedHighlight; 1257Color foreColor = ColorTable.SeparatorDark; 1258Color highlightColor = ColorTable.SeparatorLight; 1355using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonPressedGradientBegin, ColorTable.ButtonPressedGradientEnd, LinearGradientMode.Vertical)) { 1361Color fillColor = ColorTable.ButtonPressedHighlight; 1395using (Pen p = new Pen(ColorTable.ButtonSelectedBorder)) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
671return renderer.ColorTable;