public Windows7ColorTable(eWindows7ColorScheme color) { Windows7BlueFactory.InitializeBlueColorTable(this, ColorFactory.Empty); }
public Windows7ColorTable(eWindows7ColorScheme color, Color blendColor) { Windows7BlueFactory.InitializeBlueColorTable(this, blendColor.IsEmpty ? ColorFactory.Empty : new ColorBlendFactory(blendColor)); }
/// <summary> /// Generates and Changes the Windows 7 color table for all DotNetBar controls on all open forms. You can use this function for example to /// create custom color scheme based on the base color and apply it to all DotNetBar control on given form. The new color table will be applied only to controls that /// have Windows 7, Office 2007 and 2010 style. Any other style will be unchanged. /// </summary> /// <param name="colorTable">Base color table to use for creation of custom color table that will be applied.</param> /// <param name="baseSchemeColor">Base color used to create custom color table.</param> public static void ChangeWindows7ColorTable(eWindows7ColorScheme colorTable, Color baseSchemeColor) { // Make sure we use black color table in our global renderer if (GlobalManager.Renderer is Office2007Renderer) { ((Office2007Renderer)GlobalManager.Renderer).ColorTable.Dispose(); ((Office2007Renderer)GlobalManager.Renderer).ColorTable = new Windows7ColorTable(colorTable, baseSchemeColor); } else throw new InvalidOperationException("GlobalManager.Renderer is not Office2007Renderer. Cannot change the color table. Make sure that renderer is set to Office2007Renderer"); ApplyOffice2007ColorTable(); }