/// <summary> /// GetOffice2010BackstageSilverColorTable /// </summary> /// <param name="ct"></param> /// <param name="factory"></param> /// <returns>Office2010BackstageSilverColorTable</returns> internal static SuperTabColorTable GetMetroBackstageColorTable( SuperTabColorTable ct, ColorFactory factory, DevComponents.DotNetBar.Metro.ColorTables.MetroPartColors metroColors) { if (ct == null) ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable( factory.GetColor(metroColors.BaseColor)); ct.InnerBorder = Color.Empty;// factory.GetColor(metroColors.BaseColor); ct.OuterBorder = Color.Empty; // factory.GetColor(metroColors.BaseColor); ct.ControlBoxDefault.Image = factory.GetColor(metroColors.BaseTextColor); ct.ControlBoxMouseOver.Background = factory.GetColor(metroColors.BaseColorDark); ct.ControlBoxMouseOver.Border = factory.GetColor(metroColors.BaseColorDark); ct.ControlBoxMouseOver.Image = factory.GetColor(metroColors.BaseTextColor); ct.ControlBoxPressed.Background = factory.GetColor(metroColors.BaseColorDark); ct.ControlBoxPressed.Border = factory.GetColor(metroColors.BaseColorDark); ct.ControlBoxPressed.Image = factory.GetColor(metroColors.BaseTextColor); ct.InsertMarker = factory.GetColor(metroColors.BaseTextColor); ct.SelectionMarker = Color.Empty; // factory.GetColor(metroColors.BaseTextColor); return (ct); }
private static SuperTabColorTable GetOneNote2007ColorTable(ColorFactory factory) { SuperTabColorTable ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable(Color.White); ct.InnerBorder = factory.GetColor(0xFFFFFF); ct.OuterBorder = factory.GetColor(0x7C7C94); ct.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2); ct.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C); ct.ControlBoxPressed.Border = factory.GetColor(0xFFBD69); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0x000080); return (ct); }
/// <summary> /// GetOffice2010BackstageSilverColorTable /// </summary> /// <param name="ct"></param> /// <param name="factory"></param> /// <returns>Office2010BackstageSilverColorTable</returns> internal static SuperTabColorTable GetOffice2010BackstageSilverColorTable( SuperTabColorTable ct, ColorFactory factory) { if (ct == null) ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable( factory.GetColor(0xFBFCFD), factory.GetColor(0xE0E3E7)); ct.InnerBorder = factory.GetColor(0xCCCDCE); ct.OuterBorder = factory.GetColor(0xE4E6E8); ct.ControlBoxDefault.Image = factory.GetColor(0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0x000000); ct.InsertMarker = factory.GetColor(0x000000); ct.SelectionMarker = factory.GetColor(0x000000); return (ct); }
/// <summary> /// GetOffice2007BackstageVistaGlassColorTable /// </summary> /// <param name="ct"></param> /// <param name="factory"></param> /// <returns>Office2010BackstageVistaGlassColorTable</returns> internal static SuperTabColorTable GetOffice2007BackstageVistaGlassColorTable( SuperTabColorTable ct, ColorFactory factory) { if (ct == null) ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable( factory.GetColor(0x2F3A4F), factory.GetColor(0x3F4F6E)); ct.InnerBorder = Color.Empty; ct.OuterBorder = factory.GetColor(0x3B4A67); ct.ControlBoxDefault.Image = factory.GetColor(0xFFFFFF); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0xFFFFFF); ct.SelectionMarker = factory.GetColor(0xFF, 0xFFFFFF); return (ct); }
/// <summary> /// GetVS2010BackstageBlueColorTable /// </summary> /// <param name="ct"></param> /// <param name="factory"></param> /// <returns>Office2010BackstageBlueColorTable</returns> internal static SuperTabColorTable GetVS2010BackstageBlueColorTable( SuperTabColorTable ct, ColorFactory factory) { if (ct == null) ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable( factory.GetColor(0xCAD3E2), factory.GetColor(0xAEB9CD)); ct.InnerBorder = factory.GetColor(0xABBCCD); ct.OuterBorder = factory.GetColor(0xCAD5E4); ct.ControlBoxDefault.Image = factory.GetColor(0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0x000000); ct.SelectionMarker = factory.GetColor(0xFF, 0x000000); return (ct); }
/// <summary> /// GetOffice2010BackstageBlackColorTable /// </summary> /// <param name="ct"></param> /// <param name="factory"></param> /// <returns>Office2010BackstageBlackColorTable</returns> internal static SuperTabColorTable GetOffice2010BackstageBlackColorTable( SuperTabColorTable ct, ColorFactory factory) { if (ct == null) ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable( factory.GetColor(0x717171), factory.GetColor(0x3A3A3A)); ct.InnerBorder = factory.GetColor(0x2C2C2C); ct.OuterBorder = factory.GetColor(0x444444); ct.ControlBoxDefault.Image = factory.GetColor(0xFFFFFF); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0x000000); ct.InsertMarker = factory.GetColor(0xFFFFFF); ct.SelectionMarker = factory.GetColor(0xFFFFFF); return (ct); }
GetWinMediaPlayer12ColorTable(ColorFactory factory) { SuperTabColorTable ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xE1EBF7)); ct.InnerBorder = factory.GetColor(0xFFFFFF); ct.OuterBorder = factory.GetColor(0xBCCBDD); ct.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0x000080); return (ct); }
private static SuperTabColorTable GetVisualStudio2008DocumentColorTable(ColorFactory factory) { SuperTabColorTable ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable(Color.White); ct.InnerBorder = factory.GetColor(0xFFFFFF); ct.OuterBorder = factory.GetColor(0x69A1BF); ct.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA); ct.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0); ct.ControlBoxPressed.Border = factory.GetColor(0x3399FF); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0x000080); return (ct); }
public static SuperTabColorTable GetSuperTabBlueDefault(ColorFactory factory) { SuperTabColorTable ct = new SuperTabColorTable(); ct.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xBFDBFF)); ct.InnerBorder = factory.GetColor(0xBFFAFF); ct.OuterBorder = factory.GetColor(0x8DB2E3); ct.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2); ct.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69); ct.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000); ct.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C); ct.ControlBoxPressed.Border = factory.GetColor(0xFFBD69); ct.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000); ct.InsertMarker = factory.GetColor(0xFF, 0x000080); return (ct); }
public object Clone() { SuperTabColorTable sct = new SuperTabColorTable(); sct.Background = (SuperTabLinearGradientColorTable)Background.Clone(); sct.OuterBorder = OuterBorder; sct.InnerBorder = InnerBorder; sct.ControlBoxDefault = (SuperTabControlBoxStateColorTable)ControlBoxDefault.Clone(); sct.ControlBoxMouseOver = (SuperTabControlBoxStateColorTable)ControlBoxMouseOver.Clone(); sct.ControlBoxPressed = (SuperTabControlBoxStateColorTable)ControlBoxPressed.Clone(); sct.InsertMarker = InsertMarker; sct.SelectionMarker = SelectionMarker; return (sct); }
/// <summary> /// Draws the background /// </summary> /// <param name="p"></param> /// <param name="ct"></param> protected override void DrawBackground(ItemPaintArgs p, SuperTabColorTable ct) { Graphics g = p.Graphics; Rectangle r = TabStripItem.DisplayRectangle; int angle = ct.Background.GradientAngle; switch (TabStripItem.TabAlignment) { case eTabStripAlignment.Bottom: r.Y -= 1; break; case eTabStripAlignment.Right: r.X -= 1; break; case eTabStripAlignment.Top: angle += 180; break; } using (Brush lbr = ct.Background.GetBrush(r, angle)) { SmoothingMode sm = g.SmoothingMode; g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default; if (lbr != null) g.FillRectangle(lbr, r); g.SmoothingMode = sm; } }