예제 #1
0
        public SuperTabControlPanel()
        {
            _PanelStyle = new ElementStyle();
            _PanelColor = new SuperTabPanelColorTable();

            _PanelColor.ColorTableChanged += PanelColor_ColorTableChanged;
        }
예제 #2
0
        /// <summary>
        /// GetOffice2010BackstageSilverPanelColorTable
        /// </summary>
        /// <param name="ct"></param>
        /// <param name="factory"></param>
        /// <returns>Office2010BackstageSilverPanelColorTable</returns>
        internal static SuperTabPanelColorTable GetMetroBackstagePanelColorTable(
            SuperTabPanelColorTable ct, ColorFactory factory, DevComponents.DotNetBar.Metro.ColorTables.MetroPartColors metroColors)
        {
            if (ct == null)
                ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(metroColors.CanvasColor), factory.GetColor(metroColors.CanvasColor));

            ct.Default.InnerBorder = Color.Empty;
            ct.Default.OuterBorder = factory.GetColor(metroColors.CanvasColor);
            ct.Default.Background.AdaptiveGradient = false;

            ct.Left = ct.Default;
            ct.Bottom = ct.Default;
            ct.Right = ct.Default;

            return (ct);
        }
예제 #3
0
        /// <summary>
        /// GetOffice2007BackstageVistaGlassPanelColorTable
        /// </summary>
        /// <param name="ct"></param>
        /// <param name="factory"></param>
        /// <returns>Office2010BackstageVistaGlassPanelColorTable</returns>
        internal static SuperTabPanelColorTable GetOffice2007BackstageVistaGlassPanelColorTable(
            SuperTabPanelColorTable ct, ColorFactory factory)
        {
            if (ct == null)
                ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xFFFFFF), factory.GetColor(0xFFFFFF));

            ct.Default.OuterBorder = factory.GetColor(0x3F4F6E);
            ct.Default.InnerBorder = factory.GetColor(0x3F4F6E);
            ct.Default.Background.AdaptiveGradient = false;

            ct.Left = ct.Default;
            ct.Bottom = ct.Default;
            ct.Right = ct.Default;

            return (ct);
        }
예제 #4
0
        private static SuperTabPanelColorTable GetWinMediaPlayer12PanelColorTable(ColorFactory factory)
        {
            SuperTabPanelColorTable ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xEFF6FD));
            ct.Default.Background.AdaptiveGradient = false;
            ct.Default.InnerBorder = factory.GetColor(0xFFFFFF);
            ct.Default.OuterBorder = factory.GetColor(0xBCCBDD);

            ct.Left = ct.Default;
            ct.Bottom = ct.Default;
            ct.Right = ct.Default;

            return (ct);
        }
예제 #5
0
        private static SuperTabPanelColorTable GetVisualStudio2008DocumentPanelColorTable(ColorFactory factory)
        {
            SuperTabPanelColorTable ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xD2E6FA));
            ct.Default.InnerBorder = factory.GetColor(0xFFFFFF);
            ct.Default.OuterBorder = factory.GetColor(0x69A1BF);

            ct.Left = ct.Default;
            ct.Bottom = ct.Default;
            ct.Right = ct.Default;

            return (ct);
        }
예제 #6
0
        private static SuperTabPanelColorTable GetOneNote2007PanelColorTable(ColorFactory factory)
        {
            SuperTabPanelColorTable ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xC4D3F1), factory.GetColor(0x8AA8E4), factory.GetColor(0x8AA8E4), factory.GetColor(0xC4D3F1) },
                new float[] { 0f, .5f, .5f, 1 });

            ct.Default.InnerBorder = factory.GetColor(0xFFFFFF);
            ct.Default.OuterBorder = factory.GetColor(0x7C7C94);

            ct.Left.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xC4D3F1), factory.GetColor(0xC4D3F1));
            ct.Left.InnerBorder = factory.GetColor(0xFFFFFF);
            ct.Left.OuterBorder = factory.GetColor(0x7C7C94);

            ct.Bottom = ct.Default;
            ct.Right = ct.Left;

            return (ct);
        }
예제 #7
0
 public void ResetPanelColor()
 {
     PanelColor = new SuperTabPanelColorTable();
 }
예제 #8
0
        public object Clone()
        {
            SuperTabPanelColorTable pct = new SuperTabPanelColorTable();

            pct.Default = (SuperTabPanelItemColorTable)Default.Clone();
            pct.Left = (SuperTabPanelItemColorTable)Left.Clone();
            pct.Bottom = (SuperTabPanelItemColorTable)Bottom.Clone();
            pct.Right = (SuperTabPanelItemColorTable)Right.Clone();

            return (pct);
        }
예제 #9
0
        public static SuperTabPanelColorTable GetSuperTabPanelBlueDefault(ColorFactory factory)
        {
            SuperTabPanelColorTable ct = new SuperTabPanelColorTable();

            ct.Default.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xF0F6FE), factory.GetColor(0xDBE6F5));

            ct.Default.InnerBorder = factory.GetColor(0xBFFAFF);
            ct.Default.OuterBorder = factory.GetColor(0x8DB2E3);

            ct.Left = ct.Default;
            ct.Bottom = ct.Default;
            ct.Right = ct.Default;

            return (ct);
        }
예제 #10
0
        /// <summary>
        /// Sets the default color tables
        /// </summary>
        internal void SetDefaultColorTable()
        {
            _DefaultTabColorTable =
                SuperTabStyleColorFactory.GetItemColorTable(TabItem.TabStyle, ColorFactory.Empty);

            _DefaultPanelColorTable =
                SuperTabStyleColorFactory.GetPanelColorTable(TabItem.TabStyle, ColorFactory.Empty);
        }