Beispiel #1
0
        public override void Paint(SwitchButtonRenderEventArgs e)
        {
            SwitchButtonItem switchButton = e.SwitchButtonItem;
            bool enabled = switchButton.Enabled;
            SwitchButtonColorTable colorTable = enabled ? this.ColorTable.SwitchButton.Default : this.ColorTable.SwitchButton.Disabled;
            if (colorTable == null) colorTable = new SwitchButtonColorTable();

            Rectangle bounds = switchButton.Bounds;
            Graphics g = e.Graphics;

            if (e.ItemPaintArgs != null && e.ItemPaintArgs.ContainerControl is AdvTree.AdvTree)
            {
                if (switchButton.ItemAlignment == eItemAlignment.Far)
                    bounds.X = bounds.Right - switchButton.Margin.Right - switchButton.ButtonWidth;
                else if (switchButton.ItemAlignment == eItemAlignment.Center)
                    bounds.X += (bounds.Width - switchButton.ButtonWidth) / 2;
            }
            else
                bounds.X = bounds.Right - switchButton.Margin.Right - switchButton.ButtonWidth;
            bounds.Width = switchButton.ButtonWidth;
            bounds.Y += switchButton.Margin.Top + (bounds.Height - switchButton.Margin.Vertical - switchButton.ButtonHeight) / 2;
            bounds.Height = switchButton.ButtonHeight;
            switchButton.ButtonBounds = bounds;
            bool rendersOnGlass = (e.ItemPaintArgs != null && e.ItemPaintArgs.GlassEnabled && (switchButton.Parent is CaptionItemContainer && !(e.ItemPaintArgs.ContainerControl is QatToolbar) || (switchButton.Parent is RibbonTabItemContainer && switchButton.EffectiveStyle == eDotNetBarStyle.Office2010)));
            
            if (switchButton.TextVisible && !string.IsNullOrEmpty(switchButton.Text))
            {
                Rectangle textRect = switchButton.Bounds;
                textRect.Width -= switchButton.ButtonWidth + switchButton.Margin.Right;
                textRect.Y += switchButton.TextPadding.Top;
                textRect.Height -= switchButton.TextPadding.Vertical;
                bool rtl = e.RightToLeft;
                Color textColor = (switchButton.TextColor.IsEmpty || !enabled) ? colorTable.TextColor : switchButton.TextColor;
                Font textFont = e.Font;
                eTextFormat tf = eTextFormat.Left | eTextFormat.VerticalCenter;
                if (switchButton.TextMarkupBody != null)
                {
                    TextMarkup.MarkupDrawContext d = new TextMarkup.MarkupDrawContext(g, textFont, textColor, rtl);
                    d.HotKeyPrefixVisible = !((tf & eTextFormat.HidePrefix) == eTextFormat.HidePrefix);
                    if ((tf & eTextFormat.VerticalCenter) == eTextFormat.VerticalCenter)
                        textRect.Y = switchButton.TopInternal + (switchButton.Bounds.Height - switchButton.TextMarkupBody.Bounds.Height) / 2;
                    else if ((tf & eTextFormat.Bottom) == eTextFormat.Bottom)
                        textRect.Y += (switchButton.TextMarkupBody.Bounds.Height - textRect.Height) + 1;
                    textRect.Height = switchButton.TextMarkupBody.Bounds.Height;
                    switchButton.TextMarkupBody.Bounds = textRect;
                    switchButton.TextMarkupBody.Render(d);
                }
                else
                {
#if FRAMEWORK20
                    if (rendersOnGlass)
                    {
                        if (!e.ItemPaintArgs.CachedPaint)
                            Office2007RibbonControlPainter.PaintTextOnGlass(g, switchButton.Text, textFont, textRect, TextDrawing.GetTextFormat(tf));
                    }
                    else
#endif
                        TextDrawing.DrawString(g, switchButton.Text, textFont, textColor, textRect, tf);
                }
            }


            bool switchState = switchButton.Value;
            string offText = switchButton.OffText;
            string onText = switchButton.OnText;
            Font font = (switchButton.SwitchFont == null) ? new Font(e.Font, FontStyle.Bold) : switchButton.SwitchFont;
            Color textOffColor = (switchButton.OffTextColor.IsEmpty || !enabled) ? colorTable.OffTextColor : switchButton.OffTextColor;
            Color textOnColor = (switchButton.OnTextColor.IsEmpty || !enabled) ? colorTable.OnTextColor : switchButton.OnTextColor;

            int switchWidth = switchButton.SwitchWidth;
            int switchX = Math.Min(bounds.X + switchButton.SwitchOffset, bounds.Right);
            if (switchState)
            {
                switchX = Math.Max(bounds.Right - switchWidth - switchButton.SwitchOffset, bounds.X);
            }

            Color borderColor = (switchButton.BorderColor.IsEmpty || !enabled) ? colorTable.BorderColor : switchButton.BorderColor;
            Color offBackgroundColor = (switchButton.OffBackColor.IsEmpty || !enabled) ? colorTable.OffBackColor : switchButton.OffBackColor;
            Color onBackgroundColor = (switchButton.OnBackColor.IsEmpty || !enabled) ? colorTable.OnBackColor : switchButton.OnBackColor;

            // Main control border
            DisplayHelp.DrawRectangle(g, borderColor, bounds);

            // Set clip
            Rectangle innerBoundsClip = bounds;
            innerBoundsClip.Inflate(-2, -2);
            GraphicsPath innerClipPath = new GraphicsPath();
            innerClipPath.AddRectangle(innerBoundsClip);
            Region oldClip = g.Clip;
            g.SetClip(innerClipPath, System.Drawing.Drawing2D.CombineMode.Intersect);
            innerClipPath.Dispose();


            // Draw On Background, it is to the left of the switch
            Rectangle onBounds = new Rectangle(switchX - (bounds.Width - switchWidth), bounds.Y, bounds.Width - switchWidth + 2, bounds.Height);
            switchButton.OnPartBounds = onBounds;
            onBounds.Inflate(-2, -2);
            DisplayHelp.FillRectangle(g, onBounds, onBackgroundColor);
            if (!string.IsNullOrEmpty(onText))
            {
                // Draw On Text
                if (rendersOnGlass && BarUtilities.UseTextRenderer)
                    TextDrawing.DrawStringLegacy(g, onText, font, textOnColor, onBounds, eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter);
                else
                    TextDrawing.DrawString(g, onText, font, textOnColor, onBounds, eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter | eTextFormat.NoClipping);
            }
           
            // Draw Off Background, it is on the right of the switch 
            Rectangle offBounds = new Rectangle(switchX + switchWidth - 2, bounds.Y, bounds.Width - switchWidth + 2, bounds.Height);
            switchButton.OffPartBounds = offBounds;
            offBounds.Inflate(-2, -2);
            DisplayHelp.FillRectangle(g, offBounds, offBackgroundColor);

            if (!string.IsNullOrEmpty(offText))
            {
                // Draw Off Text
                if (rendersOnGlass && BarUtilities.UseTextRenderer)
                    TextDrawing.DrawStringLegacy(g, offText, font, textOffColor, offBounds, eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter);
                else
                    TextDrawing.DrawString(g, offText, font, textOffColor, offBounds, eTextFormat.HorizontalCenter | eTextFormat.VerticalCenter | eTextFormat.NoClipping);
            }
            
            // Restore old clip
            g.Clip = oldClip;
            oldClip.Dispose();

            // Draw Switch on top
            Rectangle switchBounds = new Rectangle(switchX, bounds.Y, switchWidth, bounds.Height);
            switchButton.SwitchBounds = switchBounds;
            Color switchBorderColor = (switchButton.SwitchBorderColor.IsEmpty || !enabled) ? colorTable.SwitchBorderColor : switchButton.SwitchBorderColor;
            Color switchFillColor = (switchButton.SwitchBackColor.IsEmpty || !enabled) ? colorTable.SwitchBackColor : switchButton.SwitchBackColor;

            DisplayHelp.FillRectangle(g, switchBounds, switchFillColor);
            if(!switchBorderColor.IsEmpty)
                DisplayHelp.DrawRectangle(g, switchBorderColor, switchBounds);
            
            if (switchButton.IsReadOnly && switchButton.ShowReadOnlyMarker)
            {
                Color markerColor = switchButton.ReadOnlyMarkerColor;
                Rectangle marker = new Rectangle(switchBounds.X + (switchBounds.Width - 7) / 2, switchBounds.Y + (switchBounds.Height - 10) / 2, 7, 10);
                SmoothingMode sm = g.SmoothingMode;
                g.SmoothingMode = SmoothingMode.None;
                using (SolidBrush brush = new SolidBrush(markerColor))
                {
                    g.FillRectangle(brush, new Rectangle(marker.X, marker.Y + 4, marker.Width, marker.Height - 4));
                    g.FillRectangle(Brushes.White, new Rectangle(marker.X + 3, marker.Y + 5, 1, 2));
                }
                using (Pen pen = new Pen(markerColor, 1))
                {
                    g.DrawLine(pen, marker.X + 2, marker.Y + 0, marker.X + 4, marker.Y + 0);
                    g.DrawLine(pen, marker.X + 1, marker.Y + 1, marker.X + 1, marker.Y + 3);
                    g.DrawLine(pen, marker.X + 5, marker.Y + 1, marker.X + 5, marker.Y + 3);
                }
                g.SmoothingMode = sm;
            }
        }
Beispiel #2
0
        public static void InitializeColorTable(Office2007ColorTable table, ColorFactory factory)
        {
            #region RibbonControl Start Images
            table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010NormalSilver.png");
            table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010HotSilver.png");
            table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010PressedSilver.png");
            #endregion

            #region RibbonControl
            table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x3E3F3F), factory.GetColor(0x4E4E4E));
            table.RibbonControl.InnerBorder = LinearGradientColorTable.Empty;
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0x717171));
            table.RibbonControl.TabsGlassBackground = new LinearGradientColorTable(Color.Transparent, factory.GetColor(0x494949));
            table.RibbonControl.TabDividerBorder = Color.Empty; // factory.GetColor(0xA7BAD1);
            table.RibbonControl.TabDividerBorderLight = Color.Empty; // factory.GetColor(0xF4F8FD);
            table.RibbonControl.CornerSize = 1;
            table.RibbonControl.PanelTopBackgroundHeight = 0;
            table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xC9C9C9), factory.GetColor(0xA3A3A3));
            table.RibbonControl.PanelBottomBackground = null;
            #endregion

            #region Item Group
            table.ItemGroup.OuterBorder = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xC0C3C8));
            table.ItemGroup.InnerBorder = LinearGradientColorTable.Empty;
            table.ItemGroup.TopBackground = LinearGradientColorTable.Empty;
            table.ItemGroup.BottomBackground = LinearGradientColorTable.Empty;
            table.ItemGroup.ItemGroupDividerDark = Color.Empty;
            table.ItemGroup.ItemGroupDividerLight = Color.Empty;
            #endregion

            #region RibbonBar
            table.RibbonBar.Default = GetRibbonBar(factory);
            table.RibbonBar.MouseOver = GetRibbonBarMouseOver(factory);
            table.RibbonBar.Expanded = GetRibbonBarExpanded(factory);
            #endregion

            #region ButtonItem Colors Initialization
            table.RibbonButtonItemColors.Clear();
            table.ButtonItemColors.Clear();
            table.MenuButtonItemColors.Clear();
            // Orange
            Office2007ButtonItemColorTable cb = GetButtonItemBlueOrange(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.ButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemBlueOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.ButtonItemColors.Add(cb);
            // Blue
            cb = Office2007ColorTableFactory.GetButtonItemBlueBlue(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlueBlueWithBackground(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.MouseOverSplitInactive = cb.Default;
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.ButtonItemColors.Add(cb);
            // Magenta
            cb = Office2007ColorTableFactory.GetButtonItemBlueMagenta(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlueMagentaWithBackground(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.MouseOverSplitInactive = cb.Default;
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.ButtonItemColors.Add(cb);

            cb = Office2010BlueFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            table.ButtonItemColors.Add(cb);

            table.ButtonItemColors.Add(ButtonItemStaticColorTables.CreateBlueOrbColorTable(factory));

            table.BackstageButtonItemColors.Clear();
            table.BackstageButtonItemColors.Add(GetButtonItemBackstageDefault(factory));
            #endregion

            #region NavigationPane ButtonItem Initialization
            table.NavigationPaneButtonItemColors.Clear();
            table.NavigationPaneButtonItemColors.Add(GetNavigationPaneButtonItemTable(factory));
            #endregion

            #region RibbonTabItem Colors Initialization
            table.RibbonTabItemColors.Clear();
            Office2007RibbonTabItemColorTable rt = GetRibbonTabItemDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);

            // Magenta
            rt = GetRibbonTabItemMagenta(factory);
            rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            table.RibbonTabItemColors.Add(rt);

            // Green
            rt = GetRibbonTabItemBlueGreen(factory);
            rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            table.RibbonTabItemColors.Add(rt);

            // Orange
            rt = GetRibbonTabItemBlueOrange(factory);
            rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            table.RibbonTabItemColors.Add(rt);
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            table.RibbonTabGroupColors.Clear();
            // Default
            Office2007RibbonTabGroupColorTable tg = Office2010BlueFactory.GetRibbonTabGroupDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            table.RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = Office2010BlueFactory.GetRibbonTabGroupMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            table.RibbonTabGroupColors.Add(tg);

            // Green
            tg = Office2010BlueFactory.GetRibbonTabGroupGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            table.RibbonTabGroupColors.Add(tg);

            // Orange
            tg = Office2010BlueFactory.GetRibbonTabGroupOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            table.RibbonTabGroupColors.Add(tg);
            #endregion

            #region Initialize Bar
            table.Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(0x4B4B4B), factory.GetColor(0x3F3F3F));
            table.Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0x3F3F3F), factory.GetColor(0x333333));
            table.Bar.ToolbarBottomBorder = factory.GetColor(0x525252);
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(0xA7ABB0);
            table.Bar.StatusBarTopBorder = factory.GetColor(0x2C2C2C);
            table.Bar.StatusBarTopBorderLight = factory.GetColor(Color.FromArgb(32, Color.White));
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x4B4B4B), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x333333), 1f));
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(0xA7ABB0), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(0xE2E4E7), Color.Empty);
            table.Menu.SideBorderLight = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xE5E5E5), Color.Empty);
            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xFFFFFF), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(0xA7ABB0);
            table.Menu.FileContainerBorderLight = Color.Transparent;
            table.Menu.FileColumnOneBackground = factory.GetColor(0xFFFFFF);
            table.Menu.FileColumnOneBorder = factory.GetColor(0xA7ABB0);
            table.Menu.FileColumnTwoBackground = factory.GetColor(0xFFFFFF);
            table.Menu.FileBottomContainerBackgroundBlend.Clear();
            //table.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
            //    new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xEBF3FC), 0F),
            //    new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xEBF3FC), 1F)});
            #endregion

            #region ComboBox
            table.ComboBox.Default.Background = factory.GetColor(0xC6C6C6);
            table.ComboBox.Default.Border = factory.GetColor(0x919191);
            table.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandText = factory.GetColor(0x505153);
            table.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            int editBorderColor = 0x313131;
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(editBorderColor);
            table.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xE2E2E2), factory.GetColor(0xC4C4C4), 90);
            table.ComboBox.DefaultStandalone.ExpandBorderInner = LinearGradientColorTable.Empty;// new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x919191), Color.Empty, 90);
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x555658);
            table.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.MouseOver.Border = factory.GetColor(0x919191);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xF5E4A1), factory.GetColor(0xF6EEC9), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xFBF6E3));
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xE8C14F), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(0x5C5641);
            table.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DroppedDown.Border = factory.GetColor(0x919191);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xE4C9A7), factory.GetColor(0xEFBC61), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xD4C0A9), factory.GetColor(0xEFF1B9), 90);
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xC2923B), Color.Empty, 90);
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x454F5A);
            #endregion

            #region Dialog Launcher
            table.DialogLauncher.Default.DialogLauncher = factory.GetColor(0x6B6B6B);
            table.DialogLauncher.Default.DialogLauncherShade = Color.Transparent;// factory.GetColor(172, 0xFFFFFF);

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x968C64);
            table.DialogLauncher.MouseOver.DialogLauncherShade = Color.Transparent;
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF1DF99), factory.GetColor(0xF1D77B));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xF1D77B), factory.GetColor(0xF1E3AF));
            table.DialogLauncher.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFAF5E2), factory.GetColor(0xFAF7EE));
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE5BF4B), Color.Empty);

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x6B737D);
            table.DialogLauncher.Pressed.DialogLauncherShade = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            table.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE4C8A5), factory.GetColor(0xEDC891));
            table.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xEEBC62), factory.GetColor(0xEEE48B));
            table.DialogLauncher.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD4BFA8), factory.GetColor(0xEFF1C2));
            table.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC2923B), factory.GetColor(0xC2B462));
            #endregion

            #region System Button, Form
            // Default state no background
            table.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButton.Default.LightShade = Color.Empty;
            table.SystemButton.Default.DarkShade = factory.GetColor(0x525565);

            // Mouse over state
            table.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButton.MouseOver.LightShade = Color.Empty;
            table.SystemButton.MouseOver.DarkShade = factory.GetColor(0x525565);
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0x949494), factory.GetColor(0x8B8B8B));
            table.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x8B8B8B), factory.GetColor(0x777777));
            table.SystemButton.MouseOver.TopHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButton.MouseOver.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButton.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x515151));
            table.SystemButton.MouseOver.InnerBorder = LinearGradientColorTable.Empty;

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButton.Pressed.LightShade = Color.Empty;
            table.SystemButton.Pressed.DarkShade = factory.GetColor(0x525565);
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0x686868));
            table.SystemButton.Pressed.TopHighlight = null;// new LinearGradientColorTable(factory.GetColor(0xB8CEE9), Color.Transparent);
            table.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x717171));
            table.SystemButton.Pressed.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xC6EAFD), Color.Transparent);
            table.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x515151));
            table.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x636363));

            // CLOSE Default state no background
            table.SystemButtonClose = new Office2007SystemButtonColorTable();
            table.SystemButtonClose.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButtonClose.Default.LightShade = Color.Empty;
            table.SystemButtonClose.Default.DarkShade = factory.GetColor(0x525565);

            // Mouse over state
            table.SystemButtonClose.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButtonClose.MouseOver.LightShade = Color.Empty;
            table.SystemButtonClose.MouseOver.DarkShade = factory.GetColor(0x9B3D3D);
            table.SystemButtonClose.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFF8482), factory.GetColor(0xFB7F7E));
            table.SystemButtonClose.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xF67979), factory.GetColor(0xE36162));
            table.SystemButtonClose.MouseOver.TopHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButtonClose.MouseOver.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButtonClose.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9B3D3D));
            table.SystemButtonClose.MouseOver.InnerBorder = LinearGradientColorTable.Empty;

            // Pressed
            table.SystemButtonClose.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0xDCDCDC));
            table.SystemButtonClose.Pressed.LightShade = Color.Empty;
            table.SystemButtonClose.Pressed.DarkShade = factory.GetColor(0x9B3D3D);
            table.SystemButtonClose.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF27776));
            table.SystemButtonClose.Pressed.TopHighlight = null;// new LinearGradientColorTable(factory.GetColor(0xB8CEE9), Color.Transparent);
            table.SystemButtonClose.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xF27776));
            table.SystemButtonClose.Pressed.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xC6EAFD), Color.Transparent);
            table.SystemButtonClose.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9B3D3D));
            table.SystemButtonClose.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xDA6163));

            // Form border
            table.Form.Active.BorderColors = new Color[] {
                factory.GetColor(0x636363),
                factory.GetColor(0x838383),
                factory.GetColor(0x777777),
                factory.GetColor(0x777777),
                factory.GetColor(0x777777)
            };

            table.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(0x777777),
                factory.GetColor(0x9E9E9E),
                factory.GetColor(0x9E9E9E),
                factory.GetColor(0x9E9E9E),
                factory.GetColor(0x9E9E9E)
            };

            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x797979), factory.GetColor(0x797979));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x787878), factory.GetColor(0x717171));
            table.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0x5E5E5E), factory.GetColor(0x838383) };
            table.Form.Active.CaptionText = factory.GetColor(0xFFFFFF);
            table.Form.Active.CaptionTextExtra = factory.GetColor(0xE2E2E2);

            // Form Caption Inactive
            table.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x9E9E9E));
            table.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x9E9E9E));
            table.Form.Inactive.CaptionText = factory.GetColor(0xD4D4D4);
            table.Form.Inactive.CaptionTextExtra = factory.GetColor(0xD4D4D4);

            table.Form.BackColor = factory.GetColor(0xD3D3D3);
            table.Form.TextColor = factory.GetColor(0x000000);

            table.Form.MdiClientBackgroundImage = BarFunctions.LoadBitmap("SystemImages.Office2010BlackClientBackground.png");
            #endregion

            #region Quick Access Toolbar Background
            table.QuickAccessToolbar.Active.TopBackground = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xDEE7F4), factory.GetColor(0xE6EEF9));
            table.QuickAccessToolbar.Active.BottomBackground = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xDBE7F7), factory.GetColor(0xC9D9EE));
            table.QuickAccessToolbar.Active.OutterBorderColor = Color.Empty; // factory.GetColor(0xF6F9FC);
            table.QuickAccessToolbar.Active.MiddleBorderColor = Color.Empty; // factory.GetColor(0x9AB3D5);
            table.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty; //  factory.GetColor(0xD2E3F9);

            table.QuickAccessToolbar.Inactive.TopBackground = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xE6ECF3), factory.GetColor(0xCED8E6));
            table.QuickAccessToolbar.Inactive.BottomBackground = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xCED8E6), factory.GetColor(0xC8D3E3));
            table.QuickAccessToolbar.Inactive.OutterBorderColor = Color.Empty; // factory.GetColor(0xF6F9FC);
            table.QuickAccessToolbar.Inactive.MiddleBorderColor = Color.Empty; // factory.GetColor(0x9AB3D5);
            table.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            table.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x797979));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0x848484);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            table.QuickAccessToolbar.Standalone.InnerBorderColor = Color.Empty; // factory.GetColor(0xDCE8F7);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xF0F2F5);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x3B3B3B);

            table.QuickAccessToolbar.Active.GlassBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            table.QuickAccessToolbar.Inactive.GlassBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            table.TabControl.Default = new Office2007TabItemStateColorTable();
            table.TabControl.Default.TopBackground = new LinearGradientColorTable(factory.GetColor(0x919191), factory.GetColor(0x7E7E7E));
            table.TabControl.Default.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x7E7E7E), factory.GetColor(0x6C6C6C));
            table.TabControl.Default.InnerBorder = factory.GetColor(0x919191);
            table.TabControl.Default.OuterBorder = factory.GetColor(editBorderColor);
            table.TabControl.Default.Text = factory.GetColor(0xFFFFFF);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xC1C1C1), factory.GetColor(0xAEAEAE));
            table.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xAEAEAE), factory.GetColor(0x919191));
            table.TabControl.MouseOver.InnerBorder = factory.GetColor(0x919191);
            table.TabControl.MouseOver.OuterBorder = factory.GetColor(0x343434);
            table.TabControl.MouseOver.Text = factory.GetColor(0x000000);

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            table.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0x919191), factory.GetColor(0xFFFFFF));
            table.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xFFFFFF));
            table.TabControl.Selected.InnerBorder = factory.GetColor(0x919191);
            table.TabControl.Selected.OuterBorder = factory.GetColor(0x343434);
            table.TabControl.Selected.Text = factory.GetColor(0x000000);

            table.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(0x6A6A6A), Color.Empty);
            table.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.TabControl.TabPanelBorder = factory.GetColor(editBorderColor);
            #endregion

            #region CheckBoxItem
            Office2007CheckBoxColorTable chk = table.CheckBoxItem;
            chk.Default.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF2F3F5), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0x898B8C);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xE8E9EB), factory.GetColor(0xF3F3F4));
            chk.Default.CheckInnerBorder = factory.GetColor(0xB6B8BA);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x717374), Color.Empty);
            chk.Default.Text = factory.GetColor(0x000000);

            chk.MouseOver.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFCF1C2), Color.Empty);
            chk.MouseOver.CheckBorder = factory.GetColor(0xCF9037);
            chk.MouseOver.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xFAECC8), factory.GetColor(0xFCF3DD));
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xFCAD5D);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4B4944), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x000000);

            chk.Pressed.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFCE7BD));
            chk.Pressed.CheckBorder = factory.GetColor(0xC26D1D);
            chk.Pressed.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xFAE0A2), factory.GetColor(0xFDF2D7));
            chk.Pressed.CheckInnerBorder = factory.GetColor(0xFCA558);
            chk.Pressed.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4B4944), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x3B3B3B);

            chk.Disabled.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            chk.Disabled.CheckBorder = factory.GetColor(0xB6B8BA);
            chk.Disabled.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xF8F8F9));
            chk.Disabled.CheckInnerBorder = factory.GetColor(0xDFE0E0);
            chk.Disabled.CheckSign = new LinearGradientColorTable(factory.GetColor(0xB1B3B4), Color.Empty);
            chk.Disabled.Text = factory.GetColor(0x8D8D8D);
            #endregion

            #region Scroll Bar Colors
            InitializeScrollBarColorTable(table, factory);
            InitializeAppScrollBarColorTable(table, factory);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0x373739);
            pct.InnerBorder = factory.GetColor(0xA6A6A6);
            pct.Chunk = new GradientColorTable(0x69922A, 0xE7F2D4, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xEEFFD7)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0x8DB254)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0x69922B)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x7D7E7F, 0x909190, 0);

            // Paused State
            pct = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0x373739);
            pct.InnerBorder = factory.GetColor(0xA6A6A6);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x7D7E7F, 0x909190, 0);

            // Error State
            pct = table.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0x373739);
            pct.InnerBorder = factory.GetColor(0xA6A6A6);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x7D7E7F, 0x909190, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = table.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(0xF0F2F5);
            gallery.GroupLabelText = factory.GetColor(0x3B3B3B);
            gallery.GroupLabelBorder = factory.GetColor(0xF0F2F5);
            #endregion

            #region Legacy Colors
            table.LegacyColors.BarBackground = factory.GetColor(0xC9C9C9);
            table.LegacyColors.BarBackground2 = factory.GetColor(0xA3A3A3);
            table.LegacyColors.BarStripeColor = factory.GetColor(0x525252);
            table.LegacyColors.BarCaptionBackground = factory.GetColor(0x686868);
            table.LegacyColors.BarCaptionBackground2 = Color.Empty;
            table.LegacyColors.BarCaptionInactiveBackground = factory.GetColor(0x7c7c7c);
            table.LegacyColors.BarCaptionInactiveBackground2 = Color.Empty;
            table.LegacyColors.BarCaptionInactiveText = factory.GetColor(0xFFFFFF);
            table.LegacyColors.BarCaptionText = factory.GetColor(0xFFFFFF);
            table.LegacyColors.BarFloatingBorder = factory.GetColor(0x444444);
            table.LegacyColors.BarPopupBackground = factory.GetColor(0xFFFFFF);
            table.LegacyColors.BarPopupBorder = factory.GetColor(0xA7ABB0);
            table.LegacyColors.ItemBackground = Color.Empty;
            table.LegacyColors.ItemBackground2 = Color.Empty;
            table.LegacyColors.ItemCheckedBackground = factory.GetColor(0xFCD578);
            table.LegacyColors.ItemCheckedBackground2 = factory.GetColor(0xFBC84F);
            table.LegacyColors.ItemCheckedBorder = factory.GetColor(0xBB5503);
            table.LegacyColors.ItemCheckedText = factory.GetColor(0x000000);
            table.LegacyColors.ItemDisabledBackground = Color.Empty;
            table.LegacyColors.ItemDisabledText = factory.GetColor(0x8D8D8D);
            table.LegacyColors.ItemExpandedShadow = Color.Empty;
            table.LegacyColors.ItemExpandedBackground = factory.GetColor(0xE3EFFE);
            table.LegacyColors.ItemExpandedBackground2 = factory.GetColor(0x99BFF0);
            table.LegacyColors.ItemExpandedText = factory.GetColor(0x000000);
            table.LegacyColors.ItemHotBackground = factory.GetColor(0xFFF5CC);
            table.LegacyColors.ItemHotBackground2 = factory.GetColor(0xFFDB75);
            table.LegacyColors.ItemHotBorder = factory.GetColor(0xFFBD69);
            table.LegacyColors.ItemHotText = factory.GetColor(0x3B3B3B);
            table.LegacyColors.ItemPressedBackground = factory.GetColor(0xFC973D);
            table.LegacyColors.ItemPressedBackground2 = factory.GetColor(0xFFB85E);
            table.LegacyColors.ItemPressedBorder = factory.GetColor(0xFB8C3C);
            table.LegacyColors.ItemPressedText = factory.GetColor(0x3B3B3B);
            table.LegacyColors.ItemSeparator = factory.GetColor(0x868B91);
            table.LegacyColors.ItemSeparatorShade = Color.FromArgb(192, factory.GetColor(0xFDFDFE));
            table.LegacyColors.ItemText = factory.GetColor(0x000000); // SystemColors.ControlTet;
            table.LegacyColors.MenuBackground = factory.GetColor(0xFFFFFF);
            table.LegacyColors.MenuBackground2 = Color.Empty; // Color.White;
            table.LegacyColors.MenuBarBackground = factory.GetColor(0xC9C9C9);
            table.LegacyColors.MenuBorder = factory.GetColor(0xA7ABB0);
            table.LegacyColors.ItemExpandedBorder = table.LegacyColors.MenuBorder;
            table.LegacyColors.MenuSide = factory.GetColor(0xFFFFFF);
            table.LegacyColors.MenuSide2 = Color.Empty; // factory.GetColor(0xDDE0E8);
            table.LegacyColors.MenuUnusedBackground = table.LegacyColors.MenuBackground;
            table.LegacyColors.MenuUnusedSide = factory.GetColor(0xDADADA);
            table.LegacyColors.MenuUnusedSide2 = Color.Empty;// System.Windows.Forms.ControlPaint.Light(table.LegacyColors.MenuSide2);
            table.LegacyColors.ItemDesignTimeBorder = Color.Black;
            table.LegacyColors.BarDockedBorder = factory.GetColor(0x5E5E5E);
            table.LegacyColors.DockSiteBackColor = factory.GetColor(0xC9C9C9);
            table.LegacyColors.DockSiteBackColor2 = Color.Empty;
            table.LegacyColors.CustomizeBackground = factory.GetColor(0x848484);
            table.LegacyColors.CustomizeBackground2 = factory.GetColor(0x797979);
            table.LegacyColors.CustomizeText = factory.GetColor(0x000000);
            table.LegacyColors.PanelBackground = factory.GetColor(0xC9C9C9);
            table.LegacyColors.PanelBackground2 = factory.GetColor(0xA3A3A3);
            table.LegacyColors.PanelText = factory.GetColor(0x000000);
            table.LegacyColors.PanelBorder = factory.GetColor(0x303030);
            table.LegacyColors.ExplorerBarBackground = factory.GetColor(0xCFCFCF);
            table.LegacyColors.ExplorerBarBackground2 = factory.GetColor(0xC9C9C9);
            table.LegacyColors.SplitterBackground = factory.GetColor(0x666666);
            table.LegacyColors.SplitterBackground2 = factory.GetColor(0x515151);
            table.LegacyColors.SplitterBorder = factory.GetColor(0x303030);
            table.LegacyColors.SplitterText = table.LegacyColors.SplitterBorder;
            #endregion

            #region Navigation Pane
            table.NavigationPane.ButtonBackground = new GradientColorTable();
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x5B5B5B), 0));
            #endregion

            #region SuperTooltip
            table.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xE4E4F0));
            table.SuperTooltip.TextColor = factory.GetColor(0x4C4C4C);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(0x000000);
            sl.Default.SliderLabelColor = factory.GetColor(0x000000);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC0C0C0), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x7C7C7C), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x262626);
            sl.Default.PartBorderLightColor = Color.Transparent; // Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x333333);
            sl.Default.PartForeLightColor = Color.Empty;
            sl.Default.TrackLineColor = factory.GetColor(0x262626);
            sl.Default.TrackLineLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));

            sl.MouseOver.LabelColor = factory.GetColor(0x000000);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x000000);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFDF5), .2f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFDF83), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDDA70D), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), .85f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0x7F8994);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x4E5052);
            sl.MouseOver.PartForeLightColor = Color.Empty;
            sl.MouseOver.TrackLineColor = factory.GetColor(0x262626);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.Pressed.LabelColor = factory.GetColor(0x000000);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x000000);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDB7518), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF7902F), .2f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF9C18B), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xED7400), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFC188), .85f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF2D2B5), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0x7F8994);
            sl.Pressed.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.Pressed.PartForeColor = factory.GetColor(0x4E5052);
            sl.Pressed.PartForeLightColor = Color.Empty;
            sl.Pressed.TrackLineColor = factory.GetColor(0x262626);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.SliderLabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            #endregion

            #region ListViewEx
            table.ListViewEx.Border = factory.GetColor(editBorderColor);
            table.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(0xEAEAEA), factory.GetColor(0xDFDFDF));
            table.ListViewEx.ColumnSeparator = factory.GetColor(0x3B3B3B);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xA7CDF0), Color.Empty);
            table.ListViewEx.SelectionBorder = factory.GetColor(0x58320F);
            #endregion

            #region DataGridView
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(0x868B91);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xEBEDF0), factory.GetColor(0xD5D8DC), 90);
            table.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF9D99F), factory.GetColor(0xF1C15F), 90);
            table.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D), factory.GetColor(0xF2923A), 90);
            table.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xDFE2E4), factory.GetColor(0xBCC5D2), 90);
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(0x879FB7);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xBCC5D2), factory.GetColor(0xDFE2E4), 90);
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xEBEDF0));
            table.DataGridView.RowNormalBorder = factory.GetColor(0x868B91);
            table.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D));
            table.DataGridView.RowSelectedBorder = factory.GetColor(0xF29536);
            table.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            table.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(0xF29536);
            table.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xDFE2E4));
            table.DataGridView.RowMouseOverBorder = factory.GetColor(0x879FB7);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xBBC4D1));
            table.DataGridView.RowPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.GridColor = factory.GetColor(0xAAAAAA);

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xC6C6C6));
            table.DataGridView.SelectorBorder = factory.GetColor(0x909192);
            table.DataGridView.SelectorBorderDark = factory.GetColor(0xC3C3C3);
            table.DataGridView.SelectorBorderLight = factory.GetColor(0xF9F9F9);
            table.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(0xF2F2F2));

            table.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0x8BA0B5));
            table.DataGridView.SelectorMouseOverBorder = factory.GetColor(0x9EB6CE);
            table.DataGridView.SelectorMouseOverBorderDark = factory.GetColor(0xB0CFF7);
            table.DataGridView.SelectorMouseOverBorderLight = factory.GetColor(0xD5E4F2);
            table.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(0xF9FAFB), factory.GetColor(0xD7DAE2));
            #endregion

            #region SideBar
            table.SideBar.Background = new LinearGradientColorTable(factory.GetColor(Color.White));
            table.SideBar.Border = factory.GetColor(editBorderColor);
            table.SideBar.SideBarPanelItemText = factory.GetColor(0x3B3B3B);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDBE1E7), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBBC3CD), 1));
            // Expanded
            table.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFBDBB5), 0));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEC778), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEB456), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDEB9F), 1));
            // MouseOver
            table.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFCD9), 0));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE78D), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFD748), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE793), 1));
            // Pressed
            table.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8B869), 0));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDA361), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFB8A3C), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEBB60), 1));
            #endregion

            #region AdvTree
#if !NOTREE
            table.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            DevComponents.AdvTree.Display.ColorTableInitializer.InitOffice2007Blue(table.AdvTree, factory);
#endif
            #endregion

            #region CrumbBar
            table.CrumbBarItemView = new CrumbBarItemViewColorTable();
            CrumbBarItemViewStateColorTable crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Default = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x3B3B3B);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x3B3B3B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFCD9"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFE78D"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFD748"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFE793"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FFB8A98E");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x3B3B3B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFDEC"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFF4CA"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFEBA6"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFF2C5"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8E8F8F");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Pressed = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x3B3B3B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFC59B61"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFEEB469"), .1f),
                new BackgroundColorBlend(factory.GetColor("FFFCA060"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFB8E3D"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFEBB60"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8B7654");
            crumbBarViewTable.BorderLight = factory.GetColor("408B7654");

            #endregion

            #region WarningBox
            table.WarningBox.BackColor = factory.GetColor(factory.GetColor(0xD3D3D3));
            table.WarningBox.WarningBorderColor = factory.GetColor(editBorderColor);
            table.WarningBox.WarningBackColor1 = factory.GetColor(0xfefefe);
            table.WarningBox.WarningBackColor2 = factory.GetColor(0xE5E9EE);
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            table.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xB0B6BE)),           // DayViewBorder
                new ColorDef(factory.GetColor(0x363636)),           // DayHeaderForeground

                new ColorDef(factory.GetColor(0xC7CBD1)),             // DayHeaderBackground

                new ColorDef(factory.GetColor(0xB0B6BE)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayHourBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(0x4C535C)),           // SelectionBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xCFD2D8), factory.GetColor(0xB0B6BE)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB0B6BE)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xF5F5F5)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground
                
                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region HourRulerColors

            table.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xFFFFFF)),           // TimeRulerBackground
                new ColorDef(factory.GetColor(0x363636)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(0xB8B8B8)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(0xB8B8B8)),           // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeRulerIndicatorBorder
            };

            #endregion

            #region MonthViewColors

            table.CalendarView.MonthViewColors = new ColorDef[]
            {
              new ColorDef(factory.GetColor(0x9199A4)),           // DayOfWeekHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0, .55f, .58f, 1}),                    // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x616A76)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // SideBarBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD2D5DA), factory.GetColor(0xB7BCC3), factory.GetColor(0xCACED4)},
                new float[] {0, .6f, .6f, 1}, 0),                   // SideBarBackground

                new ColorDef(factory.GetColor(0x000000)),           // SideBarForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // DayContentBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayContentInactiveDayBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xCFD2D8), factory.GetColor(0xB0B6BE)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB0B6BE)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground
            };

            #endregion

            #region AppointmentColors

            table.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x4B71A2)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(0xFDFEFF), factory.GetColor(0xC1D3EA)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab

            table.SuperTab.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xE5E9ED), Color.Empty);

            table.SuperTab.InnerBorder = factory.GetColor(0xDFE3E8);
            table.SuperTab.OuterBorder = factory.GetColor(0x7F8388);

            table.SuperTab.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.InsertMarker = factory.GetColor(0xFF, 0x000080);

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xEFF1F3), factory.GetColor(0xE1E4E9), factory.GetColor(0xEDEFF2), factory.GetColor(0xEFF1F3) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.Normal.InnerBorder = factory.GetColor(0xDFE3E8);
            table.SuperTabItem.Default.Normal.OuterBorder = factory.GetColor(0x7F8388);
            table.SuperTabItem.Default.Normal.Text = factory.GetColor(0x4D5359);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(0x406F9F);

            // Disabled
            table.SuperTabItem.Default.Disabled.Text = factory.GetColor(0x8D8D8D);
            table.SuperTabItem.Default.Disabled.Background.AdaptiveGradient = false;
            table.SuperTabItem.Default.Disabled.CloseMarker = factory.GetColor(0x8D8D8D);

            // Top Selected

            table.SuperTabItem.Default.Selected.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xE2E6EB), factory.GetColor(0xF9FAFB), factory.GetColor(0xF9FAFB), factory.GetColor(0xFFFFFF) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.Selected.InnerBorder = factory.GetColor(0xDFE3E8);
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(0x7F8388);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(0x4D5359);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(0x406F9F);

            // Top SelectedMouseOver

            table.SuperTabItem.Default.SelectedMouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xDFE3E8), factory.GetColor(0xF7F8F9), factory.GetColor(0xF7F8F9), factory.GetColor(0xFEFEFF) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = factory.GetColor(0xF3F4F6);
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(0x868B91);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(0x4D5359);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(0x406F9F);

            // Top MouseOver

            table.SuperTabItem.Default.MouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xDFE3E8), factory.GetColor(0xF7F8F9), factory.GetColor(0xF7F8F9), factory.GetColor(0xFEFEFF) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(0xF3F4F6);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(0x868B91);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(0x4D5359);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(0x406F9F);

            // Left, Bottom, Right

            table.SuperTabItem.Left = table.SuperTabItem.Default;
            table.SuperTabItem.Bottom = table.SuperTabItem.Default;
            table.SuperTabItem.Right = table.SuperTabItem.Default;

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(0xDFE3E8);
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(0x4D5359);

            table.SuperTabPanel.Left = table.SuperTabPanel.Default;
            table.SuperTabPanel.Bottom = table.SuperTabPanel.Default;
            table.SuperTabPanel.Right = table.SuperTabPanel.Default;

            #endregion

            #endregion

            #region Backstage

            #region Backstage
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackColorTable(table.Backstage, factory);
            #endregion

            #region BackstageItem
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackItemColorTable(table.BackstageItem, factory);
            #endregion

            #region BackstagePanel
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackPanelColorTable(table.BackstagePanel, factory);
            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(0x919191);
            sbt.OffBackColor = factory.GetColor(0xC9C9C9);
            sbt.OffTextColor = factory.GetColor(0x000000);
            sbt.OnBackColor = factory.GetColor(0x92D050);
            sbt.OnTextColor = factory.GetColor(0x000000);
            sbt.SwitchBackColor = factory.GetColor(0xA4A4A4);
            sbt.SwitchBorderColor = factory.GetColor(0x555555);
            sbt.TextColor = factory.GetColor(0x000000);
            table.SwitchButton = new SwitchButtonColors();
            table.SwitchButton.Default = sbt;
            table.SwitchButton.Disabled.BorderColor = table.CheckBoxItem.Disabled.CheckBorder;
            table.SwitchButton.Disabled.SwitchBorderColor = table.SwitchButton.Disabled.BorderColor;
            table.SwitchButton.Disabled.OffTextColor = table.CheckBoxItem.Disabled.Text;
            table.SwitchButton.Disabled.OnTextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.TextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.SwitchBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OffBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OnBackColor = table.SwitchButton.Disabled.OffBackColor;
            #endregion

            #region ElementStyle Classes
            table.StyleClasses.Clear();
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(0x848484);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xBBBBBB);
            table.StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = GetFileMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = GetTwoColumnMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = GetMenuColumnOneContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = GetMenuColumnTwoContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = GetMenuBottomContainer(table);
            table.StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(editBorderColor), SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2010BlueFactory.GetRibbonClientPanelStyle(factory, eOffice2010ColorScheme.Black);
            table.StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(table.ListViewEx);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetStatusBarAltStyle(table.Bar);
            table.StyleClasses.Add(style.Class, style);
#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(editBorderColor), Color.Empty);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(table.DataGridView.ColumnHeaderNormalBackground.Start, table.DataGridView.ColumnHeaderNormalBackground.End, table.DataGridView.ColumnHeaderNormalBorder);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(table.DataGridView.ColumnHeaderNormalBackground.Start, table.DataGridView.ColumnHeaderNormalBackground.End, table.DataGridView.ColumnHeaderNormalBorder);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(Color.White), factory.GetColor("FF567DB0"), factory.GetColor("FF2F578D"));
            table.StyleClasses.Add(style.Class, style);
#endif
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            table.StyleClasses.Add(style.Class, style);

            // Slide-out Button
            style = Office2007ColorTableFactory.GetSlideOutButtonStyle(table.CheckBoxItem.Default.CheckBorder);
            table.StyleClasses.Add(style.Class, style);
            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(Color.White));
            table.StyleClasses.Add(style.Class, style);
            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(Color.DarkGray));
            table.StyleClasses.Add(style.Class, style);
            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            #endregion

            #region StepIndicator
            table.StepIndicator.BackgroundColor = factory.GetColor(ColorFunctions.GetShade(table.Form.BackColor, 10));
            table.StepIndicator.IndicatorColor = factory.GetColor(0xA4CC28);
            #endregion

            #region RadialMenu
            table.RadialMenu = new RadialMenuColorTable();
            table.RadialMenu.CircularBackColor = factory.GetColor(0xD44F2E);
            table.RadialMenu.CircularBorderColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.CircularForeColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBorder = factory.GetColor(0x656769);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(0x656769);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(0x656769);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(0x656769);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion

        }
Beispiel #3
0
        public static void InitializeColorTable(Office2007ColorTable table, ColorFactory factory, MetroPartColors metroColors)
        {
            #region RibbonControl Start Images
            table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010NormalSilver.png");
            table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010HotSilver.png");
            table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankOffice2010PressedSilver.png");
            #endregion

            #region RibbonControl
            table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade));
            table.RibbonControl.InnerBorder = null; // LinearGradientColorTable.Empty;// new LinearGradientColorTable(factory.GetColor(Color.FromArgb(32, Color.White)));
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.RibbonControl.TabsGlassBackground = new LinearGradientColorTable(Color.Transparent, factory.GetColor(metroColors.CanvasColor));
            table.RibbonControl.TabDividerBorder = Color.Empty; // factory.GetColor(0xA7BAD1);
            table.RibbonControl.TabDividerBorderLight = Color.Empty; // factory.GetColor(0xF4F8FD);
            table.RibbonControl.CornerSize = 1;
            table.RibbonControl.PanelTopBackgroundHeight = 0;
            table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.RibbonControl.PanelBottomBackground = null; // new LinearGradientColorTable(factory.GetColor(0xF6F7F8), factory.GetColor(0xE5E9EE));
            #endregion

            #region Ribbon KeyTips
            table.KeyTips.KeyTipBackground = factory.GetColor(metroColors.TextDisabledColor);
            table.KeyTips.KeyTipText = factory.GetColor(metroColors.CanvasColor);
            table.KeyTips.KeyTipBorder = factory.GetColor(metroColors.TextDisabledColor);
            #endregion

            #region Item Group
            table.ItemGroup.OuterBorder = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xC0C3C8));
            table.ItemGroup.InnerBorder = LinearGradientColorTable.Empty;
            table.ItemGroup.TopBackground = LinearGradientColorTable.Empty;
            table.ItemGroup.BottomBackground = LinearGradientColorTable.Empty;
            table.ItemGroup.ItemGroupDividerDark = Color.Empty;
            table.ItemGroup.ItemGroupDividerLight = Color.Empty;
            #endregion

            #region RibbonBar
            table.RibbonBar.Default = GetRibbonBar(factory, metroColors);
            table.RibbonBar.MouseOver = GetRibbonBarMouseOver(factory, metroColors);
            table.RibbonBar.Expanded = GetRibbonBarExpanded(factory, metroColors);
            #endregion

            #region ButtonItem Colors Initialization
            table.RibbonButtonItemColors.Clear();
            table.ButtonItemColors.Clear();
            table.MenuButtonItemColors.Clear();
            // Orange
            Office2007ButtonItemColorTable cb = GetButtonItemDefault(factory, metroColors);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.ButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemDefaultWithBackground(factory, metroColors);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.ButtonItemColors.Add(cb);
            // Blue
            cb = GetButtonItemBlue(factory, metroColors);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemBlueWithBackground(factory, metroColors);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.MouseOverSplitInactive = cb.Default;
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.ButtonItemColors.Add(cb);
            // Magenta
            cb = GetButtonItemMagenta(factory, metroColors);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemMagentaWithBackground(factory, metroColors);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.MouseOverSplitInactive = cb.Default;
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.ButtonItemColors.Add(cb);

            cb = Office2010BlueFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.MouseOverSplitInactive = new Office2007ButtonItemStateColorTable();
            cb.MouseOverSplitInactive.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB1BAC4));
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            table.ButtonItemColors.Add(cb);

            table.ButtonItemColors.Add(CreateBlueOrbColorTable(factory, metroColors));

            table.BackstageButtonItemColors.Clear();
            table.BackstageButtonItemColors.Add(GetButtonItemBackstageDefault(factory, metroColors));

            table.ContextualTables.Add(Office2007ColorTable.GetContextualKey(typeof(Office2007ButtonItemColorTable), "StatusBar"), GetButtonItemStatusBar(factory, metroColors));
            #endregion

            #region RibbonTabItem Colors Initialization
            table.RibbonTabItemColors.Clear();
            Office2007RibbonTabItemColorTable rt = GetRibbonTabItemBlueDefault(factory, metroColors);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);

            // Magenta
            rt = GetRibbonTabItemBlueDefault(factory, metroColors); //GetRibbonTabItemBlueMagenta(factory);
            //rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            table.RibbonTabItemColors.Add(rt);

            // Green
            rt = GetRibbonTabItemBlueDefault(factory, metroColors); //GetRibbonTabItemBlueGreen(factory);
            //rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            table.RibbonTabItemColors.Add(rt);

            // Orange
            rt = GetRibbonTabItemBlueDefault(factory, metroColors); //GetRibbonTabItemBlueOrange(factory);
            //rt.CornerSize = 2;
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            table.RibbonTabItemColors.Add(rt);
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            table.RibbonTabGroupColors.Clear();
            // Default
            Office2007RibbonTabGroupColorTable tg = GetRibbonTabGroupDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            table.RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = GetRibbonTabGroupMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            table.RibbonTabGroupColors.Add(tg);

            // Green
            tg = GetRibbonTabGroupGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            table.RibbonTabGroupColors.Add(tg);

            // Orange
            tg = GetRibbonTabGroupOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            table.RibbonTabGroupColors.Add(tg);
            #endregion

            #region Initialize Bar
            table.Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor)/*, factory.GetColor(metroColors.BaseColorDark)*/);
            table.Bar.ToolbarBottomBackground = null; // new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorDark));
            table.Bar.ToolbarBottomBorder = Color.Empty;
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(metroColors.BaseColor);
            table.Bar.StatusBarTopBorder = factory.GetColor(metroColors.BaseColor);
            table.Bar.StatusBarTopBorderLight = factory.GetColor(metroColors.BaseColor);
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 1f));
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorDarkShade), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.Menu.SideBorderLight = LinearGradientColorTable.Empty;
            table.Menu.SideUnused = LinearGradientColorTable.Empty;
            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(metroColors.CanvasColorLighterShade), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(metroColors.CanvasColorLighterShade), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(metroColors.CanvasColorLightShade);
            table.Menu.FileContainerBorderLight = Color.Transparent;
            table.Menu.FileColumnOneBackground = factory.GetColor(metroColors.CanvasColor);
            table.Menu.FileColumnOneBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.Menu.FileColumnTwoBackground = factory.GetColor(metroColors.CanvasColor);
            table.Menu.FileBottomContainerBackgroundBlend.Clear();
            //table.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
            //    new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xEBF3FC), 0F),
            //    new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xEBF3FC), 1F)});
            #endregion

            #region ComboBox
            table.ComboBox.Default.Background = factory.GetColor(metroColors.CanvasColor);
            table.ComboBox.Default.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandText = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ComboBox.DefaultStandalone.Background = factory.GetColor(metroColors.CanvasColor);
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ComboBox.DefaultStandalone.ExpandBackground = LinearGradientColorTable.Empty;
            table.ComboBox.DefaultStandalone.ExpandBorderInner = LinearGradientColorTable.Empty;
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = LinearGradientColorTable.Empty;
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(metroColors.TextColor);
            table.ComboBox.MouseOver.Background = factory.GetColor(metroColors.CanvasColor);
            table.ComboBox.MouseOver.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseButtonGradientStart), factory.GetColor(metroColors.BaseButtonGradientEnd), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorDarker));
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(metroColors.TextColor);
            table.ComboBox.DroppedDown.Background = factory.GetColor(metroColors.CanvasColor);
            table.ComboBox.DroppedDown.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight), factory.GetColor(metroColors.BaseColorDark), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorDarker));
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor), Color.Empty, 90);
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(metroColors.TextColor);
            #endregion

            #region Dialog Launcher
            table.DialogLauncher.Default.DialogLauncher = factory.GetColor(metroColors.TextInactiveColor);
            table.DialogLauncher.Default.DialogLauncherShade = Color.Empty; // factory.GetColor(64, 0xFFFFFF);

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(metroColors.BaseColor);
            table.DialogLauncher.MouseOver.DialogLauncherShade = Color.Empty; // Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLightest));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLightest));
            table.DialogLauncher.MouseOver.InnerBorder = LinearGradientColorTable.Empty;// new LinearGradientColorTable(factory.GetColor(Color.FromArgb(128, Color.White)));
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLightest), Color.Empty);

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(metroColors.BaseColor);
            table.DialogLauncher.Pressed.DialogLauncherShade = Color.Empty; // Color.FromArgb(48, factory.GetColor(0xFFFFFF));
            table.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight));
            table.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight));
            table.DialogLauncher.Pressed.InnerBorder = LinearGradientColorTable.Empty;//new LinearGradientColorTable(factory.GetColor(Color.FromArgb(48, Color.White)));
            table.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight), Color.Empty);
            #endregion

            #region System Button, Form
            // Default state no background
            table.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.TextInactiveColor));
            table.SystemButton.Default.LightShade = Color.Empty;
            table.SystemButton.Default.DarkShade = Color.Empty;

            // Mouse over state
            table.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.SystemButton.MouseOver.LightShade = Color.Empty;
            table.SystemButton.MouseOver.DarkShade = Color.Empty;
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLightest));
            table.SystemButton.MouseOver.BottomBackground = null;
            table.SystemButton.MouseOver.TopHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButton.MouseOver.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButton.MouseOver.OuterBorder = null;
            table.SystemButton.MouseOver.InnerBorder = null;

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.TextColor));
            table.SystemButton.Pressed.LightShade = Color.Empty;
            table.SystemButton.Pressed.DarkShade = Color.Empty;
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight));
            table.SystemButton.Pressed.TopHighlight = null;
            table.SystemButton.Pressed.BottomBackground = null;
            table.SystemButton.Pressed.BottomHighlight = null;
            table.SystemButton.Pressed.OuterBorder = null;
            table.SystemButton.Pressed.InnerBorder = null;

            // CLOSE Default state no background
            table.SystemButtonClose = new Office2007SystemButtonColorTable();
            table.SystemButtonClose.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.Default.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.TextInactiveColor));
            table.SystemButtonClose.Default.LightShade = Color.Empty;
            table.SystemButtonClose.Default.DarkShade = Color.Empty;

            // Mouse over state
            table.SystemButtonClose.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.SystemButtonClose.MouseOver.LightShade = Color.Empty;
            table.SystemButtonClose.MouseOver.DarkShade = Color.Empty;
            table.SystemButtonClose.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLightest));
            table.SystemButtonClose.MouseOver.BottomBackground = null;
            table.SystemButtonClose.MouseOver.TopHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButtonClose.MouseOver.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            table.SystemButtonClose.MouseOver.OuterBorder = null;
            table.SystemButtonClose.MouseOver.InnerBorder = null;

            // Pressed
            table.SystemButtonClose.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(metroColors.TextColor));
            table.SystemButtonClose.Pressed.LightShade = Color.Empty;
            table.SystemButtonClose.Pressed.DarkShade = Color.Empty;
            table.SystemButtonClose.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorLight)); ;
            table.SystemButtonClose.Pressed.TopHighlight = null;
            table.SystemButtonClose.Pressed.BottomBackground = null;
            table.SystemButtonClose.Pressed.BottomHighlight = null;
            table.SystemButtonClose.Pressed.OuterBorder = null;
            table.SystemButtonClose.Pressed.InnerBorder = null;

            // Form border
            table.Form.Active.BorderColors = new Color[] {
                factory.GetColor(metroColors.BaseColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor)
            };

            table.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(metroColors.BaseColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor),
                factory.GetColor(metroColors.CanvasColor)
            };

            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.Form.Active.CaptionBottomBorder = null;
            table.Form.Active.CaptionText = factory.GetColor(metroColors.TextLightColor);
            table.Form.Active.CaptionTextExtra = factory.GetColor(metroColors.TextInactiveColor);

            // Form Caption Inactive
            table.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.Form.Inactive.CaptionText = factory.GetColor(metroColors.CanvasColorLightShade);
            table.Form.Inactive.CaptionTextExtra = factory.GetColor(metroColors.CanvasColorLighterShade);

            table.Form.BackColor = factory.GetColor(metroColors.CanvasColor);
            table.Form.TextColor = factory.GetColor(metroColors.TextColor);
            table.Form.MdiClientBackgroundImage = null; // BarFunctions.LoadBitmap("SystemImages.Office2010SilverClientBackground.png");
            #endregion

            #region Quick Access Toolbar Background
            table.QuickAccessToolbar.Active.TopBackground = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xDEE7F4), factory.GetColor(0xE6EEF9));
            table.QuickAccessToolbar.Active.BottomBackground = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xDBE7F7), factory.GetColor(0xC9D9EE));
            table.QuickAccessToolbar.Active.OutterBorderColor = Color.Empty; // factory.GetColor(0xF6F9FC);
            table.QuickAccessToolbar.Active.MiddleBorderColor = Color.Empty; // factory.GetColor(0x9AB3D5);
            table.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty; //  factory.GetColor(0xD2E3F9);

            table.QuickAccessToolbar.Inactive.TopBackground = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xE6ECF3), factory.GetColor(0xCED8E6));
            table.QuickAccessToolbar.Inactive.BottomBackground = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xCED8E6), factory.GetColor(0xC8D3E3));
            table.QuickAccessToolbar.Inactive.OutterBorderColor = Color.Empty; // factory.GetColor(0xF6F9FC);
            table.QuickAccessToolbar.Inactive.MiddleBorderColor = Color.Empty; // factory.GetColor(0x9AB3D5);
            table.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            table.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(metroColors.CanvasColorLightShade);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            table.QuickAccessToolbar.Standalone.InnerBorderColor = Color.Empty; // factory.GetColor(0xDCE8F7);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(metroColors.CanvasColorDarkShade);

            table.QuickAccessToolbar.Active.GlassBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            table.QuickAccessToolbar.Inactive.GlassBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            table.TabControl.Default = new Office2007TabItemStateColorTable();
            table.TabControl.Default.TopBackground = LinearGradientColorTable.Empty;
            table.TabControl.Default.BottomBackground = LinearGradientColorTable.Empty;
            table.TabControl.Default.InnerBorder = Color.Empty;
            table.TabControl.Default.OuterBorder = Color.Empty;
            table.TabControl.Default.Text = factory.GetColor(metroColors.TextInactiveColor);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = LinearGradientColorTable.Empty;
            table.TabControl.MouseOver.BottomBackground = LinearGradientColorTable.Empty;
            table.TabControl.MouseOver.InnerBorder = Color.Empty;
            table.TabControl.MouseOver.OuterBorder = Color.Empty;
            table.TabControl.MouseOver.Text = metroColors.BaseColor;

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            table.TabControl.Selected.TopBackground = LinearGradientColorTable.Empty;
            table.TabControl.Selected.BottomBackground = LinearGradientColorTable.Empty;
            table.TabControl.Selected.InnerBorder = Color.Empty;
            table.TabControl.Selected.OuterBorder = metroColors.CanvasColorLightShade;
            table.TabControl.Selected.Text = metroColors.BaseColor;

            table.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.TabControl.TabPanelBorder = metroColors.CanvasColorLightShade;
            #endregion

            #region CheckBoxItem
            table.CheckBoxItem = GetCheckBoxItem(factory, metroColors);

            Office2007CheckBoxColorTable chk = GetCheckBoxItem(factory, metroColors);
            chk.Default.Text = factory.GetColor(metroColors.BaseTextColor);
            chk.MouseOver.Text = factory.GetColor(metroColors.BaseTextColor);
            chk.Pressed.Text = factory.GetColor(metroColors.BaseTextColor);
            table.ContextualTables.Add(Office2007ColorTable.GetContextualKey(typeof(Office2007CheckBoxColorTable), typeof(Bar)) + "+StatusBar", chk);
            table.ContextualTables.Add(Office2007ColorTable.GetContextualKey(typeof(Office2007CheckBoxColorTable), typeof(MetroStatusBar)), chk);
            #endregion

            #region Scroll Bar Colors
            InitializeScrollBarColorTable(table, factory, metroColors);
            InitializeAppBlueScrollBarColorTable(table, factory, metroColors);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(metroColors.CanvasColor);
            pct.OuterBorder = factory.GetColor(metroColors.BaseColorDarker);
            pct.InnerBorder = Color.Empty;
            pct.Chunk = new GradientColorTable(metroColors.BaseColor);
            pct.ChunkOverlay = new GradientColorTable();
            //pct.ChunkOverlay.LinearGradientAngle = 90;
            //pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
            //    new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(metroColors.BaseColorLight)), 0f),
            //    new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(metroColors.BaseColor)), .5f),
            //    new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(metroColors.BaseColor)), .5f),
            //    new BackgroundColorBlend(Color.Transparent, 1f),
            //});
            //pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);
            pct.ChunkShadow = new GradientColorTable();

            // Paused State
            pct = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0xEBEDF0, 0xD5D8DC);
            pct.OuterBorder = factory.GetColor(0x868B91);
            pct.InnerBorder = factory.GetColor(0xFFFFFF);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);

            // Error State
            pct = table.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0xEBEDF0, 0xD5D8DC);
            pct.OuterBorder = factory.GetColor(0x868B91);
            pct.InnerBorder = factory.GetColor(0xFFFFFF);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = table.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(metroColors.CanvasColorLighterShade);
            gallery.GroupLabelText = factory.GetColor(metroColors.CanvasColorDarkShade);
            gallery.GroupLabelBorder = Color.Empty;
            #endregion

            #region Legacy Colors
            table.LegacyColors.BarBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.BarBackground2 = Color.Empty;
            table.LegacyColors.BarStripeColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.BarCaptionBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.BarCaptionBackground2 = Color.Empty;
            table.LegacyColors.BarCaptionInactiveBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.BarCaptionInactiveBackground2 = Color.Empty;
            table.LegacyColors.BarCaptionInactiveText = factory.GetColor(metroColors.TextDisabledColor);
            table.LegacyColors.BarCaptionText = factory.GetColor(metroColors.TextInactiveColor);
            table.LegacyColors.BarFloatingBorder = factory.GetColor(metroColors.BaseColor);
            table.LegacyColors.BarPopupBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.BarPopupBorder = factory.GetColor(metroColors.BaseColor);
            table.LegacyColors.ItemBackground = Color.Empty;
            table.LegacyColors.ItemBackground2 = Color.Empty;
            table.LegacyColors.ItemCheckedBackground = Color.Empty;
            table.LegacyColors.ItemCheckedBackground2 = Color.Empty;
            table.LegacyColors.ItemCheckedBorder = factory.GetColor(metroColors.BaseColor);
            table.LegacyColors.ItemCheckedText = factory.GetColor(metroColors.TextColor);
            table.LegacyColors.ItemDisabledBackground = Color.Empty;
            table.LegacyColors.ItemDisabledText = factory.GetColor(metroColors.TextDisabledColor);
            table.LegacyColors.ItemExpandedShadow = Color.Empty;
            table.LegacyColors.ItemExpandedBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.ItemExpandedBackground2 = Color.Empty;
            table.LegacyColors.ItemExpandedText = factory.GetColor(metroColors.TextColor);
            table.LegacyColors.ItemExpandedBorder = Color.Empty;
            table.LegacyColors.ItemHotBackground = factory.GetColor(metroColors.CanvasColorLightShade);
            table.LegacyColors.ItemHotBackground2 = Color.Empty;
            table.LegacyColors.ItemHotBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.ItemHotText = factory.GetColor(metroColors.TextColor);
            table.LegacyColors.ItemPressedBackground = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.ItemPressedBackground2 = Color.Empty;
            table.LegacyColors.ItemPressedBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.ItemPressedText = factory.GetColor(metroColors.TextColor);
            table.LegacyColors.ItemSeparator = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.ItemSeparatorShade = Color.Empty;
            table.LegacyColors.ItemText = factory.GetColor(metroColors.TextInactiveColor); // SystemColors.ControlTet;
            table.LegacyColors.MenuBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.MenuBackground2 = Color.Empty; // Color.White;
            table.LegacyColors.MenuBarBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.MenuBorder = factory.GetColor(metroColors.BaseColor);
            table.LegacyColors.MenuSide = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.MenuSide2 = Color.Empty; // factory.GetColor(0xDDE0E8);
            table.LegacyColors.MenuUnusedBackground = table.LegacyColors.MenuBackground;
            table.LegacyColors.MenuUnusedSide = Color.Empty;
            table.LegacyColors.MenuUnusedSide2 = Color.Empty;// System.Windows.Forms.ControlPaint.Light(table.LegacyColors.MenuSide2);
            table.LegacyColors.ItemDesignTimeBorder = Color.Black;
            table.LegacyColors.BarDockedBorder = Color.Empty;
            table.LegacyColors.DockSiteBackColor = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.DockSiteBackColor2 = Color.Empty;
            table.LegacyColors.CustomizeBackground = Color.Empty;
            table.LegacyColors.CustomizeBackground2 = Color.Empty;
            table.LegacyColors.CustomizeText = factory.GetColor(metroColors.TextInactiveColor);
            table.LegacyColors.PanelBackground = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.LegacyColors.PanelBackground2 = Color.Empty;
            table.LegacyColors.PanelText = factory.GetColor(metroColors.TextColor);
            table.LegacyColors.PanelBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.LegacyColors.ExplorerBarBackground = factory.GetColor(metroColors.CanvasColor);
            table.LegacyColors.ExplorerBarBackground2 = Color.Empty;
            table.LegacyColors.SplitterBackground = table.LegacyColors.PanelBackground;
            table.LegacyColors.SplitterBackground2 = table.LegacyColors.PanelBackground2;
            table.LegacyColors.SplitterText = table.LegacyColors.PanelText;
            table.LegacyColors.SplitterBorder = table.LegacyColors.PanelBorder;
            #endregion

            #region Navigation Pane
            table.NavigationPane.ButtonBackground = new GradientColorTable();
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.CanvasColor), 0));
            //table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.CanvasColorLightShade), 1));
            #endregion

            #region SuperTooltip
            table.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade), factory.GetColor(metroColors.CanvasColor));
            table.SuperTooltip.TextColor = factory.GetColor(metroColors.TextColor);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.Default.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBorderColor = Color.Empty;
            sl.Default.PartBorderLightColor = Color.Empty;
            sl.Default.PartForeColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Default.PartForeLightColor = Color.Empty;
            sl.Default.TrackLineColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Default.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            sl.MouseOver.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.MouseOver.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBorderColor = Color.Empty;
            sl.MouseOver.PartBorderLightColor = Color.Empty;
            sl.MouseOver.PartForeColor = factory.GetColor(metroColors.TextColor);
            sl.MouseOver.PartForeLightColor = Color.Empty;
            sl.MouseOver.TrackLineColor = factory.GetColor(metroColors.BaseColorDark);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            sl.Pressed.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBorderColor = Color.Empty;
            sl.Pressed.PartBorderLightColor = Color.Empty;
            sl.Pressed.PartForeColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.PartForeLightColor = Color.Empty;
            sl.Pressed.TrackLineColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Disabled.SliderLabelColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Disabled.PartBackground = new GradientColorTable();
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);

            sl.TrackPart = new Office2007SliderPartColorTable();
            sl.TrackPart.Default.LabelColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.Default.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.Default.PartBackground = new GradientColorTable(factory.GetColor(metroColors.TextDisabledColor));
            sl.TrackPart.Default.PartBorderColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.Default.PartBorderLightColor = Color.Empty;
            sl.TrackPart.Default.PartForeColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.Default.PartForeLightColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.Default.TrackLineColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.Default.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));
            sl.TrackPart.MouseOver.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.MouseOver.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.MouseOver.PartBackground = new GradientColorTable(factory.GetColor(metroColors.TextColor));
            sl.TrackPart.MouseOver.PartBorderColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.MouseOver.PartBorderLightColor = Color.Empty;
            sl.TrackPart.MouseOver.PartForeColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.MouseOver.PartForeLightColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.MouseOver.TrackLineColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.TrackPart.MouseOver.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));
            sl.TrackPart.Pressed = sl.TrackPart.MouseOver;

            // Contextual Table when on StatusBar
            sl = new Office2007SliderColorTable();
            sl.Default.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.Default.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBorderColor = Color.Empty;
            sl.Default.PartBorderLightColor = Color.Empty;
            sl.Default.PartForeColor = factory.GetColor(metroColors.CanvasColor);
            sl.Default.PartForeLightColor = factory.GetColor(metroColors.BaseColorDark);
            sl.Default.TrackLineColor = factory.GetColor(metroColors.BaseColorDark);
            sl.Default.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            sl.MouseOver.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.MouseOver.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBorderColor = Color.Empty;
            sl.MouseOver.PartBorderLightColor = Color.Empty;
            sl.MouseOver.PartForeColor = factory.GetColor(metroColors.CanvasColor);
            sl.MouseOver.PartForeLightColor = factory.GetColor(metroColors.BaseColorDark);
            sl.MouseOver.TrackLineColor = factory.GetColor(metroColors.BaseColorDark);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            sl.Pressed.LabelColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBorderColor = Color.Empty;
            sl.Pressed.PartBorderLightColor = Color.Empty;
            sl.Pressed.PartForeColor = factory.GetColor(metroColors.CanvasColorLighterShade);
            sl.Pressed.PartForeLightColor = factory.GetColor(metroColors.BaseColorDark);
            sl.Pressed.TrackLineColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            sl.Pressed.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));

            df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Disabled.SliderLabelColor = factory.GetColor(metroColors.TextDisabledColor);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            
            sl.TrackPart = new Office2007SliderPartColorTable();
            sl.TrackPart.Default.LabelColor = factory.GetColor(metroColors.BaseTextColor);
            sl.TrackPart.Default.SliderLabelColor = factory.GetColor(metroColors.TextColor);
            sl.TrackPart.Default.PartBackground = new GradientColorTable(factory.GetColor(metroColors.CanvasColor));
            sl.TrackPart.Default.PartBorderColor = factory.GetColor(metroColors.BaseColorDarker);
            sl.TrackPart.Default.PartBorderLightColor = Color.Empty;
            sl.TrackPart.Default.PartForeColor = factory.GetColor(metroColors.CanvasColor);
            sl.TrackPart.Default.PartForeLightColor = factory.GetColor(metroColors.CanvasColor);
            sl.TrackPart.Default.TrackLineColor = factory.GetColor(metroColors.BaseColorDark);
            sl.TrackPart.Default.TrackLineLightColor = factory.GetColor(Color.FromArgb(48, Color.White));
            sl.TrackPart.MouseOver = sl.TrackPart.Default;
            sl.TrackPart.Pressed = sl.TrackPart.Default;

            table.ContextualTables.Add(Office2007ColorTable.GetContextualKey(typeof(Office2007SliderColorTable), typeof(Bar)) + "+StatusBar", sl);
            table.ContextualTables.Add(Office2007ColorTable.GetContextualKey(typeof(Office2007SliderColorTable), typeof(MetroStatusBar)), sl);
            #endregion

            #region ListViewEx
            table.ListViewEx.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade));
            table.ListViewEx.ColumnSeparator = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor), Color.Empty);
            table.ListViewEx.SelectionBorder = Color.Empty;
            table.ListViewEx.SelectionForeColor = factory.GetColor(metroColors.BaseTextColor);
            #endregion

            #region DataGridView
            table.DataGridView.BackgroundColor = factory.GetColor(metroColors.CanvasColor);
            table.DataGridView.DefaultCellBackground = factory.GetColor(metroColors.CanvasColor);
            table.DataGridView.DefaultCellText = factory.GetColor(metroColors.TextColor);
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade));
            table.DataGridView.ColumnHeaderNormalText = factory.GetColor(metroColors.TextColor);
            table.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLighterShade));
            table.DataGridView.ColumnHeaderSelectedText = factory.GetColor(metroColors.TextColor);
            table.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(metroColors.BaseColorDark);
            table.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(metroColors.BaseColorDark);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorDark));
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(metroColors.BaseColorDark);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade));
            table.DataGridView.RowNormalBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLighterShade));
            table.DataGridView.RowSelectedBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(metroColors.BaseColorDark);
            table.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.DataGridView.RowMouseOverBorder = factory.GetColor(metroColors.BaseColorDark);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColorDark));
            table.DataGridView.RowPressedBorder = factory.GetColor(metroColors.BaseColorDark);

            table.DataGridView.GridColor = factory.GetColor(metroColors.CanvasColorDarkShade);

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColorLightShade));
            table.DataGridView.SelectorBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.DataGridView.SelectorBorderDark = Color.Empty;// factory.GetColor(0xC3C3C3);
            table.DataGridView.SelectorBorderLight = Color.Empty;// factory.GetColor(0xF9F9F9);
            table.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(metroColors.TextColor));

            table.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(metroColors.BaseColor));
            table.DataGridView.SelectorMouseOverBorder = factory.GetColor(metroColors.BaseColorDark);
            table.DataGridView.SelectorMouseOverBorderDark = Color.Empty;// factory.GetColor(0xB0CFF7);
            table.DataGridView.SelectorMouseOverBorderLight = Color.Empty; // factory.GetColor(0xD5E4F2);
            table.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(metroColors.TextColor));
            #endregion

            #region SideBar
            table.SideBar.Background = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            table.SideBar.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SideBar.SideBarPanelItemText = factory.GetColor(metroColors.TextColor);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.CanvasColor), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.CanvasColor), 1));
            // Expanded
            table.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 0));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 1));
            // MouseOver
            table.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 0));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 1));
            // Pressed
            table.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 0));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 1));
            #endregion

            #region AdvTree
#if !NOTREE
            table.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            CreateAdvTreeColorTable(table.AdvTree, factory, metroColors);
#endif
            #endregion

            #region CrumbBar
            table.CrumbBarItemView = new CrumbBarItemViewColorTable();
            CrumbBarItemViewStateColorTable crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Default = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(metroColors.TextColor);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(metroColors.BaseTextColor);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 0f),
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 1f)});
            crumbBarViewTable.Border = factory.GetColor(metroColors.BaseColorDark);
            crumbBarViewTable.BorderLight = Color.Empty; // factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(metroColors.BaseTextColor);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 0f),
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColor), 1f)});
            crumbBarViewTable.Border = factory.GetColor(metroColors.BaseColorDark);
            crumbBarViewTable.BorderLight = Color.Empty; // factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Pressed = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(metroColors.BaseTextColor);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 0f),
                new BackgroundColorBlend(factory.GetColor(metroColors.BaseColorDark), 1f)});
            crumbBarViewTable.Border = factory.GetColor(metroColors.BaseColorDark);
            crumbBarViewTable.BorderLight = Color.Empty; // factory.GetColor("408B7654");

            #endregion

            #region WarningBox
            table.WarningBox.BackColor = factory.GetColor(factory.GetColor(metroColors.CanvasColor));
            table.WarningBox.WarningBorderColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.WarningBox.WarningBackColor1 = factory.GetColor(metroColors.CanvasColor);
            table.WarningBox.WarningBackColor2 = factory.GetColor(metroColors.CanvasColor);
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            table.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayViewBorder
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // DayHeaderForeground

                new ColorDef(new Color[] {factory.GetColor(metroColors.CanvasColor)},
                new float[] {0f}, 90f),             // DayHeaderBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLighterShade)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // DayHourBorder
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(metroColors.BaseColor)),           // SelectionBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // OwnerTabBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),    // OwnerTabBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLighterShade)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(factory.GetColor(metroColors.CanvasColorLighterShade)),       // NowDayHeaderBackground
                
                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region HourRulerColors

            table.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // TimeRulerBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeRulerIndicatorBorder
            };

            #endregion

            #region MonthViewColors

            table.CalendarView.MonthViewColors = new ColorDef[]
            {
              new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayOfWeekHeaderBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),                    // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // SideBarBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),                   // SideBarBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // SideBarForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),                    // DayHeaderBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // DayContentBorder
                new ColorDef(factory.GetColor(metroColors.BaseColor)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // DayContentInactiveDayBackground

                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // OwnerTabBorder

                new ColorDef(factory.GetColor(metroColors.CanvasColor)),

                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColor)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(metroColors.BaseColor)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(metroColors.TextColor)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(factory.GetColor(metroColors.CanvasColorLighterShade)),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(metroColors.TextColor)),   // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(metroColors.CanvasColorLightShade)),            // ContentLinkBackground - DayContentActiveDayBackground
            };

            #endregion

            #region AppointmentColors

            table.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(metroColors.CanvasColorDarkShade)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(metroColors.BaseButtonGradientStart), factory.GetColor(metroColors.BaseButtonGradientEnd)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab

            table.SuperTab.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(metroColors.CanvasColor), Color.Empty);

            table.SuperTab.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTab.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);

            table.SuperTab.ControlBoxDefault.Image = factory.GetColor(metroColors.CanvasColorDarkShade);

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(metroColors.CanvasColorLightShade);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(metroColors.TextColor);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(metroColors.TextColor);

            table.SuperTab.InsertMarker = factory.GetColor(metroColors.BaseColor);

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable(factory.GetColor(factory.GetColor(metroColors.CanvasColor)));

            table.SuperTabItem.Default.Normal.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTabItem.Default.Normal.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTabItem.Default.Normal.Text = factory.GetColor(metroColors.TextInactiveColor);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(metroColors.CanvasColorLightShade);

            // Disabled
            table.SuperTabItem.Default.Disabled.Text = factory.GetColor(metroColors.TextDisabledColor);
            table.SuperTabItem.Default.Disabled.Background.AdaptiveGradient = false;
            table.SuperTabItem.Default.Disabled.CloseMarker = factory.GetColor(metroColors.TextDisabledColor);

            // Top Selected

            table.SuperTabItem.Default.Selected.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(metroColors.CanvasColorLighterShade), factory.GetColor(metroColors.CanvasColorLightShade), factory.GetColor(metroColors.CanvasColorLightShade), factory.GetColor(metroColors.CanvasColor) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.Selected.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(metroColors.TextColor);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(metroColors.CanvasColorDarkShade);

            // Top SelectedMouseOver

            table.SuperTabItem.Default.SelectedMouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(metroColors.CanvasColor), factory.GetColor(metroColors.CanvasColorLightShade) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(metroColors.TextColor);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(metroColors.CanvasColorDarkShade);

            // Top MouseOver

            table.SuperTabItem.Default.MouseOver.Background = new SuperTabLinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), metroColors.CanvasColorLightShade);

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(metroColors.TextColor);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(metroColors.CanvasColorDarkShade);

            // Left, Bottom, Right

            table.SuperTabItem.Left = table.SuperTabItem.Default;
            table.SuperTabItem.Bottom = table.SuperTabItem.Default;
            table.SuperTabItem.Right = table.SuperTabItem.Default;

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(metroColors.CanvasColor), Color.Empty);
            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(metroColors.CanvasColorDarkShade);

            table.SuperTabPanel.Left = table.SuperTabPanel.Default;
            table.SuperTabPanel.Bottom = table.SuperTabPanel.Default;
            table.SuperTabPanel.Right = table.SuperTabPanel.Default;

            #endregion

            #endregion

            #region Backstage

            #region Backstage
            SuperTabStyleColorFactory.GetMetroBackstageColorTable(table.Backstage, factory, metroColors);
            #endregion

            #region BackstageItem
            SuperTabStyleColorFactory.GetMetroBackstageItemColorTable(table.BackstageItem, factory, metroColors);
            #endregion

            #region BackstagePanel
            SuperTabStyleColorFactory.GetMetroBackstagePanelColorTable(table.BackstagePanel, factory, metroColors);
            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            sbt.OffBackColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            sbt.OffTextColor = factory.GetColor(metroColors.TextColor);
            sbt.OnBackColor = factory.GetColor(metroColors.BaseColor);
            sbt.OnTextColor = factory.GetColor(metroColors.BaseTextColor);
            sbt.SwitchBackColor = factory.GetColor(metroColors.TextColor);
            sbt.SwitchBorderColor = Color.Empty; // factory.GetColor(metroColors.CanvasColorLightShade);
            sbt.TextColor = factory.GetColor(metroColors.TextColor);
            table.SwitchButton = new SwitchButtonColors();
            table.SwitchButton.Default = sbt;
            table.SwitchButton.Disabled.BorderColor = factory.GetColor(metroColors.CanvasColorLightShade);
            table.SwitchButton.Disabled.SwitchBorderColor = Color.Empty;
            table.SwitchButton.Disabled.OffTextColor = table.CheckBoxItem.Disabled.Text;
            table.SwitchButton.Disabled.OnTextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.TextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.SwitchBackColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            table.SwitchButton.Disabled.OffBackColor = factory.GetColor(metroColors.CanvasColorLightShade);
            table.SwitchButton.Disabled.OnBackColor = factory.GetColor(metroColors.CanvasColorLightShade);
            #endregion

            #region ElementStyle Classes
            table.StyleClasses.Clear();
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(metroColors.CanvasColorDarkShade);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 0;
            style.CornerType = eCornerType.Square;
            style.BackColor = factory.GetColor(metroColors.CanvasColor);
            table.StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = GetFileMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = GetTwoColumnMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = GetMenuColumnOneContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = GetMenuColumnTwoContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = GetMenuBottomContainer(table);
            table.StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(metroColors.CanvasColorDarkShade));
            table.StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(metroColors.CanvasColorDarkShade));
            table.StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(metroColors.CanvasColorDarkShade), factory.GetColor(metroColors.CanvasColor));
            table.StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(metroColors.CanvasColorDarkShade), factory.GetColor(metroColors.CanvasColor));
            table.StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2010BlueFactory.GetRibbonClientPanelStyle(factory, eOffice2010ColorScheme.Silver);
            table.StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(table.ListViewEx);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetStatusBarAltStyle(table.Bar);
            table.StyleClasses.Add(style.Class, style);
#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(metroColors.CanvasColorDarkShade), factory.GetColor(metroColors.CanvasColor));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(factory.GetColor(metroColors.CanvasColorLighterShade), Color.Empty, factory.GetColor(metroColors.CanvasColorDarkShade));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(metroColors.CanvasColorLighterShade), Color.Empty, factory.GetColor(metroColors.CanvasColorLighterShade));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(metroColors.TextColor));
            table.StyleClasses.Add(style.Class, style);
            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(metroColors.CanvasColor), factory.GetColor(metroColors.CanvasColorLightShade), factory.GetColor(metroColors.CanvasColorDarkShade));
            table.StyleClasses.Add(style.Class, style);
#endif
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            table.StyleClasses.Add(style.Class, style);

            // Slide-out button
            style = GetSlideOutButtonStyle(metroColors.ComplementColor);
            table.StyleClasses.Add(style.Class, style);

            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(metroColors.CanvasColor));
            table.StyleClasses.Add(style.Class, style);

            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(metroColors.TextColor));
            table.StyleClasses.Add(style.Class, style);

            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(factory.GetColor(metroColors.CanvasColor));
            table.StyleClasses.Add(style.Class, style);
            #endregion

            #region Contextual Label Colors
            table.LabelItemColors.Clear();
            table.LabelItemColors.Add(typeof(MetroStatusBar), new LabelColors(factory.GetColor(metroColors.BaseTextColor), factory.GetColor(metroColors.TextDisabledColor)));
            table.LabelItemColors.Add(typeof(Bar), new LabelColors(factory.GetColor(metroColors.BaseTextColor), factory.GetColor(metroColors.TextDisabledColor)));
            #endregion

            InitAppButtonColors(table, factory, metroColors);

            #region StepIndicator
            table.StepIndicator.BackgroundColor = factory.GetColor(metroColors.CanvasColorLighterShade);
            table.StepIndicator.IndicatorColor = factory.GetColor(Color.FromArgb(128, metroColors.ComplementColorLight));
            #endregion

            #region RadialMenu
            table.RadialMenu = new RadialMenuColorTable();
            table.RadialMenu.CircularBackColor = factory.GetColor(metroColors.ComplementColor);
            table.RadialMenu.CircularBorderColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.CircularForeColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBackground = factory.GetColor(metroColors.CanvasColor);
            table.RadialMenu.RadialMenuBorder = factory.GetColor(metroColors.BaseColor);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(metroColors.CanvasColor);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(metroColors.BaseColor);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(metroColors.CanvasColor);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(metroColors.BaseColor);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(metroColors.BaseColor);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion
        }
Beispiel #4
0
        public static void InitializeColorTable(Office2007ColorTable table, ColorFactory factory)
        {
            #region Ribbon Bar
            table.RibbonBar.Default = GetRibbonBar(factory);
            table.RibbonBar.MouseOver = GetRibbonBarMouseOver(factory);
            table.RibbonBar.Expanded = GetRibbonBarExpanded(factory);
            #endregion

            #region RibbonTabItem
            // RibbonTabItem Default
            table.RibbonTabItemColors.Clear();
            Office2007RibbonTabItemColorTable rt = GetRibbonTabItemDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);
            // Green

            rt = GetRibbonTabItemGreen(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            table.RibbonTabItemColors.Add(rt);
            // Magenta

            rt = GetRibbonTabItemMagenta(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            table.RibbonTabItemColors.Add(rt);
            // Orange

            rt = GetRibbonTabItemOrange(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            table.RibbonTabItemColors.Add(rt);
            #endregion

            #region Ribbon Control
            table.RibbonControl = new Office2007RibbonColorTable();
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0xD0D4DD), factory.GetColor(0xD0D4DD));
            table.RibbonControl.InnerBorder = new LinearGradientColorTable(); //factory.GetColor(0xD7DADF), factory.GetColor(0x3A3A3A));
            table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBEBE), factory.GetColor(0xBEBEBE));
            table.RibbonControl.TabDividerBorder = factory.GetColor(0xACAFB7);
            table.RibbonControl.TabDividerBorderLight = Color.Empty; // factory.GetColor(0x666666);
            table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xEEF0F4), factory.GetColor(0xE1E6EE));
            table.RibbonControl.PanelBottomBackground = new LinearGradientColorTable(factory.GetColor(0xD5DBE7), factory.GetColor(0xF0FAFB));
            table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonNormalSilver.png");
            table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonHotSilver.png");
            table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonPressedSilver.png");
            #endregion

            #region ItemContainer
            table.ItemGroup.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF1F3F3), factory.GetColor(0xF0F2F2));
            table.ItemGroup.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xE7EAEE), factory.GetColor(0xF6F7F8));
            table.ItemGroup.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF9F9F9), factory.GetColor(0xFFFFFF));
            table.ItemGroup.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC5C6C7), factory.GetColor(0xC4C6C6));
            table.ItemGroup.ItemGroupDividerDark = Color.FromArgb(196, factory.GetColor(0xCECECE));
            table.ItemGroup.ItemGroupDividerLight = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            #endregion

            #region Bar
            table.Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(0xE7E8EB), factory.GetColor(0xB5BBC7));
            table.Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0xA9AFB6), factory.GetColor(0xC7C9CE));
            table.Bar.ToolbarBottomBorder = factory.GetColor(0x727880);
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(0x2F2F2F);
            table.Bar.StatusBarTopBorder = factory.GetColor(0xACAFB7);
            table.Bar.StatusBarTopBorderLight = factory.GetColor(Color.FromArgb(148, Color.White));
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xE7E8EB), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xB6BBC7), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xA5ABAF), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xAEB4BA), 1f));
            #endregion

            #region ButtonItem Colors Initialization
            table.ButtonItemColors.Clear();
            table.RibbonButtonItemColors.Clear();
            table.MenuButtonItemColors.Clear();
            // Orange
            Office2007ButtonItemColorTable cb = GetButtonItemOrange(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.ButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.ButtonItemColors.Add(cb);
            // Blue
            cb = GetButtonItemBlue(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.ButtonItemColors.Add(cb);
            // Magenta
            cb = GetButtonItemMagenta(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.ButtonItemColors.Add(cb);
            // Magenta with background
            cb = GetButtonItemMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.ButtonItemColors.Add(cb);

            // RibbonBar buttons
            cb = GetButtonItemOrange(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.RibbonButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Blue
            cb = GetButtonItemBlue(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.RibbonButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta
            cb = GetButtonItemMagenta(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta with background
            cb = GetButtonItemMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.RibbonButtonItemColors.Add(cb);

            // MENU Orange
            cb = Office2007ColorTableFactory.GetButtonItemBlackOrange(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            cb.Default.Text = factory.GetColor(0x333333);
            cb.MouseOver.Text = factory.GetColor(0x333333);
            cb.Checked.Text = factory.GetColor(0x333333);
            cb.Expanded.Text = factory.GetColor(0x333333);
            cb.Pressed.Text = factory.GetColor(0x333333);
            table.MenuButtonItemColors.Add(cb);

            cb = Office2007ColorTableFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            table.ButtonItemColors.Add(cb);

            table.ButtonItemColors.Add(ButtonItemStaticColorTables.CreateBlueOrbColorTable(factory));
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            table.RibbonTabGroupColors.Clear();
            // Default
            Office2007RibbonTabGroupColorTable tg = GetRibbonTabGroupDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            table.RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = GetRibbonTabGroupMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            table.RibbonTabGroupColors.Add(tg);

            // Green
            tg = GetRibbonTabGroupGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            table.RibbonTabGroupColors.Add(tg);

            // Orange
            tg = GetRibbonTabGroupOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            table.RibbonTabGroupColors.Add(tg);
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(0x868686), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xEFEFEF), Color.Empty);
            table.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(0xC5C5C5), Color.Empty);
            table.Menu.SideBorderLight = new LinearGradientColorTable(factory.GetColor(0xF5F5F5), Color.Empty);
            table.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xE5E5E5), Color.Empty);

            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xDEE2E5), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xD2D7DC), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(0xA9AEB4);
            table.Menu.FileContainerBorderLight = factory.GetColor(0xF3F4F4);
            table.Menu.FileColumnOneBackground = factory.GetColor(0xFAFAFA);
            table.Menu.FileColumnOneBorder = factory.GetColor(0xA9AEB4);
            table.Menu.FileColumnTwoBackground = factory.GetColor(0xFAFAFA);
            table.Menu.FileBottomContainerBackgroundBlend.Clear();
            table.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xCAD0D7), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xCCD1D8), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xC2C8D0), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xD9E2E6), 1F)});
            #endregion

            #region ComboBox
            table.ComboBox.Default.Background = factory.GetColor(0xE8EAEC);
            table.ComboBox.Default.Border = factory.GetColor(0xA9B1B8);
            table.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandText = factory.GetColor(0x7C7C7C);
            table.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            int editoBorderColor = 0xA4A4A4;
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(editoBorderColor);
            table.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xECF0F5), factory.GetColor(0xDFE4EB), 90);
            table.ComboBox.DefaultStandalone.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xB7B7B7), Color.Empty, 90);
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x000000);
            table.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.MouseOver.Border = factory.GetColor(editoBorderColor);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCE2), factory.GetColor(0xFFE7A5), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFCF3), 90);
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(0x000000);
            table.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DroppedDown.Border = factory.GetColor(0x898989);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xEAE0BF), factory.GetColor(0xFFD456), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xF1EBD5), factory.GetColor(0xFFE694), 90);
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x9A8F63), Color.Empty, 90);
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x000000);
            #endregion

            #region Dialog Launcher
            table.DialogLauncher.Default.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.Default.DialogLauncherShade = factory.GetColor(0xEBEBEB);

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.MouseOver.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCDF), factory.GetColor(0xFFEFA7));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFD975), factory.GetColor(0xFFE398));
            table.DialogLauncher.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFBF2));
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty);

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.Pressed.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE8DEBD), factory.GetColor(0xEAC68D));
            table.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFA738), factory.GetColor(0xFFCC4E));
            table.DialogLauncher.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF0EAD4), factory.GetColor(0xFFE391));
            table.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9A8F63), factory.GetColor(0xB0A472));
            #endregion

            #region Legacy Color Scheme
            InitializeBlackLegacyColors(table.LegacyColors, factory);
            #endregion

            #region System Button, Form

            // Default state no background
            table.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0x6D7989), factory.GetColor(0x8899B1));
            table.SystemButton.Default.LightShade = factory.GetColor(0xFDFDFF);
            table.SystemButton.Default.DarkShade = factory.GetColor(0x454545);

            // Mouse over state
            table.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0x6D7989), factory.GetColor(0x8899B1));
            table.SystemButton.MouseOver.LightShade = factory.GetColor(0xFDFDFF);
            table.SystemButton.MouseOver.DarkShade = factory.GetColor(0x454545);
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF7F9FB), factory.GetColor(0xF1F5FA));
            table.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xE3EAF4), factory.GetColor(0xE2E8F2));
            table.SystemButton.MouseOver.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xFBFBFD), Color.Transparent);
            table.SystemButton.MouseOver.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xF9FAFC), Color.Transparent);
            table.SystemButton.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC8CDD4), factory.GetColor(0xB9C2D0));
            table.SystemButton.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFEFEFF), factory.GetColor(0xFCFDFE));

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0x6D7989), factory.GetColor(0x8899B1));
            table.SystemButton.Pressed.LightShade = factory.GetColor(0xFDFDFF);
            table.SystemButton.Pressed.DarkShade = factory.GetColor(0x454545);
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xCACED3), factory.GetColor(0xAAAFB6));
            table.SystemButton.Pressed.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xE4E7EA), Color.Transparent);
            table.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x899097), factory.GetColor(0xC3CDD4));
            table.SystemButton.Pressed.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xD5E2E9), Color.Transparent);
            table.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x979CA0), factory.GetColor(0xADB2B8));
            table.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xEEF1F5), factory.GetColor(0xFBFDFF));

            // Form border
            table.Form.Active.BorderColors = new Color[] {
                factory.GetColor(0x727880),
                factory.GetColor(0xBBBABA),
                factory.GetColor(0xD0D4DD),
                factory.GetColor(0xD0D4DD),
                factory.GetColor(0xD0D4DD)};
            table.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(0xB4B9C1),
                factory.GetColor(0xF0F0F0),
                factory.GetColor(0xE0E0E0),
                factory.GetColor(0xD0D4DD),
                factory.GetColor(0xD0D4DD)};


            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0xE7E8EB), factory.GetColor(0xCACDD1));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0xBAC1CA), factory.GetColor(0xE9EEF7));
            table.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0xE9EEF7), factory.GetColor(0xACAFB7) };
            table.Form.Active.CaptionText = factory.GetColor(0x4D5259);
            table.Form.Active.CaptionTextExtra = factory.GetColor(0x356EB1);

            // Form Caption Inactive
            table.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0xEEEFF0), factory.GetColor(0xE5E6E8));
            table.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0xDDE0E5), factory.GetColor(0xF4F7FB));
            table.Form.Inactive.CaptionText = factory.GetColor(0x444444);
            table.Form.Inactive.CaptionTextExtra = factory.GetColor(0x444444);

            table.Form.BackColor = factory.GetColor(0xCACDD6);
            table.Form.TextColor = factory.GetColor(0x000000);
            #endregion

            #region Quick Access Toolbar Background
            table.QuickAccessToolbar.Active.TopBackground = new LinearGradientColorTable(factory.GetColor(0xD7D9DB), factory.GetColor(0xDEDFE2));
            table.QuickAccessToolbar.Active.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD2D7DD), factory.GetColor(0xDADCE0));
            table.QuickAccessToolbar.Active.OutterBorderColor = Color.Empty; // factory.GetColor(0xAEAEB0);
            table.QuickAccessToolbar.Active.MiddleBorderColor = factory.GetColor(0xAEAEB0);
            table.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Inactive.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE7E7E8), factory.GetColor(0xEEEFF0));
            table.QuickAccessToolbar.Inactive.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xE8EAED), factory.GetColor(0xD9DADC));
            table.QuickAccessToolbar.Inactive.OutterBorderColor = Color.Empty; // factory.GetColor(0xCECECF);
            table.QuickAccessToolbar.Inactive.MiddleBorderColor = factory.GetColor(0xB1B1B2);
            table.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            table.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD9DEE6), factory.GetColor(0xD6DBE3));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0xC2C9D4);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            table.QuickAccessToolbar.Standalone.InnerBorderColor = factory.GetColor(0xEDEFF3);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xEBEBEB);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x4C535C);

            table.QuickAccessToolbar.Active.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            table.QuickAccessToolbar.Inactive.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            table.TabControl.Default = new Office2007TabItemStateColorTable();
            table.TabControl.Default.TopBackground = new LinearGradientColorTable(factory.GetColor(0xDCE0E5), factory.GetColor(0xD8DDE2));
            table.TabControl.Default.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xC3C3C3), factory.GetColor(0xDFDFDF));
            table.TabControl.Default.InnerBorder = factory.GetColor(0xEDF3F4);
            table.TabControl.Default.OuterBorder = factory.GetColor(0x6F7074);
            table.TabControl.Default.Text = factory.GetColor(0x000000);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFDEB), factory.GetColor(0xFFECA8));
            table.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFDA59), factory.GetColor(0xFFE68D));
            table.TabControl.MouseOver.InnerBorder = factory.GetColor(0xFFFFFB);
            table.TabControl.MouseOver.OuterBorder = factory.GetColor(0xB69D73);
            table.TabControl.MouseOver.Text = factory.GetColor(0x000000);

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            //t.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFD29B), factory.GetColor(0xFFBB6E));
            //t.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFAF44), factory.GetColor(0xFEDC75));
            //t.TabControl.Selected.InnerBorder = factory.GetColor(0xCDB69C);
            //t.TabControl.Selected.OuterBorder = factory.GetColor(0x95774A);
            table.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(Color.White), factory.GetColor(0xE8EAEE));
            table.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xE8EAEE), factory.GetColor(0xE8EAEE));
            table.TabControl.Selected.InnerBorder = factory.GetColor(Color.White);
            table.TabControl.Selected.OuterBorder = factory.GetColor(0x6F7074);
            table.TabControl.Selected.Text = factory.GetColor(0x000000);

            table.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(0xC7CAD3), factory.GetColor(0xC7CAD3));
            table.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(0xE8EAEE), factory.GetColor(0xD4D7E0));
            table.TabControl.TabPanelBorder = factory.GetColor(0x6F7074);
            #endregion

            #region CheckBoxItem
            Office2007CheckBoxColorTable chk = table.CheckBoxItem;
            chk.Default.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0x9B9DA0);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xCACFD5)), Color.FromArgb(164, factory.GetColor(0xF6F6F6)));
            chk.Default.CheckInnerBorder = factory.GetColor(0xA2ACB9);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F6B88), Color.Empty);
            chk.Default.Text = factory.GetColor(0x333333);

            chk.MouseOver.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.MouseOver.CheckBorder = factory.GetColor(0x9B9DA0);
            chk.MouseOver.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xFCE7AF)), Color.FromArgb(128, factory.GetColor(0xFEF8E7)));
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xFAD57A);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F6B88), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x333333);

            chk.Pressed.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xE5ECF7), Color.Empty);
            chk.Pressed.CheckBorder = factory.GetColor(0x9B9DA0);
            chk.Pressed.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xFFD067)), Color.FromArgb(164, factory.GetColor(0xFFF4D5)));
            chk.Pressed.CheckInnerBorder = factory.GetColor(0xF28926);
            chk.Pressed.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F6B88), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x333333);

            chk.Disabled.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            chk.Disabled.CheckBorder = factory.GetColor(0xD5D8DB);
            chk.Disabled.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xEEF0F2)), Color.FromArgb(164, factory.GetColor(0xFBFBFB)));
            chk.Disabled.CheckInnerBorder = factory.GetColor(0xE0E2E5);
            chk.Disabled.CheckSign = new LinearGradientColorTable(factory.GetColor(0x8D8D8D), Color.Empty);
            chk.Disabled.Text = factory.GetColor(0x8D8D8D);
            #endregion

            #region Scroll Bar
            InitializeScrollBarColorTable(table, factory);
            Office2007ColorTableFactory.InitializeAppSilverScrollBarColorTable(table, factory);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xF8FBFF);
            pct.InnerBorder = factory.GetColor(0xC0C0C0);
            pct.Chunk = new GradientColorTable(0x649021, 0xE5FCBC, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(164, factory.GetColor(0xD8E6C3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0x88B048)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0x6A9D1F)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);

            // Paused State
            pct = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xF8FBFF);
            pct.InnerBorder = factory.GetColor(0xC0C0C0);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);

            // Error State
            pct = table.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xF8FBFF);
            pct.InnerBorder = factory.GetColor(0xC0C0C0);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = table.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(0xEBEBEB);
            gallery.GroupLabelText = factory.GetColor(0x4C535C);
            gallery.GroupLabelBorder = factory.GetColor(0xC5C5C5);
            #endregion

            #region ListViewEx
            table.ListViewEx.Border = factory.GetColor(editoBorderColor);
            table.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xD4D7DB));
            table.ListViewEx.ColumnSeparator = factory.GetColor(0x6E6D8F);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xA7CDF0), Color.Empty);
            table.ListViewEx.SelectionBorder = factory.GetColor(0xE3EFFF);
            #endregion

            #region Navigation Pane
            table.NavigationPane.ButtonBackground = new GradientColorTable();
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEBEEFA), 0));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD6DAE4), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC5C7D1), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD4D8E2), 1));
            #endregion

            #region SuperTooltip
            table.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xE4E4F0));
            table.SuperTooltip.TextColor = factory.GetColor(0x4C4C4C);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(0x23262A);
            sl.Default.SliderLabelColor = factory.GetColor(0x333333);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF1F1F2), .15f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBDC0C3), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x787D85), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8F8F9), .85f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x3D434B);
            sl.Default.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x5F6771);
            sl.Default.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xEBEBEC));
            sl.Default.TrackLineColor = factory.GetColor(0x252525);
            sl.Default.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.MouseOver.LabelColor = factory.GetColor(0x23262A);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x333333);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFDF5), .2f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFDF83), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDDA70D), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), .85f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0x2F2F2F);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x676249);
            sl.MouseOver.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xFFFEFB));
            sl.MouseOver.TrackLineColor = factory.GetColor(0x252525);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.Pressed.LabelColor = factory.GetColor(0x23262A);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x333333);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF38622), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF2A253), .2f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF9C18B), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF07E10), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF3C69C), .85f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFCE0C7), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0x2F2F2F);
            sl.Pressed.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Pressed.PartForeColor = factory.GetColor(0x675241);
            sl.Pressed.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xFFE6CE));
            sl.Pressed.TrackLineColor = factory.GetColor(0x252525);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.SliderLabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            #endregion

            #region DataGridView
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(0x909192);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xF1F3F3), factory.GetColor(0xC8C9CA), 90);
            table.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xFFCC99), factory.GetColor(0xFF9B68), 90);
            table.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(0xD4763D);
            table.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xD7D7D7), factory.GetColor(editoBorderColor), 90);
            table.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(0xD4763D);
            table.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xD0D0D0), factory.GetColor(0xA6A6A6), 90);
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(0x9DA3A9);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xD0D0D0), factory.GetColor(0xA6A6A6), 90);
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xE7E7E7));
            table.DataGridView.RowNormalBorder = factory.GetColor(0x909192);
            table.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF5C795));
            table.DataGridView.RowSelectedBorder = factory.GetColor(0xD4763D);
            table.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xED8B4E));
            table.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(0xD4763D);
            table.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xB8BFC4));
            table.DataGridView.RowMouseOverBorder = factory.GetColor(0x9DA3A9);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xB8BFC4));
            table.DataGridView.RowPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.GridColor = factory.GetColor(0xD0D7E5);

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xC6C6C6));
            table.DataGridView.SelectorBorder = factory.GetColor(0x909192);
            table.DataGridView.SelectorBorderDark = factory.GetColor(0xC3C3C3);
            table.DataGridView.SelectorBorderLight = factory.GetColor(0xF9F9F9);
            table.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(0xFDFDFD), factory.GetColor(0xEFEFEF));

            table.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xA1A1A1));
            table.DataGridView.SelectorMouseOverBorder = factory.GetColor(0x909192);
            table.DataGridView.SelectorMouseOverBorderDark = factory.GetColor(0xC3C3C3);
            table.DataGridView.SelectorMouseOverBorderLight = factory.GetColor(0xF9F9F9);
            table.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(0xFDFDFD), factory.GetColor(0xEFEFEF));
            #endregion

            #region SideBar
            table.SideBar.Background = new LinearGradientColorTable(factory.GetColor(Color.White));
            table.SideBar.Border = factory.GetColor(0x6F7074);
            table.SideBar.SideBarPanelItemText = factory.GetColor(0x333333);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEBEEFA), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD6DAE4), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC5C7D1), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD4D8E2), 1));
            // Expanded
            table.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFBDBB5), 0));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEC778), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEB456), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDEB9F), 1));
            // MouseOver
            table.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFCD9), 0));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE78D), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFD748), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE793), 1));
            // Pressed
            table.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8B869), 0));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDA361), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFB8A3C), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEBB60), 1));
            #endregion

            #region AdvTree
#if !NOTREE
            table.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            DevComponents.AdvTree.Display.ColorTableInitializer.InitOffice2007Silver(table.AdvTree, factory);
#endif
            #endregion

            #region CrumbBar
            table.CrumbBarItemView = new CrumbBarItemViewColorTable();
            CrumbBarItemViewStateColorTable crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Default = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x333333);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x333333);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFCE4"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFECA1"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFD842"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFE47B"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FFDBCE99");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x333333);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFDEC"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFF4CA"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFEBA6"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFF2C5"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8E8F8F");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Pressed = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x333333);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFDCA36F"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFF2B077"), .1f),
                new BackgroundColorBlend(factory.GetColor("FFE57840"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFDE550A"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFEF7D31"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8B7654");
            crumbBarViewTable.BorderLight = factory.GetColor("408B7654");

            #endregion

            #region WarningBox
            table.WarningBox.BackColor = factory.GetColor(Color.FromArgb(255, 212, 216, 219));
            table.WarningBox.WarningBorderColor = factory.GetColor(Color.FromArgb(180, 180, 180));
            table.WarningBox.WarningBackColor1 = factory.GetColor(Color.FromArgb(255, 255, 255, 255));
            table.WarningBox.WarningBackColor2 = factory.GetColor(Color.FromArgb(255, 234, 234, 234));
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            table.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x616A76)),           // DayViewBorder
                new ColorDef(factory.GetColor(0x616A76)),           // DayHeaderForeground

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}, 90f),             // DayHeaderBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayHourBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(0x365362)),           // SelectionBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xCFD2D8), factory.GetColor(0xB0B6BE)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB0B6BE)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xF5F5F5)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground
                
                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region HourRulerColors

            table.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xF0F1F2)),       // TimeRulerBackground
                new ColorDef(factory.GetColor(0x6F7074)),       // TimeRulerForeground
                new ColorDef(factory.GetColor(0x6F7074)),       // TimeRulerBorder
                new ColorDef(factory.GetColor(0x6F7074)),       // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),          // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),       // TimeRulerIndicatorBorder
           };

            #endregion

            #region MonthViewColors

            table.CalendarView.MonthViewColors = new ColorDef[]
            {
              new ColorDef(factory.GetColor(0x9199A4)),           // DayOfWeekHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0, .55f, .58f, 1}),                    // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x616A76)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // SideBarBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD2D5DA), factory.GetColor(0xB7BCC3), factory.GetColor(0xCACED4)},
                new float[] {0, .6f, .6f, 1}, 0),                   // SideBarBackground

                new ColorDef(factory.GetColor(0x000000)),           // SideBarForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // DayHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0, .55f, .58f, 1}),                    // DayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // DayContentBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayContentInactiveDayBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xCFD2D8), factory.GetColor(0xB0B6BE)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB0B6BE)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground
            };

            #endregion

            #region AppointmentColors

            table.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x4B71A2)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(0xFDFEFF), factory.GetColor(0xC1D3EA)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab

            table.SuperTab.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xD0D4DD));

            table.SuperTab.InnerBorder = factory.GetColor(0xEFF9F9);
            table.SuperTab.OuterBorder = factory.GetColor(0xBEBEBE);

            table.SuperTab.ControlBoxDefault.Image = factory.GetColor(0x333333);

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.InsertMarker = factory.GetColor(0xFF, 0x000080);

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable();

            table.SuperTabItem.Default.Normal.Text = factory.GetColor(0x333333);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(0x333333);

            // Disabled
            table.SuperTabItem.Default.Disabled.Text = factory.GetColor(0x8D8D8D);
            table.SuperTabItem.Default.Disabled.Background.AdaptiveGradient = false;
            table.SuperTabItem.Default.Disabled.CloseMarker = factory.GetColor(0x8D8D8D);

            // Top Selected

            table.SuperTabItem.Default.Selected.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xF2F2F4), factory.GetColor(0xE3E7EF) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.Selected.InnerBorder = factory.GetColor(0xEFF9F9);
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(0xBEBEBE);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(0x333333);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(0x333333);

            // Top SelectedMouseOver

            table.SuperTabItem.Default.SelectedMouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xF2F7FA), factory.GetColor(0xE1E6EF) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = factory.GetColor(0xFAECC2);
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(0xE8BB72);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(0x333333);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(0x333333);

            // Top MouseOver

            table.SuperTabItem.Default.MouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xDBD4C3), factory.GetColor(0xE9CE8D) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(0xE8EAEE);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(0xBDBEC1);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(0x333333);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(0x333333);

            // Left, Bottom, Right

            table.SuperTabItem.Left = table.SuperTabItem.Default;
            table.SuperTabItem.Bottom = table.SuperTabItem.Default;
            table.SuperTabItem.Right = table.SuperTabItem.Default;

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xE8EAEE));

            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(0xEFF9F9);
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(0xBEBEBE);

            table.SuperTabPanel.Left = table.SuperTabPanel.Default;
            table.SuperTabPanel.Bottom = table.SuperTabPanel.Default;
            table.SuperTabPanel.Right = table.SuperTabPanel.Default;

            #endregion

            #endregion

            #region Backstage

            #region Backstage

            SuperTabStyleColorFactory.GetOffice2010BackstageSilverColorTable(table.Backstage, factory);

            #endregion

            #region BackstageItem

            SuperTabStyleColorFactory.GetOffice2010BackstageSilverItemColorTable(table.BackstageItem, factory);

            #endregion

            #region BackstagePanel

            SuperTabStyleColorFactory.GetOffice2010BackstageSilverPanelColorTable(table.BackstagePanel, factory);

            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(0xA9B1B8);
            sbt.OffBackColor = factory.GetColor(0xE9EDF3);
            sbt.OffTextColor = factory.GetColor(0x333333);
            sbt.OnBackColor = factory.GetColor(0x92D050);
            sbt.OnTextColor = factory.GetColor(0x333333);
            sbt.SwitchBackColor = factory.GetColor(0xD3D7E2);
            sbt.SwitchBorderColor = factory.GetColor(0x8C8C8D);
            sbt.TextColor = factory.GetColor(0x333333);
            table.SwitchButton = new SwitchButtonColors();
            table.SwitchButton.Default = sbt;
            table.SwitchButton.Disabled.BorderColor = table.CheckBoxItem.Disabled.CheckBorder;
            table.SwitchButton.Disabled.SwitchBorderColor = table.SwitchButton.Disabled.BorderColor;
            table.SwitchButton.Disabled.OffTextColor = table.CheckBoxItem.Disabled.Text;
            table.SwitchButton.Disabled.OnTextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.TextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.SwitchBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OffBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OnBackColor = table.SwitchButton.Disabled.OffBackColor;
            #endregion

            #region ElementStyle Classes
            table.StyleClasses.Clear();
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(0xA9B1B8);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xE8EAEC);
            table.StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = Office2007ColorTableFactory.GetFileMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = Office2007ColorTableFactory.GetTwoColumnMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnOneContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnTwoContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = Office2007ColorTableFactory.GetMenuBottomContainer(table);
            table.StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(editoBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(editoBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(editoBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(editoBorderColor), SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2007ColorTableFactory.GetRibbonClientPanelStyle(factory, eOffice2007ColorScheme.Silver);
            table.StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(table.ListViewEx);
            table.StyleClasses.Add(style.Class, style);
            // Status bar alt background
            style = Office2007ColorTableFactory.GetStatusBarAltStyle(table.Bar);
            table.StyleClasses.Add(style.Class, style);

#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(editoBorderColor), Color.Empty);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(factory.GetColor(0xF1F3F3), factory.GetColor(0xC8C9CA), factory.GetColor(0x909192));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(0xF1F3F3), factory.GetColor(0xC8C9CA), factory.GetColor(0x909192));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(0x000000));
            table.StyleClasses.Add(style.Class, style);
#endif

            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(Color.White), factory.GetColor("FFACAFB7"), factory.GetColor("FF5A5B5C"));
            table.StyleClasses.Add(style.Class, style);
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            table.StyleClasses.Add(style.Class, style);

            // Slide-out Button
            style = Office2007ColorTableFactory.GetSlideOutButtonStyle(table.CheckBoxItem.Default.CheckBorder);
            table.StyleClasses.Add(style.Class, style);
            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(Color.White));
            table.StyleClasses.Add(style.Class, style);
            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(Color.DarkGray));
            table.StyleClasses.Add(style.Class, style);
            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            #endregion

            #region StepIndicator
            table.StepIndicator.BackgroundColor = factory.GetColor(ColorFunctions.GetShade(table.Form.BackColor, 10));
            table.StepIndicator.IndicatorColor = factory.GetColor(0xA4CC28);
            #endregion

            #region RadialMenu
            table.RadialMenu = new RadialMenuColorTable();
            table.RadialMenu.CircularBackColor = factory.GetColor(0xD44F2E);
            table.RadialMenu.CircularBorderColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.CircularForeColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBorder = factory.GetColor(0x6D7989);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(0x6D7989);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(0x6D7989);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(0x6D7989);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion
        }
Beispiel #5
0
        private void InitializeBlueColorTable(ColorFactory factory)
        {
            #region RibbonControl Start Images
            this.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonNormal.png");
            this.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonHot.png");
            this.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonPressed.png");
            #endregion

            #region RibbonControl
            this.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x8DB2E3), factory.GetColor(0x88A1C2));
            this.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE7EFF8), factory.GetColor(0xC0F9FF));
            this.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0xBFDBFF), Color.Empty);
            this.RibbonControl.TabDividerBorder = factory.GetColor(0xAECAF0);
            this.RibbonControl.TabDividerBorderLight = factory.GetColor(0xD4E3F5);
            this.RibbonControl.CornerSize = 3;
            this.RibbonControl.PanelTopBackgroundHeight = 15;
            this.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xDBE6F4), factory.GetColor(0xCFDDEF));
            this.RibbonControl.PanelBottomBackground = new LinearGradientColorTable(factory.GetColor(0xC9D9ED), factory.GetColor(0xE7F2FF));
            #endregion

            #region Item Group
            this.ItemGroup.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x99B6E0), factory.GetColor(0x7394BD));
            this.ItemGroup.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD5E3F1), factory.GetColor(0xE3EDFB));
            this.ItemGroup.TopBackground = new LinearGradientColorTable(factory.GetColor(0xC8DBEE), factory.GetColor(0xC9DDF6));
            this.ItemGroup.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xBCD0E9), factory.GetColor(0xD0E1F7));
            this.ItemGroup.ItemGroupDividerDark = Color.FromArgb(196, factory.GetColor(0xB8C8DC));
            this.ItemGroup.ItemGroupDividerLight = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            #endregion

            #region RibbonBar
            RibbonBar.Default = Office2007ColorTableFactory.GetRibbonBarBlue(factory);
            RibbonBar.MouseOver = Office2007ColorTableFactory.GetRibbonBarBlueMouseOver(factory);
            RibbonBar.Expanded = Office2007ColorTableFactory.GetRibbonBarBlueExpanded(factory);
            #endregion

            #region ButtonItem Colors Initialization
            // Orange
            Office2007ButtonItemColorTable cb = Office2007ColorTableFactory.GetButtonItemBlueOrange(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            m_ButtonItemColors.Add(cb);
            // Orange with background
            cb = Office2007ColorTableFactory.GetButtonItemBlueOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            m_ButtonItemColors.Add(cb);
            // Blue
            cb = Office2007ColorTableFactory.GetButtonItemBlueBlue(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            m_ButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlueBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            m_ButtonItemColors.Add(cb);
            // Magenta
            cb = Office2007ColorTableFactory.GetButtonItemBlueMagenta(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            m_ButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlueMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            m_ButtonItemColors.Add(cb);

            cb = Office2007ColorTableFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            m_ButtonItemColors.Add(cb);

            m_ButtonItemColors.Add(ButtonItemStaticColorTables.CreateBlueOrbColorTable(factory));
            #endregion

            #region RibbonTabItem Colors Initialization
            Office2007RibbonTabItemColorTable rt = Office2007ColorTableFactory.GetRibbonTabItemBlueDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            m_RibbonTabItemColors.Add(rt);

            // Magenta
            rt = Office2007ColorTableFactory.GetRibbonTabItemBlueMagenta(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            m_RibbonTabItemColors.Add(rt);

            // Green
            rt = Office2007ColorTableFactory.GetRibbonTabItemBlueGreen(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            m_RibbonTabItemColors.Add(rt);

            // Orange
            rt = Office2007ColorTableFactory.GetRibbonTabItemBlueOrange(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            m_RibbonTabItemColors.Add(rt);
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            // Default
            Office2007RibbonTabGroupColorTable tg = Office2007ColorTableFactory.GetRibbonTabGroupBlueDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            m_RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlueMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            m_RibbonTabGroupColors.Add(tg);

            // Green
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlueGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            m_RibbonTabGroupColors.Add(tg);

            // Orange
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlueOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            m_RibbonTabGroupColors.Add(tg);
            #endregion

            #region Initialize Bar
            Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(0xD7E6F9), factory.GetColor(0xC7DCF8));
            Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0xB3D0F5), factory.GetColor(0xD7E5F7));
            Bar.ToolbarBottomBorder = factory.GetColor(0xBAD4F7);
            Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            Bar.PopupToolbarBorder = factory.GetColor(0x868686);
            Bar.StatusBarTopBorder = factory.GetColor(0x567DB0);
            Bar.StatusBarTopBorderLight = factory.GetColor(Color.FromArgb(148, Color.White));
            Bar.StatusBarAltBackground.Clear();
            Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xC5DCF8), 0f));
            Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xA9CAF7), 0.4f));
            Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x90B6EA), 0.4f));
            Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x7495C2), 1f));
            #endregion

            #region Menu
            this.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            this.Menu.Border = new LinearGradientColorTable(factory.GetColor(0x868686), Color.Empty);
            this.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xE9EEEE), Color.Empty);
            this.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(0xC5C5C5), Color.Empty);
            this.Menu.SideBorderLight = new LinearGradientColorTable(factory.GetColor(0xF5F5F5), Color.Empty);
            this.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xE5E5E5), Color.Empty);
            this.Menu.FileBackgroundBlend.Clear();
            this.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(229)))), ((int)(((byte)(247))))), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(231)))), ((int)(((byte)(247))))), 4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(223)))), ((int)(((byte)(243))))), 4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(211)))), ((int)(((byte)(239))))), 1F)});
            this.Menu.FileContainerBorder = Color.White;
            this.Menu.FileContainerBorderLight = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(175)))), ((int)(((byte)(202)))));
            this.Menu.FileColumnOneBackground = factory.GetColor(0xFAFAFA);
            this.Menu.FileColumnOneBorder = factory.GetColor(0xC5C5C5);
            this.Menu.FileColumnTwoBackground = factory.GetColor(0xE9EAEE);
            this.Menu.FileBottomContainerBackgroundBlend.Clear();
            this.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(211)))), ((int)(((byte)(239))))), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(212)))), ((int)(((byte)(240))))), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(201)))), ((int)(((byte)(234))))), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(224)))), ((int)(((byte)(245))))), 1F)});
            #endregion

            #region ComboBox
            this.ComboBox.Default.Background = factory.GetColor(0xEAF2FB);
            this.ComboBox.Default.Border = factory.GetColor(0xABC1DE);
            this.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            this.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            this.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            this.ComboBox.Default.ExpandText = factory.GetColor(0x15428B);
            this.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            int editBorderColor = 0xB3C7E1;
            this.ComboBox.DefaultStandalone.Border = factory.GetColor(editBorderColor);
            this.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xE4F0FE), factory.GetColor(0xCFDFF3), 90);
            this.ComboBox.DefaultStandalone.ExpandBorderInner = new LinearGradientColorTable();
            this.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xAFC4DF), Color.Empty, 90);
            this.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x15428B);
            this.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            this.ComboBox.MouseOver.Border = factory.GetColor(editBorderColor);
            this.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCE2), factory.GetColor(0xFFE7A5), 90);
            this.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFCF3), 90);
            this.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty, 90);
            this.ComboBox.MouseOver.ExpandText = factory.GetColor(0x15428B);
            this.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            this.ComboBox.DroppedDown.Border = factory.GetColor(editBorderColor);
            this.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xEAE0BF), factory.GetColor(0xFFD456), 90);
            this.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xF1EBD5), factory.GetColor(0xFFE694), 90);
            this.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x9A8F63), Color.Empty, 90);
            this.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x15428B);
            #endregion

            #region Dialog Launcher
            this.DialogLauncher.Default.DialogLauncher = factory.GetColor(0x668EAF);
            this.DialogLauncher.Default.DialogLauncherShade = factory.GetColor(0xFFFFFF);

            this.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x668EAF);
            this.DialogLauncher.MouseOver.DialogLauncherShade = Color.FromArgb(192, factory.GetColor(0xFFFFFF));
            this.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCDF), factory.GetColor(0xFFEFA7));
            this.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFD975), factory.GetColor(0xFFE398));
            this.DialogLauncher.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFBF2));
            this.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty);

            this.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x668EAF);
            this.DialogLauncher.Pressed.DialogLauncherShade = Color.FromArgb(192, factory.GetColor(0xFFFFFF));
            this.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE8DEBD), factory.GetColor(0xEAC68D));
            this.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFA738), factory.GetColor(0xFFCC4E));
            this.DialogLauncher.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF0EAD4), factory.GetColor(0xFFE391));
            this.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9A8F63), factory.GetColor(0xB0A472));
            #endregion

            #region System Button, Form
            // Default state no background
            this.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            this.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0x798DA7), factory.GetColor(0x8BA7CC));
            this.SystemButton.Default.LightShade = factory.GetColor(0xF8F9FA);
            this.SystemButton.Default.DarkShade = factory.GetColor(0x656565);

            // Mouse over state
            this.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            this.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0x798DA7), factory.GetColor(0x8BA7CC));
            this.SystemButton.MouseOver.LightShade = factory.GetColor(0xF8F9FA);
            this.SystemButton.MouseOver.DarkShade = factory.GetColor(0x656565);
            this.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF5F8FE), factory.GetColor(0xEAF2FF));
            this.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD2E4FE), factory.GetColor(0xD1E2FB));
            this.SystemButton.MouseOver.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            this.SystemButton.MouseOver.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xFBFCFF), Color.Transparent);
            this.SystemButton.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC1D4EE), factory.GetColor(0xAAC4E9));
            this.SystemButton.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFEFEFF), factory.GetColor(0xE6F4FE));

            // Pressed
            this.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            this.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0x798DA7), factory.GetColor(0x8BA7CC));
            this.SystemButton.Pressed.LightShade = factory.GetColor(0xF8F9FA);
            this.SystemButton.Pressed.DarkShade = factory.GetColor(0x656565);
            this.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xBAD5F8), factory.GetColor(0x9EC2ED));
            this.SystemButton.Pressed.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xB8CEE9), Color.Transparent);
            this.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x84B2E9), factory.GetColor(0xAFD6F7));
            this.SystemButton.Pressed.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xC6EAFD), Color.Transparent);
            this.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA1BFE5), factory.GetColor(0xB2CAE7));
            this.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD3E6FF), factory.GetColor(0xDCE9FB));

            // Form border
            this.Form.Active.BorderColors = new Color[] {
                factory.GetColor(0x3B5A82),
                factory.GetColor(0xB1C6E1),
                factory.GetColor(0xC2D9F7),
                factory.GetColor(0xBFDBFF),
                factory.GetColor(0xBFDBFF)};

            this.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(0xC0C6CE),
                factory.GetColor(0xCCD6E2),
                factory.GetColor(0xD4DEEC),
                factory.GetColor(0xBFDBFF),
                factory.GetColor(0xBFDBFF)};

            // Form Caption Active
            this.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0xE4EBF6), factory.GetColor(0xDAE9FD));
            this.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0xCADEF7), factory.GetColor(0xE4EFFD));
            this.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0xDCF4FE), factory.GetColor(0xB0CFF7) };
            this.Form.Active.CaptionText = factory.GetColor(0x3E6AAA);
            this.Form.Active.CaptionTextExtra = factory.GetColor(0x697079);

            // Form Caption Inactive
            this.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0xE3E7EC), factory.GetColor(0xDEE5ED));
            this.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0xD8E1EC), factory.GetColor(0xE3E8EF));
            this.Form.Inactive.CaptionText = factory.GetColor(0xA0A0A0);
            this.Form.Inactive.CaptionTextExtra = factory.GetColor(0xA0A0A0);

            this.Form.BackColor = factory.GetColor(0xC2D9F7);
            this.Form.TextColor = factory.GetColor(0x15428B);
            #endregion

            #region Quick Access Toolbar Background
            this.QuickAccessToolbar.Active.TopBackground = new LinearGradientColorTable(factory.GetColor(0xDEE7F4), factory.GetColor(0xE6EEF9));
            this.QuickAccessToolbar.Active.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xDBE7F7), factory.GetColor(0xC9D9EE));
            this.QuickAccessToolbar.Active.OutterBorderColor = factory.GetColor(0xF6F9FC);
            this.QuickAccessToolbar.Active.MiddleBorderColor = factory.GetColor(0x9AB3D5);
            this.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty; //  factory.GetColor(0xD2E3F9);

            this.QuickAccessToolbar.Inactive.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE6ECF3), factory.GetColor(0xCED8E6));
            this.QuickAccessToolbar.Inactive.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xCED8E6), factory.GetColor(0xC8D3E3));
            this.QuickAccessToolbar.Inactive.OutterBorderColor = factory.GetColor(0xF6F9FC);
            this.QuickAccessToolbar.Inactive.MiddleBorderColor = factory.GetColor(0x9AB3D5);
            this.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            this.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            this.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xB2CDED), factory.GetColor(0xAAC5EA));
            this.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0x7EA1CD);
            this.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            this.QuickAccessToolbar.Standalone.InnerBorderColor = factory.GetColor(0xDCE8F7);

            this.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xDDE7EE);
            this.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x00156E);

            this.QuickAccessToolbar.Active.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            this.QuickAccessToolbar.Inactive.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            this.TabControl.Default = new Office2007TabItemStateColorTable();
            this.TabControl.Default.TopBackground = new LinearGradientColorTable(factory.GetColor(0xD7E6F9), factory.GetColor(0xC7DCF8));
            this.TabControl.Default.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xB3D0F5), factory.GetColor(0xD7E5F7));
            this.TabControl.Default.InnerBorder = factory.GetColor(0xF3F7FD);
            this.TabControl.Default.OuterBorder = factory.GetColor(0x92A5C7);
            this.TabControl.Default.Text = factory.GetColor(0x154A93);

            this.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            this.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFDEB), factory.GetColor(0xFFECA8));
            this.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFDA59), factory.GetColor(0xFFE68D));
            this.TabControl.MouseOver.InnerBorder = factory.GetColor(0xFFFFFB);
            this.TabControl.MouseOver.OuterBorder = factory.GetColor(0xB69D73);
            this.TabControl.MouseOver.Text = factory.GetColor(0x154A93);

            this.TabControl.Selected = new Office2007TabItemStateColorTable();
            //this.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFD29B), factory.GetColor(0xFFBB6E));
            this.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(Color.White), factory.GetColor(0xFDFDFE));
            //this.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFAF44), factory.GetColor(0xFEDC75));
            this.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFDFDFE), factory.GetColor(0xFDFDFE));
            //this.TabControl.Selected.InnerBorder = factory.GetColor(0xCDB69C);
            this.TabControl.Selected.InnerBorder = factory.GetColor(Color.White);
            //this.TabControl.Selected.OuterBorder = factory.GetColor(0x95774A);
            this.TabControl.Selected.OuterBorder = factory.GetColor(0x92A5C7);
            this.TabControl.Selected.Text = factory.GetColor(0x154A93);

            this.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(0xE3EFFF), factory.GetColor(0xB0D2FF));
            this.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(0xFDFDFE), factory.GetColor(0x9DBCE3));
            this.TabControl.TabPanelBorder = factory.GetColor(0x92A5C7);
            #endregion

            #region CheckBoxItem
            Office2007CheckBoxColorTable chk = this.CheckBoxItem;
            chk.Default.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0xABC1DE);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xA2ACB9)), Color.FromArgb(164, factory.GetColor(0xF6F6F6)));
            chk.Default.CheckInnerBorder = factory.GetColor(0xA2ACB9);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4A6B96), Color.Empty);
            chk.Default.Text = factory.GetColor(0x15428B);

            chk.MouseOver.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xDEEAFA), Color.Empty);
            chk.MouseOver.CheckBorder = factory.GetColor(0x5577A3);
            chk.MouseOver.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xFAD57A)), Color.FromArgb(128, factory.GetColor(0xFEF8E7)));
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xFAD57A);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4A6B96), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x15428B);

            chk.Pressed.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xC1D8F5), Color.Empty);
            chk.Pressed.CheckBorder = factory.GetColor(0x5577A3);
            chk.Pressed.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xF28926)), Color.FromArgb(164, factory.GetColor(0xFFF4D5)));
            chk.Pressed.CheckInnerBorder = factory.GetColor(0xF28926);
            chk.Pressed.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4A6B96), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x15428B);

            chk.Disabled.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            chk.Disabled.CheckBorder = factory.GetColor(0xAEB1B5);
            chk.Disabled.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xE0E2E5)), Color.FromArgb(164, factory.GetColor(0xFBFBFB)));
            chk.Disabled.CheckInnerBorder = factory.GetColor(0xE0E2E5);
            chk.Disabled.CheckSign = new LinearGradientColorTable(factory.GetColor(0x8D8D8D), Color.Empty);
            chk.Disabled.Text = factory.GetColor(0x8D8D8D);
            #endregion

            #region Scroll Bar Colors
            Office2007ColorTableFactory.InitializeScrollBarColorTable(this, factory);
            Office2007ColorTableFactory.InitializeAppBlueScrollBarColorTable(this, factory);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = this.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xDEE2EC);
            pct.InnerBorder = factory.GetColor(0x7496C2);
            pct.Chunk = new GradientColorTable(0x69922A, 0xE7F2D4, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xEEFFD7)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0x8DB254)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0x69922B)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);

            // Paused State
            pct = this.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xDEE2EC);
            pct.InnerBorder = factory.GetColor(0x7496C2);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);

            // Error State
            pct = this.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0xC6CBD5, 0xE0E4ED);
            pct.OuterBorder = factory.GetColor(0xDEE2EC);
            pct.InnerBorder = factory.GetColor(0x7496C2);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0xB2B9C8, 0xD5DAE5, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = this.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(0xDDE7EE);
            gallery.GroupLabelText = factory.GetColor(0x00156E);
            gallery.GroupLabelBorder = factory.GetColor(0xC5C5C5);
            #endregion

            #region Legacy Colors
            this.LegacyColors.BarBackground = factory.GetColor(0xE3EFFF);
            this.LegacyColors.BarBackground2 = factory.GetColor(0xA9CEFE);
            this.LegacyColors.BarStripeColor = factory.GetColor(0x6F9DD9);
            this.LegacyColors.BarCaptionBackground = factory.GetColor(0x6593CF);
            this.LegacyColors.BarCaptionBackground2 = factory.GetColor(0x3764A0);
            this.LegacyColors.BarCaptionInactiveBackground = factory.GetColor(0xE3EFFF);
            this.LegacyColors.BarCaptionInactiveBackground2 = factory.GetColor(0xAFD2FF);
            this.LegacyColors.BarCaptionInactiveText = factory.GetColor(0x083772);
            this.LegacyColors.BarCaptionText = factory.GetColor(0xFFFFFF);
            this.LegacyColors.BarFloatingBorder = factory.GetColor(0x3764A0);
            this.LegacyColors.BarPopupBackground = factory.GetColor(0xF6F6F6);
            this.LegacyColors.BarPopupBorder = factory.GetColor(0x6593CF);
            this.LegacyColors.ItemBackground = Color.Empty;
            this.LegacyColors.ItemBackground2 = Color.Empty;
            this.LegacyColors.ItemCheckedBackground = factory.GetColor(0xFCD578);
            this.LegacyColors.ItemCheckedBackground2 = factory.GetColor(0xFBC84F);
            this.LegacyColors.ItemCheckedBorder = factory.GetColor(0xBB5503);
            this.LegacyColors.ItemCheckedText = factory.GetColor(0x000000);
            this.LegacyColors.ItemDisabledBackground = Color.Empty;
            this.LegacyColors.ItemDisabledText = factory.GetColor(0x8D8D8D);
            this.LegacyColors.ItemExpandedShadow = Color.Empty;
            this.LegacyColors.ItemExpandedBackground = factory.GetColor(0xE3EFFE);
            this.LegacyColors.ItemExpandedBackground2 = factory.GetColor(0x99BFF0);
            this.LegacyColors.ItemExpandedText = factory.GetColor(0x000000);
            this.LegacyColors.ItemHotBackground = factory.GetColor(0xFFF5CC);
            this.LegacyColors.ItemHotBackground2 = factory.GetColor(0xFFDB75);
            this.LegacyColors.ItemHotBorder = factory.GetColor(0xFFBD69);
            this.LegacyColors.ItemHotText = factory.GetColor(0x000000);
            this.LegacyColors.ItemPressedBackground = factory.GetColor(0xFC973D);
            this.LegacyColors.ItemPressedBackground2 = factory.GetColor(0xFFB85E);
            this.LegacyColors.ItemPressedBorder = factory.GetColor(0xFB8C3C);
            this.LegacyColors.ItemPressedText = factory.GetColor(0x000000);
            this.LegacyColors.ItemSeparator = Color.FromArgb(80, factory.GetColor(0x9AC6FF));
            this.LegacyColors.ItemSeparatorShade = Color.FromArgb(250, factory.GetColor(0xFFFFFF));
            this.LegacyColors.ItemText = factory.GetColor(0x000000); // SystemColors.ControlTet;
            this.LegacyColors.MenuBackground = factory.GetColor(0xF6F6F6);
            this.LegacyColors.MenuBackground2 = Color.Empty; // Color.White;
            this.LegacyColors.MenuBarBackground = factory.GetColor(0xBFDBFF);
            this.LegacyColors.MenuBorder = factory.GetColor(0x6593CF);
            this.LegacyColors.ItemExpandedBorder = this.LegacyColors.MenuBorder;
            this.LegacyColors.MenuSide = factory.GetColor(0xE9EEEE);
            this.LegacyColors.MenuSide2 = Color.Empty; // factory.GetColor(0xDDE0E8);
            this.LegacyColors.MenuUnusedBackground = this.LegacyColors.MenuBackground;
            this.LegacyColors.MenuUnusedSide = factory.GetColor(0xDADADA);
            this.LegacyColors.MenuUnusedSide2 = Color.Empty;// System.Windows.Forms.ControlPaint.Light(this.LegacyColors.MenuSide2);
            this.LegacyColors.ItemDesignTimeBorder = Color.Black;
            this.LegacyColors.BarDockedBorder = factory.GetColor(0x6F9DD9);
            this.LegacyColors.DockSiteBackColor = factory.GetColor(0xBFDBFF);
            this.LegacyColors.DockSiteBackColor2 = Color.Empty;
            this.LegacyColors.CustomizeBackground = factory.GetColor(0xD7E8FF);
            this.LegacyColors.CustomizeBackground2 = factory.GetColor(0x6F9DD9);
            this.LegacyColors.CustomizeText = factory.GetColor(0x000000);
            this.LegacyColors.PanelBackground = factory.GetColor(0xE3EFFF);
            this.LegacyColors.PanelBackground2 = factory.GetColor(0xAFD2FF);
            this.LegacyColors.PanelText = factory.GetColor(0x083772);
            this.LegacyColors.PanelBorder = factory.GetColor(0x6593CF);
            this.LegacyColors.ExplorerBarBackground = factory.GetColor(0xC4C8D4);
            this.LegacyColors.ExplorerBarBackground2 = factory.GetColor(0xB1B3C8);
            #endregion

            #region Navigation Pane
            this.NavigationPane.ButtonBackground = new GradientColorTable();
            this.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE3EFFF), 0));
            this.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC4DDFF), .4f));
            this.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xADD1FF), .4f));
            this.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC0DBFF), 1));
            #endregion

            #region SuperTooltip
            this.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xC9D9EF));
            this.SuperTooltip.TextColor = factory.GetColor(0x4C4C4C);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = this.Slider;
            sl.Default.LabelColor = factory.GetColor(0x0A207D);
            sl.Default.SliderLabelColor = factory.GetColor(0x1E395B);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF1F6FC), .15f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xAEC9EE), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x6A98D0), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), .85f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x2F578D);
            sl.Default.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x566375);
            sl.Default.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xE7F0F9));
            sl.Default.TrackLineColor = factory.GetColor(0x7496C2);
            sl.Default.TrackLineLightColor = factory.GetColor(0xDEE2EC);

            sl.MouseOver.LabelColor = factory.GetColor(0x092061);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x1E395B);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFDF5), .2f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFDF83), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDDA70D), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), .85f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFF4CE), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0x2F578D);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x67624A);
            sl.MouseOver.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xE7F0F9));
            sl.MouseOver.TrackLineColor = factory.GetColor(0x7496C2);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xDEE2EC);

            sl.Pressed.LabelColor = factory.GetColor(0x092061);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x1E395B);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDB7518), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF7902F), .2f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF9C18B), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xED7400), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFC188), .85f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF2D2B5), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0x2F578D);
            sl.Pressed.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.Pressed.PartForeColor = factory.GetColor(0x67513E);
            sl.Pressed.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xE7F0F9));
            sl.Pressed.TrackLineColor = factory.GetColor(0x7496C2);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xDEE2EC);

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.SliderLabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            #endregion

            #region ListViewEx
            this.ListViewEx.Border = factory.GetColor(editBorderColor);
            this.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xC4DDFF));
            this.ListViewEx.ColumnSeparator = factory.GetColor(0x9AC6FF);
            this.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xA7CDF0), Color.Empty);
            this.ListViewEx.SelectionBorder = factory.GetColor(0xE3EFFF);
            #endregion

            #region DataGridView
            this.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(0x9EB6CE);
            this.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xF9FCFD), factory.GetColor(0xD3DBE9), 90);
            this.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF9D99F), factory.GetColor(0xF1C15F), 90);
            this.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(0xF29536);
            this.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D), factory.GetColor(0xF2923A), 90);
            this.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(0xF29536);
            this.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xDFE2E4), factory.GetColor(0xBCC5D2), 90);
            this.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(0x879FB7);
            this.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xBCC5D2), factory.GetColor(0xDFE2E4), 90);
            this.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(0xFFFFFF);

            this.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xE4ECF7));
            this.DataGridView.RowNormalBorder = factory.GetColor(0x9EB6CE);
            this.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D));
            this.DataGridView.RowSelectedBorder = factory.GetColor(0xF29536);
            this.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            this.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(0xF29536);
            this.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            this.DataGridView.RowMouseOverBorder = factory.GetColor(0xF29536);
            this.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xBBC4D1));
            this.DataGridView.RowPressedBorder = factory.GetColor(0xFFFFFF);

            this.DataGridView.GridColor = factory.GetColor(0xD0D7E5);

            this.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xA9C4E9));
            this.DataGridView.SelectorBorder = factory.GetColor(0x9EB6CE);
            this.DataGridView.SelectorBorderDark = factory.GetColor(0xB0CFF7);
            this.DataGridView.SelectorBorderLight = factory.GetColor(0xD5E4F2);
            this.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(0xF9FAFB), factory.GetColor(0xD7DAE2));

            this.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0x8BA0B5));
            this.DataGridView.SelectorMouseOverBorder = factory.GetColor(0x9EB6CE);
            this.DataGridView.SelectorMouseOverBorderDark = factory.GetColor(0xB0CFF7);
            this.DataGridView.SelectorMouseOverBorderLight = factory.GetColor(0xD5E4F2);
            this.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(0xF9FAFB), factory.GetColor(0xD7DAE2));
            #endregion

            #region SideBar
            this.SideBar.Background = new LinearGradientColorTable(factory.GetColor(Color.White));
            this.SideBar.Border = factory.GetColor(0x6593CF);
            this.SideBar.SideBarPanelItemText = factory.GetColor(0x15428B);
            this.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            this.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE3EFFF), 0));
            this.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC4DDFF), .4f));
            this.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xADD1FF), .4f));
            this.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC0DBFF), 1));
            // Expanded
            this.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            this.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFBDBB5), 0));
            this.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEC778), .4f));
            this.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEB456), .4f));
            this.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDEB9F), 1));
            // MouseOver
            this.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            this.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFCD9), 0));
            this.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE78D), .4f));
            this.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFD748), .4f));
            this.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE793), 1));
            // Pressed
            this.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            this.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8B869), 0));
            this.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDA361), .4f));
            this.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFB8A3C), .4f));
            this.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEBB60), 1));
            #endregion

            #region AdvTree
#if !NOTREE
            this.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            DevComponents.AdvTree.Display.ColorTableInitializer.InitOffice2007Blue(this.AdvTree, factory);
#endif
            #endregion

            #region CrumbBar
            this.CrumbBarItemView = new CrumbBarItemViewColorTable();
            CrumbBarItemViewStateColorTable crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            this.CrumbBarItemView.Default = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x15428B);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            this.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x15428B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFCD9"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFE78D"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFD748"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFE793"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FFB8A98E");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            this.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x15428B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFDEC"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFF4CA"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFEBA6"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFF2C5"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8E8F8F");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            this.CrumbBarItemView.Pressed = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x15428B);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFC59B61"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFEEB469"), .1f),
                new BackgroundColorBlend(factory.GetColor("FFFCA060"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFB8E3D"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFEBB60"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8B7654");
            crumbBarViewTable.BorderLight = factory.GetColor("408B7654");

            #endregion

            #region WarningBox
            this.WarningBox.BackColor = factory.GetColor(Color.FromArgb(255, 196, 219, 249));
            this.WarningBox.WarningBorderColor = factory.GetColor(Color.FromArgb(255, 162, 188, 213));
            this.WarningBox.WarningBackColor1 = factory.GetColor(Color.FromArgb(255, 255, 255, 255));
            this.WarningBox.WarningBackColor2 = factory.GetColor(Color.FromArgb(255, 229, 244, 254));
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            this.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x5D8CC9)),           // DayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xE4ECF6), factory.GetColor(0xD6E2F1), factory.GetColor(0xC2D4EB), factory.GetColor(0xD0DEEF)},
                new float[] {0f, .55f, .58f, 1f}, 90f),             // DayHeaderBackground

                new ColorDef(factory.GetColor(0x8DAED9)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0x8DAED9)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(0xE6EDF7)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(0xA5BFE1)),           // DayHourBorder
                new ColorDef(factory.GetColor(0xD5E1F1)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(0x294C7A)),           // SelectionBackground
                
                new ColorDef(factory.GetColor(0x5D8CC9)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xBBCFE9), factory.GetColor(0x8DAED9)},
                new float[] {0f, 1f}, 90f),                         // OwnerTabBackground

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0x8DAED9)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xF5F5F5)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region TimeRulerColors

            this.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xE3EFFF)),           // TimeRulerBackground
                new ColorDef(factory.GetColor(0x6593CF)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(0x6593CF)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(0x6593CF)),           // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeRulerIndicatorBorder
            };

            #endregion

            #region MonthViewColors

            this.CalendarView.MonthViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x8DAED9)),           // DayOfWeekHeaderBorder

                new ColorDef(new Color[] { factory.GetColor(0xE1E9F4), factory.GetColor(0xD6E2F1), factory.GetColor(0xC2D4EB), factory.GetColor(0xD0DEEF) },
                new float[] { 0, .6f, .6f, 1 }),                    // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // DayOfWeekHeaderForeground - 0x15428B
                new ColorDef(factory.GetColor(0x5D8CC9)),           // SideBarBorder

                new ColorDef(new Color[] { factory.GetColor(0xE1E9F4), factory.GetColor(0xD6E2F1), factory.GetColor(0xC2D4EB), factory.GetColor(0xD0DEEF) },
                new float[] { 0, .6f, .6f, 1 }, 0),                 // SideBarBackground

                new ColorDef(factory.GetColor(0x000000)),           // SideBarForeground - 0x15428B
                new ColorDef(factory.GetColor(0x5D8CC9)),           // DayHeaderBorder

                new ColorDef(new Color[] { factory.GetColor(0xE1E9F4), factory.GetColor(0xD6E2F1), factory.GetColor(0xC2D4EB), factory.GetColor(0xD0DEEF) },
                new float[] { 0, .6f, .6f, 1 }),                    // DayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(0x8DAED9)),           // DayContentBorder
                new ColorDef(factory.GetColor(0xE6EDF7)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(0xA5BFE1)),           // DayContentInactiveDayBackground
                
                new ColorDef(factory.GetColor(0x5D8CC9)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xBBCFE9), factory.GetColor(0x8DAED9)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0x8DAED9)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground
            };

            #endregion

            #region AppointmentColors

            this.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x4B71A2)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(0xFDFEFF), factory.GetColor(0xC1D3EA)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab
            SuperTab = Office2007ColorTableFactory.GetSuperTabBlueDefault(factory);
            #endregion

            #region SuperTabItem
            SuperTabItem = Office2007ColorTableFactory.GetSuperTabItemBlueDefault(factory);
            #endregion

            #region SuperTabPanel
            SuperTabPanel = Office2007ColorTableFactory.GetSuperTabPanelBlueDefault(factory);
            #endregion

            #endregion

            #region Backstage

            #region Backstage
            Backstage = Office2007ColorTableFactory.GetBackstageBlueDefault(factory);
            #endregion

            #region BackstageItem
            BackstageItem = Office2007ColorTableFactory.GetBackstageItemBlueDefault(factory);
            #endregion

            #region BackstagePanel
            BackstagePanel = Office2007ColorTableFactory.GetBackstagePanelBlueDefault(factory);
            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(0xABC1DE);
            sbt.OffBackColor = factory.GetColor(0xDAE5F3);
            sbt.OffTextColor = factory.GetColor(0x15428B);
            sbt.OnBackColor = factory.GetColor(0x92D050);
            sbt.OnTextColor = factory.GetColor(0x15428B);
            sbt.SwitchBackColor = factory.GetColor(0xC1D8F0);
            sbt.SwitchBorderColor = factory.GetColor(0x86A5CF);
            sbt.TextColor = factory.GetColor(0x15428B);
            this.SwitchButton = new SwitchButtonColors();
            this.SwitchButton.Default = sbt;
            this.SwitchButton.Disabled.BorderColor = this.CheckBoxItem.Disabled.CheckBorder;
            this.SwitchButton.Disabled.SwitchBorderColor = this.SwitchButton.Disabled.BorderColor;
            this.SwitchButton.Disabled.OffTextColor = this.CheckBoxItem.Disabled.Text;
            this.SwitchButton.Disabled.OnTextColor = this.SwitchButton.Disabled.OffTextColor;
            this.SwitchButton.Disabled.TextColor = this.SwitchButton.Disabled.OffTextColor;
            this.SwitchButton.Disabled.SwitchBackColor = this.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            this.SwitchButton.Disabled.OffBackColor = this.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            this.SwitchButton.Disabled.OnBackColor = this.SwitchButton.Disabled.OffBackColor;
            #endregion

            #region ElementStyle Classes
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(0xB9D0ED);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xD4E6F8);
            m_StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = Office2007ColorTableFactory.GetFileMenuContainerStyle(this);
            m_StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = Office2007ColorTableFactory.GetTwoColumnMenuContainerStyle(this);
            m_StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnOneContainerStyle(this);
            m_StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnTwoContainerStyle(this);
            m_StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = Office2007ColorTableFactory.GetMenuBottomContainer(this);
            m_StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(editBorderColor));
            m_StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(editBorderColor));
            m_StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(editBorderColor));
            m_StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(editBorderColor), SystemColors.Window);
            m_StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2007ColorTableFactory.GetRibbonClientPanelStyle(factory, eOffice2007ColorScheme.Blue);
            m_StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(this.ListViewEx);
            m_StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetStatusBarAltStyle(this.Bar);
            m_StyleClasses.Add(style.Class, style);
#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(editBorderColor), Color.Empty);
            m_StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(factory.GetColor(0xF9FCFD), factory.GetColor(0xD3DBE9), factory.GetColor(0x9EB6CE));
            m_StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(0xF9FCFD), factory.GetColor(0xD3DBE9), factory.GetColor(0x9EB6CE));
            m_StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(0x000000));
            m_StyleClasses.Add(style.Class, style);
            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(Color.White), factory.GetColor("FF567DB0"), factory.GetColor("FF2F578D"));
            m_StyleClasses.Add(style.Class, style);
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            m_StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            m_StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            m_StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            m_StyleClasses.Add(style.Class, style);

            // Slide-out Button
            style = Office2007ColorTableFactory.GetSlideOutButtonStyle(this.CheckBoxItem.Default.CheckBorder);
            m_StyleClasses.Add(style.Class, style);

            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(Color.White));
            m_StyleClasses.Add(style.Class, style);
            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(Color.DarkGray));
            m_StyleClasses.Add(style.Class, style);

            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(SystemColors.Window);
            m_StyleClasses.Add(style.Class, style);
#endif
            #endregion

            #region App Button Colors
            Office2010ColorTable.InitAppButtonColors(this, ColorFactory.Empty);
            #endregion

            #region StepIndicator
            this.StepIndicator.BackgroundColor = factory.GetColor(ColorFunctions.GetShade(this.Form.BackColor, 10));
            this.StepIndicator.IndicatorColor = factory.GetColor(0xA4CC28);
            #endregion

            #region RadialMenu
            this.RadialMenu = new RadialMenuColorTable(); // This will force built-in default colors to be used, blue
            #endregion
        }
Beispiel #6
0
        public static void InitializeVistaBlackColorTable(Office2007ColorTable table, ColorFactory factory)
        {
            #region Ribbon Bar
            table.RibbonBar.Default = GetRibbonBarBlack(factory);
            table.RibbonBar.MouseOver = GetRibbonBarBlackMouseOver(factory);
            table.RibbonBar.Expanded = GetRibbonBarBlackExpanded(factory);
            #endregion

            #region RibbonTabItem
            // RibbonTabItem Default
            table.RibbonTabItemColors.Clear();
            Office2007RibbonTabItemColorTable rt = Office2007ColorTableFactory.GetRibbonTabItemBlackDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);
            // Green

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackGreen(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            table.RibbonTabItemColors.Add(rt);
            // Magenta

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackMagenta(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            table.RibbonTabItemColors.Add(rt);
            // Orange

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackOrange(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            table.RibbonTabItemColors.Add(rt);
            #endregion

            #region Ribbon Control
            table.RibbonControl = new Office2007RibbonColorTable();
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0x535353), factory.GetColor(0x535353));
            //t.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD7DADF), factory.GetColor(0x3A3A3A));
            //t.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBEBE), factory.GetColor(0xBEBEBE));
            table.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xCED2D9), factory.GetColor(0xBEBEBE));
            table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x535353), factory.GetColor(0x4F4F4F));
            table.RibbonControl.TabDividerBorder = factory.GetColor(0x414141);
            table.RibbonControl.TabDividerBorderLight = factory.GetColor(0x666666);
            table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xD7DBE0), factory.GetColor(0xC1C6CF));
            table.RibbonControl.PanelBottomBackground = new LinearGradientColorTable(factory.GetColor(0xB4BBC5), factory.GetColor(0xEBEBEB));
            table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonNormalBlack.png");
            table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonHotBlack.png");
            table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonPressedBlack.png");
            #endregion

            #region ItemContainer
            table.ItemGroup.TopBackground = new LinearGradientColorTable(factory.GetColor(0xD6DEDF), factory.GetColor(0xDBE2E4));
            table.ItemGroup.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD3D8DA), factory.GetColor(0xE0E5E7));
            table.ItemGroup.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xDFE6E6), factory.GetColor(0xEDF0F1));
            table.ItemGroup.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xADB7BB), factory.GetColor(0x8C959A));
            table.ItemGroup.ItemGroupDividerDark = Color.FromArgb(196, factory.GetColor(0xCECECE));
            table.ItemGroup.ItemGroupDividerLight = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            #endregion

            #region Bar
            table.Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(0x333333), factory.GetColor(0x3B3E46));
            table.Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0x2F3030), factory.GetColor(0x454545));
            table.Bar.ToolbarBottomBorder = factory.GetColor(0x4C4C4C);
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(0x2F2F2F);
            table.Bar.StatusBarTopBorder = factory.GetColor(0x333333);
            table.Bar.StatusBarTopBorderLight = Color.Empty;
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xC6C5C6), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xB4B4B4), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x979898), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x484C52), 1f));
            #endregion

            #region ButtonItem Colors Initialization
            table.ButtonItemColors.Clear();
            table.RibbonButtonItemColors.Clear();
            table.MenuButtonItemColors.Clear();
            // Orange
            Office2007ButtonItemColorTable cb = Office2007ColorTableFactory.GetButtonItemBlackOrange(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.ButtonItemColors.Add(cb);
            // Orange with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.ButtonItemColors.Add(cb);
            // Blue
            cb = Office2007ColorTableFactory.GetButtonItemBlackBlue(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.ButtonItemColors.Add(cb);
            // Magenta
            cb = Office2007ColorTableFactory.GetButtonItemBlackMagenta(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.ButtonItemColors.Add(cb);
            // Magenta with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.ButtonItemColors.Add(cb);

            // RibbonBar buttons
            cb = Office2007ColorTableFactory.GetButtonItemBlackOrange(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.RibbonButtonItemColors.Add(cb);
            // Orange with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Blue
            cb = Office2007ColorTableFactory.GetButtonItemBlackBlue(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.RibbonButtonItemColors.Add(cb);
            // Blue with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta
            cb = Office2007ColorTableFactory.GetButtonItemBlackMagenta(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta with background
            cb = Office2007ColorTableFactory.GetButtonItemBlackMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.RibbonButtonItemColors.Add(cb);

            // MENU Orange
            cb = Office2007ColorTableFactory.GetButtonItemBlackOrange(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            cb.Default.Text = factory.GetColor(0xFFFFFF);
            cb.MouseOver.Text = factory.GetColor(0x000000);
            cb.Checked.Text = factory.GetColor(0x000000);
            cb.Expanded.Text = factory.GetColor(0x000000);
            cb.Pressed.Text = factory.GetColor(0x000000);
            table.MenuButtonItemColors.Add(cb);

            cb = Office2007ColorTableFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            table.ButtonItemColors.Add(cb);

            table.ButtonItemColors.Add(ButtonItemStaticColorTables.CreateBlueOrbColorTable(factory));
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            table.RibbonTabGroupColors.Clear();
            // Default
            Office2007RibbonTabGroupColorTable tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            table.RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            table.RibbonTabGroupColors.Add(tg);

            // Green
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            table.RibbonTabGroupColors.Add(tg);

            // Orange
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            table.RibbonTabGroupColors.Add(tg);
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(0x868686), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xE9EEEE), Color.Empty);
            table.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(0xC5C5C5), Color.Empty);
            table.Menu.SideBorderLight = new LinearGradientColorTable(factory.GetColor(0xF5F5F5), Color.Empty);
            table.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xE5E5E5), Color.Empty);

            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x515050), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x4E4E4F), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(0x6B6C71);
            table.Menu.FileContainerBorderLight = factory.GetColor(0x6B6C71);
            table.Menu.FileColumnOneBackground = factory.GetColor(0xFAFAFA);
            table.Menu.FileColumnOneBorder = factory.GetColor(0xC5C5C5);
            table.Menu.FileColumnTwoBackground = factory.GetColor(0xE9EAEE);
            table.Menu.FileBottomContainerBackgroundBlend.Clear();
            table.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x434652), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x3C404A), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x2F2F2F), 0.4F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x404040), 1F)});
            #endregion

            #region ComboBox
            table.ComboBox.Default.Background = factory.GetColor(0xE8E8E8);
            int editBorderColor = 0x898989;
            table.ComboBox.Default.Border = factory.GetColor(editBorderColor);
            table.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandText = factory.GetColor(0x7C7C7C);

            table.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(editBorderColor);
            table.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xECF0F5), factory.GetColor(0xDFE4EB), 90);
            table.ComboBox.DefaultStandalone.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xB7B7B7), Color.Empty, 90);
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x000000);

            table.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.MouseOver.Border = factory.GetColor(editBorderColor);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCE2), factory.GetColor(0xFFE7A5), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFCF3), 90);
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(0x000000);
            table.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DroppedDown.Border = factory.GetColor(editBorderColor);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xEAE0BF), factory.GetColor(0xFFD456), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xF1EBD5), factory.GetColor(0xFFE694), 90);
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x9A8F63), Color.Empty, 90);
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x000000);
            #endregion

            #region Dialog Launcher
            table.DialogLauncher.Default.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.Default.DialogLauncherShade = factory.GetColor(0xEBEBEB);

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.MouseOver.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCDF), factory.GetColor(0xFFEFA7));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFD975), factory.GetColor(0xFFE398));
            table.DialogLauncher.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFB), factory.GetColor(0xFFFBF2));
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xDBCE99), Color.Empty);

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x656870);
            table.DialogLauncher.Pressed.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE8DEBD), factory.GetColor(0xEAC68D));
            table.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFA738), factory.GetColor(0xFFCC4E));
            table.DialogLauncher.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF0EAD4), factory.GetColor(0xFFE391));
            table.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9A8F63), factory.GetColor(0xB0A472));
            #endregion

            #region Legacy Color Scheme
            InitializeBlackLegacyColors(table.LegacyColors, factory);
            #endregion

            #region System Button, Form

            // Default state no background
            table.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0x848C95), factory.GetColor(0x9FA9B7));
            table.SystemButton.Default.LightShade = factory.GetColor(0x9FA9B7);
            table.SystemButton.Default.DarkShade = factory.GetColor(0x818080);

            // Mouse over state
            table.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0x363535), factory.GetColor(0x4F5763));
            table.SystemButton.MouseOver.LightShade = factory.GetColor(0x9BA1A8);
            table.SystemButton.MouseOver.DarkShade = factory.GetColor(0x454C56);
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xB1B8C1), factory.GetColor(0x8894A1));
            table.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x687585), factory.GetColor(0x9DB1C1));
            table.SystemButton.MouseOver.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xCDD3DA), Color.Transparent);
            table.SystemButton.MouseOver.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xB5DDF4), Color.Transparent);
            table.SystemButton.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x57606D), factory.GetColor(0x5C6269));
            table.SystemButton.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xCDD3DA), factory.GetColor(0xDADFE3));

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0x6D6C6C), factory.GetColor(0x8B96A4));
            table.SystemButton.Pressed.LightShade = factory.GetColor(0x7F8894);
            table.SystemButton.Pressed.DarkShade = factory.GetColor(0x6D6C6C);
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0x373737), factory.GetColor(0x2B2B2B));
            table.SystemButton.Pressed.TopHighlight = new LinearGradientColorTable(factory.GetColor(0x686868), Color.Transparent);
            table.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x000000), factory.GetColor(0x07090B));
            table.SystemButton.Pressed.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0x516982), Color.Transparent);
            table.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x222429), factory.GetColor(0x191919));
            table.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x464646), factory.GetColor(0x333333));

            // Form border
            table.Form.Active.BorderColors = new Color[] {
                factory.GetColor(0x2F2F2F),
                factory.GetColor(0x4D4D4D),
                factory.GetColor(0x535353),
                factory.GetColor(0x535353),
                factory.GetColor(0x535353)};
            table.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(0x929292),
                factory.GetColor(0x9F9F9F),
                factory.GetColor(0xABABAB),
                factory.GetColor(0x535353),
                factory.GetColor(0x535353)};


            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x434752), factory.GetColor(0x3A3D45));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x2F3030), factory.GetColor(0x3E3E3E));
            table.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0x484848), factory.GetColor(0x4A4A4A) };
            table.Form.Active.CaptionText = factory.GetColor(0xAED1FF);
            table.Form.Active.CaptionTextExtra = factory.GetColor(0xFFFFFF);

            // Form Caption Inactive
            table.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x9A9CA1), factory.GetColor(0x97989C));
            table.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x929292), factory.GetColor(0x9A9A9A));
            table.Form.Inactive.CaptionText = factory.GetColor(0xE1E1E1);
            table.Form.Inactive.CaptionTextExtra = factory.GetColor(0xE1E1E1);

            table.Form.BackColor = factory.GetColor(0x7D7D7D);
            table.Form.TextColor = factory.GetColor(0xFFFFFF);
            #endregion

            #region Quick Access Toolbar Background
            table.QuickAccessToolbar.Active.TopBackground = new LinearGradientColorTable(factory.GetColor(0x7B7E84), factory.GetColor(0x797B80));
            table.QuickAccessToolbar.Active.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x6D6E6E), factory.GetColor(0x444444));
            table.QuickAccessToolbar.Active.OutterBorderColor = factory.GetColor(0x474747);
            table.QuickAccessToolbar.Active.MiddleBorderColor = factory.GetColor(0x353535);
            table.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Inactive.TopBackground = new LinearGradientColorTable(factory.GetColor(0xA7A7AA), factory.GetColor(0xB3B3B6));
            table.QuickAccessToolbar.Inactive.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xADADAD), factory.GetColor(0x959595));
            table.QuickAccessToolbar.Inactive.OutterBorderColor = factory.GetColor(0xA9A9A9);
            table.QuickAccessToolbar.Inactive.MiddleBorderColor = factory.GetColor(0x5D5D5D);
            table.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            table.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x8D9093), factory.GetColor(0x858789));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0x5D6064);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            table.QuickAccessToolbar.Standalone.InnerBorderColor = factory.GetColor(0xCBCCCE);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xEBEBEB);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x464646);

            table.QuickAccessToolbar.Active.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            table.QuickAccessToolbar.Inactive.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            table.TabControl.Default = new Office2007TabItemStateColorTable();
            table.TabControl.Default.TopBackground = new LinearGradientColorTable(factory.GetColor(0xD8DCE2), factory.GetColor(0xB4BDC7));
            table.TabControl.Default.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD4D9DF), factory.GetColor(0xEBEBEB));
            table.TabControl.Default.InnerBorder = factory.GetColor(0xEBEBEB);
            table.TabControl.Default.OuterBorder = factory.GetColor(0x464646);
            table.TabControl.Default.Text = factory.GetColor(0x303030);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFDEB), factory.GetColor(0xFFECA8));
            table.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFDA59), factory.GetColor(0xFFE68D));
            table.TabControl.MouseOver.InnerBorder = factory.GetColor(0xFFFFFB);
            table.TabControl.MouseOver.OuterBorder = factory.GetColor(0xB69D73);
            table.TabControl.MouseOver.Text = factory.GetColor(0x363636);

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            //t.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFD29B), factory.GetColor(0xFFBB6E));
            //t.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFAF44), factory.GetColor(0xFEDC75));
            //t.TabControl.Selected.InnerBorder = factory.GetColor(0xCDB69C);
            //t.TabControl.Selected.OuterBorder = factory.GetColor(0x95774A);
            table.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(Color.White), factory.GetColor(0xF7F7F7));
            table.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xF7F7F7), factory.GetColor(0xF7F7F7));
            table.TabControl.Selected.InnerBorder = factory.GetColor(Color.White);
            table.TabControl.Selected.OuterBorder = factory.GetColor(0x464646);
            table.TabControl.Selected.Text = factory.GetColor(0x272727);

            table.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(0xFDFDFD), factory.GetColor(0xC3C3C3));
            table.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(0xF7F7F7), factory.GetColor(0xC3C3C3));
            table.TabControl.TabPanelBorder = factory.GetColor(0x464646);
            #endregion

            #region CheckBoxItem
            Office2007CheckBoxColorTable chk = table.CheckBoxItem;
            chk.Default.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0x848484);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xA2ACB9)), Color.FromArgb(164, factory.GetColor(0xF6F6F6)));
            chk.Default.CheckInnerBorder = factory.GetColor(0xA2ACB9);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.Default.Text = factory.GetColor(0x000000);

            chk.MouseOver.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.MouseOver.CheckBorder = factory.GetColor(0x848484);
            chk.MouseOver.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xFAD57A)), Color.FromArgb(128, factory.GetColor(0xFEF8E7)));
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xFAD57A);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x000000);

            chk.Pressed.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xE5ECF7), Color.Empty);
            chk.Pressed.CheckBorder = factory.GetColor(0x848484);
            chk.Pressed.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xF28926)), Color.FromArgb(164, factory.GetColor(0xFFF4D5)));
            chk.Pressed.CheckInnerBorder = factory.GetColor(0xF28926);
            chk.Pressed.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x000000);

            chk.Disabled.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            chk.Disabled.CheckBorder = factory.GetColor(0xAEB1B5);
            chk.Disabled.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xE0E2E5)), Color.FromArgb(164, factory.GetColor(0xFBFBFB)));
            chk.Disabled.CheckInnerBorder = factory.GetColor(0xE0E2E5);
            chk.Disabled.CheckSign = new LinearGradientColorTable(factory.GetColor(0x8D8D8D), Color.Empty);
            chk.Disabled.Text = factory.GetColor(0x8D8D8D);
            #endregion

            #region Scroll Bar
            InitializeScrollBarColorTable(table, factory);
            InitializeAppBlackScrollBarColorTable(table, factory);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0x679720, 0xC2FF56, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(164, factory.GetColor(0xEEFFD7)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0x8DB254)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0x69922B)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);

            // Paused
            pct = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);

            // Error
            pct = table.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = table.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(0xEBEBEB);
            gallery.GroupLabelText = factory.GetColor(0x000000);
            gallery.GroupLabelBorder = factory.GetColor(0xC5C5C5);
            #endregion

            #region ListViewEx
            table.ListViewEx.Border = factory.GetColor(editBorderColor);
            table.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xD4D7DB));
            table.ListViewEx.ColumnSeparator = factory.GetColor(0x9199A4);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xA7CDF0), Color.Empty);
            table.ListViewEx.SelectionBorder = factory.GetColor(0xE3EFFF);
            #endregion

            #region Navigation Pane
            table.NavigationPane.ButtonBackground = new GradientColorTable();
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8F8F9), 0));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDFE2E4), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC7CBD1), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDBDEE2), 1));
            #endregion

            #region SuperTooltip
            table.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xE4E4F0));
            table.SuperTooltip.TextColor = factory.GetColor(0x4C4C4C);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(0xFFFFFF);
            sl.Default.SliderLabelColor = factory.GetColor(0x000000);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEFEFEF), .15f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBEC2C3), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x6C7178), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDCDCDE), .85f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x393F46);
            sl.Default.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x5B636C);
            sl.Default.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xEAEAEA));
            sl.Default.TrackLineColor = factory.GetColor(0x252525);
            sl.Default.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.MouseOver.LabelColor = factory.GetColor(0xFFFFFF);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x000000);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFE), .2f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF4DB93), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEEBA27), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFCEEBF), .85f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFAF0D2), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0x2D2D2D);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x676249);
            sl.MouseOver.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xFFF4D4));
            sl.MouseOver.TrackLineColor = factory.GetColor(0x252525);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.Pressed.LabelColor = factory.GetColor(0xFFFFFF);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x000000);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE68C3A), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF2A253), .2f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF9C18B), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF38317), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8BD86), .85f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF3D2B4), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0x2D2D2D);
            sl.Pressed.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Pressed.PartForeColor = factory.GetColor(0x675343);
            sl.Pressed.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xFFDCBB));
            sl.Pressed.TrackLineColor = factory.GetColor(0x252525);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.SliderLabelColor = factory.GetColor(0x8D8D8D);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            #endregion

            #region DataGridView
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), 90);
            table.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF9D99F), factory.GetColor(0xF1C15F), 90);
            table.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D), factory.GetColor(0xF2923A), 90);
            table.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xE0E0E0), factory.GetColor(0xC3C3C3), 90);
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xE0E0E0), factory.GetColor(0xC3C3C3), 90);
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xEDEDED));
            table.DataGridView.RowNormalBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D));
            table.DataGridView.RowSelectedBorder = factory.GetColor(0xF29536);
            table.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            table.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(0xF29536);
            table.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            table.DataGridView.RowMouseOverBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xF1C05C));
            table.DataGridView.RowPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.GridColor = factory.GetColor(0xD0D7E5);

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xC9C9C9));
            table.DataGridView.SelectorBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.SelectorBorderDark = factory.GetColor(0xCCCCCC);
            table.DataGridView.SelectorBorderLight = factory.GetColor(0xEBEBEB);
            table.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(0x7D7D7D), factory.GetColor(0x676767));

            table.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xADADAD), factory.GetColor(0x9F9F9F));
            table.DataGridView.SelectorMouseOverBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.SelectorMouseOverBorderDark = factory.GetColor(0xCCCCCC);
            table.DataGridView.SelectorMouseOverBorderLight = factory.GetColor(0xEBEBEB);
            table.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(0x7D7D7D), factory.GetColor(0x676767));
            #endregion

            #region AdvTree
#if !NOTREE
            table.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            DevComponents.AdvTree.Display.ColorTableInitializer.InitOffice2007Black(table.AdvTree, factory);
#endif
            #endregion

            #region CrumbBar
            table.CrumbBarItemView = new CrumbBarItemViewColorTable();
            CrumbBarItemViewStateColorTable crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Default = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x000000);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x000000);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFCD9"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFE78F"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFD74A"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFE794"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FFDDCF9B");
            crumbBarViewTable.BorderLight = factory.GetColor("80FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x000000);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFFFFDEC"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFFFF4CA"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFEBA6"), .4f),
                new BackgroundColorBlend(factory.GetColor("FFFFF2C5"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8E8F8F");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.Pressed = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x000000);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("FFC89861"), 0f),
                new BackgroundColorBlend(factory.GetColor("FFEDAE68"), .1f),
                new BackgroundColorBlend(factory.GetColor("FFFCA160"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFC8F3D"), .6f),
                new BackgroundColorBlend(factory.GetColor("FFFEBD61"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("FF8B7654");
            crumbBarViewTable.BorderLight = factory.GetColor("408B7654");

            #endregion

            #region ElementStyle Classes
            table.StyleClasses.Clear();
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(0xACACAC);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xDAE2E2);
            table.StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = Office2007ColorTableFactory.GetFileMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = Office2007ColorTableFactory.GetTwoColumnMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnOneContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnTwoContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = Office2007ColorTableFactory.GetMenuBottomContainer(table);
            table.StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(editBorderColor), SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2007ColorTableFactory.GetRibbonClientPanelStyle(factory, eOffice2007ColorScheme.Black);
            table.StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(table.ListViewEx);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetStatusBarAltStyle(table.Bar);
            table.StyleClasses.Add(style.Class, style);

#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(editBorderColor), Color.Empty);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), factory.GetColor(0xB6B6B6));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), factory.GetColor(0xB6B6B6));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(0x000000));
            table.StyleClasses.Add(style.Class, style);
#endif
            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(Color.White), factory.GetColor("FF333333"), factory.GetColor("FF252525"));
            table.StyleClasses.Add(style.Class, style);
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            table.StyleClasses.Add(style.Class, style);

            // Slide-out Button
            style = Office2007ColorTableFactory.GetSlideOutButtonStyle(table.CheckBoxItem.Default.CheckBorder);
            table.StyleClasses.Add(style.Class, style);

            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(Color.White));
            table.StyleClasses.Add(style.Class, style);
            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(Color.DarkGray));
            table.StyleClasses.Add(style.Class, style);

            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            #endregion

            #region SideBar
            table.SideBar.Background = new LinearGradientColorTable(factory.GetColor(Color.White));
            table.SideBar.Border = factory.GetColor(0xA7ADB6);
            table.SideBar.SideBarPanelItemText = factory.GetColor(Color.Black);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8F8F9), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDFE2E4), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC7CBD1), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDBDEE2), 1));
            // Expanded
            table.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFBDBB5), 0));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEC778), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEB456), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDEB9F), 1));
            // MouseOver
            table.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFCD9), 0));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE78D), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFD748), .4f));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE793), 1));
            // Pressed
            table.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8B869), 0));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFDA361), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFB8A3C), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFEBB60), 1));
            #endregion

            #region WarningBox
            table.WarningBox.BackColor = factory.GetColor(Color.FromArgb(64, 64, 64));
            table.WarningBox.WarningBorderColor = factory.GetColor(Color.FromArgb(86, 86, 86));
            table.WarningBox.WarningBackColor1 = factory.GetColor(Color.FromArgb(255, 255, 255));
            table.WarningBox.WarningBackColor2 = factory.GetColor(Color.FromArgb(234, 234, 234));
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            table.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x9199A4)),           // DayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}, 90f),             // DayHeaderBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayHourBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(0x4C535C)),           // SelectionBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xB4BAC1)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB4BAC1)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xF5F5F5)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground
                
                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region HourRulerColors

            table.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xF0F1F2)),           // TimeRulerBackground
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeRulerIndicatorBorder
            };

            #endregion

            #region MonthViewColors

            table.CalendarView.MonthViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x9199A4)),           // DayOfWeekHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}, 90f),             // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // SideBarBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}, 0),               // SideBarBackground
                
                new ColorDef(factory.GetColor(0x000000)),           // SideBarForeground
                new ColorDef(factory.GetColor(0x9199A4)),           // DayHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}),                  // DayHeaderBackground
                
                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(0xB0B6BE)),           // DayContentBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayContentInactiveDayBackground

                new ColorDef(factory.GetColor(0x9199A4)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xB4BAC1)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0xB4BAC1)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground
            };

            #endregion

            #region AppointmentColors

            table.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x4B71A2)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(0xFDFEFF), factory.GetColor(0xC1D3EA)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab

            table.SuperTab.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xCED2D9));

            table.SuperTab.InnerBorder = factory.GetColor(0xF3F5F5);
            table.SuperTab.OuterBorder = factory.GetColor(0xBEBEBE);

            table.SuperTab.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.InsertMarker = factory.GetColor(0xFF, 0x000080);

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable();

            table.SuperTabItem.Default.Normal.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(0x000000);

            // Disabled
            table.SuperTabItem.Default.Disabled.Text = factory.GetColor(0x8D8D8D);
            table.SuperTabItem.Default.Disabled.Background.AdaptiveGradient = false;
            table.SuperTabItem.Default.Disabled.CloseMarker = factory.GetColor(0x8D8D8D);

            // Top Selected

            table.SuperTabItem.Default.Selected.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xEEEEEF), factory.GetColor(0xCED2D9) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.Selected.InnerBorder = factory.GetColor(0xF3F5F5);
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(0xBEBEBE);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(0x000000);

            // Top SelectedMouseOver

            table.SuperTabItem.Default.SelectedMouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xEDEEEF), factory.GetColor(0xCACFD6) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = factory.GetColor(0xFAEBC2);
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(0xE8BB72);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(0x000000);

            // Top MouseOver
            table.SuperTabItem.Default.MouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xDBD4C3), factory.GetColor(0xE9CE8D) },
                new float[] { 0, 1 });

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(0xE8EAEE);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(0xBDBEC1);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(0x000000);

            // Left, Bottom, Right

            table.SuperTabItem.Left = table.SuperTabItem.Default;
            table.SuperTabItem.Bottom = table.SuperTabItem.Default;
            table.SuperTabItem.Right = table.SuperTabItem.Default;

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xCED2D9));

            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(0xF3F5F5);
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(0xBEBEBE);

            table.SuperTabPanel.Left = table.SuperTabPanel.Default;
            table.SuperTabPanel.Bottom = table.SuperTabPanel.Default;
            table.SuperTabPanel.Right = table.SuperTabPanel.Default;

            #endregion

            #endregion

            #region Backstage

            #region Backstage
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackColorTable(table.Backstage, factory);
            #endregion

            #region BackstageItem
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackItemColorTable(table.BackstageItem, factory);
            #endregion

            #region BackstagePanel
            SuperTabStyleColorFactory.GetOffice2010BackstageBlackPanelColorTable(table.BackstagePanel, factory);
            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(editBorderColor);
            sbt.OffBackColor = factory.GetColor(0xC9CED6);
            sbt.OffTextColor = factory.GetColor(0x000000);
            sbt.OnBackColor = factory.GetColor(0x92D050);
            sbt.OnTextColor = factory.GetColor(0x000000);
            sbt.SwitchBackColor = factory.GetColor(0xB4B6B6);
            sbt.SwitchBorderColor = factory.GetColor(0x898A8B);
            sbt.TextColor = factory.GetColor(0x000000);
            table.SwitchButton = new SwitchButtonColors();
            table.SwitchButton.Default = sbt;
            table.SwitchButton.Disabled.BorderColor = table.CheckBoxItem.Disabled.CheckBorder;
            table.SwitchButton.Disabled.SwitchBorderColor = table.SwitchButton.Disabled.BorderColor;
            table.SwitchButton.Disabled.OffTextColor = table.CheckBoxItem.Disabled.Text;
            table.SwitchButton.Disabled.OnTextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.TextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.SwitchBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OffBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OnBackColor = table.SwitchButton.Disabled.OffBackColor;
            #endregion

            #region StepIndicator
            table.StepIndicator.BackgroundColor = factory.GetColor(ColorFunctions.GetShade(table.Form.BackColor, 10));
            table.StepIndicator.IndicatorColor = factory.GetColor(0xA4CC28);
            #endregion

            #region RadialMenu
            table.RadialMenu = new RadialMenuColorTable(); // This will force built-in default colors to be used, blue
            table.RadialMenu.CircularBackColor = factory.GetColor(0xD44F2E);
            table.RadialMenu.CircularBorderColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.CircularForeColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBorder = factory.GetColor(0x3B3E46);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(0x3B3E46);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(0x3B3E46);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(0x3B3E46);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion
        }
Beispiel #7
0
        public static void InitializeVistaBlackColorTable(Office2007ColorTable table, ColorFactory factory)
        {
            #region Ribbon Bar
            table.RibbonBar.Default = GetRibbonBarBlack(factory);
            table.RibbonBar.MouseOver = GetRibbonBarBlackMouseOver(factory);
            table.RibbonBar.Expanded = GetRibbonBarBlackExpanded(factory);
            #endregion

            #region RibbonTabItem
            // RibbonTabItem Default
            table.RibbonTabItemColors.Clear();
            Office2007RibbonTabItemColorTable rt = GetRibbonTabItemBlackDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);
            // Green

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackGreen(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Green);
            table.RibbonTabItemColors.Add(rt);
            // Magenta

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackMagenta(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Magenta);
            table.RibbonTabItemColors.Add(rt);
            // Orange

            rt = Office2007ColorTableFactory.GetRibbonTabItemBlackOrange(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Orange);
            table.RibbonTabItemColors.Add(rt);
            #endregion

            #region Ribbon Control
            table.RibbonControl = new Office2007RibbonColorTable();
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0x3C4251));
            //t.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD7DADF), factory.GetColor(0x3A3A3A));
            //t.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBEBE), factory.GetColor(0xBEBEBE));
            table.RibbonControl.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x7A8295), factory.GetColor(0x646C89));
            table.RibbonControl.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x111216), factory.GetColor(0x000000));
            table.RibbonControl.TabDividerBorder = factory.GetColor(0x646C89);
            table.RibbonControl.TabDividerBorderLight = factory.GetColor(0x222222);
            //t.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0x626C88), factory.GetColor(0x3F4756));
            //t.RibbonControl.PanelBottomBackground = new LinearGradientColorTable(factory.GetColor(0x151516), factory.GetColor(0x3C476F));
            table.RibbonControl.PanelTopBackground = new LinearGradientColorTable(factory.GetColor(0xEDF6FF), factory.GetColor(0xBDD3EB));
            table.RibbonControl.PanelBottomBackground = new LinearGradientColorTable(factory.GetColor(0xA0B7D2), factory.GetColor(0xF0F0F0));
            table.RibbonControl.StartButtonDefault = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonNormalVistaBlack.png");
            table.RibbonControl.StartButtonMouseOver = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonHotVistaBlack.png");
            table.RibbonControl.StartButtonPressed = BarFunctions.LoadBitmap("SystemImages.BlankStartButtonPressedVistaBlack.png");
            #endregion

            #region ItemContainer
            table.ItemGroup.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFEFEFF), factory.GetColor(0xE5EAF5));
            table.ItemGroup.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xD4DBED), factory.GetColor(0xE1E6F6));
            table.ItemGroup.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            table.ItemGroup.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB2BDC7));
            table.ItemGroup.ItemGroupDividerDark = Color.FromArgb(196, factory.GetColor(0xCECECE));
            table.ItemGroup.ItemGroupDividerLight = Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            #endregion

            #region Bar
            table.Bar.ToolbarTopBackground = new LinearGradientColorTable(factory.GetColor(0x5A6487), factory.GetColor(0x353A45));
            table.Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0x0F0F14), factory.GetColor(0x4C5E8B));
            table.Bar.ToolbarBottomBorder = factory.GetColor(0xAAB5D0);
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xFAFAFA), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(0x2F2F2F);
            table.Bar.StatusBarTopBorder = factory.GetColor(0x333333);
            table.Bar.StatusBarTopBorderLight = Color.Empty;
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0xA8ABAB), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x5C6F79), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x00304B), 0.4f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x2C466B), 1f));
            #endregion

            #region ButtonItem Colors Initialization
            table.ButtonItemColors.Clear();
            table.RibbonButtonItemColors.Clear();
            table.MenuButtonItemColors.Clear();
            // Orange
            Office2007ButtonItemColorTable cb = GetMenuItemBlue(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.ButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemBlackOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.ButtonItemColors.Add(cb);
            // Blue
            cb = GetButtonItemBlackBlue(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.ButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemBlackBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.ButtonItemColors.Add(cb);
            // Magenta
            cb = GetButtonItemBlackMagenta(false, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.ButtonItemColors.Add(cb);
            // Magenta with background
            cb = GetButtonItemBlackMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.ButtonItemColors.Add(cb);

            // RibbonBar buttons
            cb = GetButtonItemBlackOrange(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.RibbonButtonItemColors.Add(cb);
            // Orange with background
            cb = GetButtonItemBlackOrangeWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.OrangeWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Blue
            cb = GetButtonItemBlackBlue(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Blue);
            table.RibbonButtonItemColors.Add(cb);
            // Blue with background
            cb = GetButtonItemBlackBlueWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.BlueWithBackground);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta
            cb = GetButtonItemBlackMagenta(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Magenta);
            table.RibbonButtonItemColors.Add(cb);
            // Magenta with background
            cb = GetButtonItemBlackMagentaWithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.MagentaWithBackground);
            table.RibbonButtonItemColors.Add(cb);

            // MENU Orange
            cb = GetMenuItemBlue(true, factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Orange);
            table.MenuButtonItemColors.Add(cb);

            cb = Office2007ColorTableFactory.GetButtonItemOffice2007WithBackground(factory);
            cb.Name = Enum.GetName(typeof(eButtonColor), eButtonColor.Office2007WithBackground);
            table.ButtonItemColors.Add(cb);

            table.ButtonItemColors.Add(ButtonItemStaticColorTables.CreateBlueOrbColorTable(factory));
            #endregion

            #region RibbonTabItemGroup Colors Initialization
            table.RibbonTabGroupColors.Clear();
            // Default
            Office2007RibbonTabGroupColorTable tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackDefault(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Default);
            table.RibbonTabGroupColors.Add(tg);

            // Magenta
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackMagenta(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Magenta);
            table.RibbonTabGroupColors.Add(tg);

            // Green
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackGreen(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Green);
            table.RibbonTabGroupColors.Add(tg);

            // Orange
            tg = Office2007ColorTableFactory.GetRibbonTabGroupBlackOrange(factory);
            tg.Name = Enum.GetName(typeof(eRibbonTabGroupColor), eRibbonTabGroupColor.Orange);
            table.RibbonTabGroupColors.Add(tg);
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xF0F0F0), Color.Empty);
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(0x646464), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xF1F1F1), Color.Empty);
            table.Menu.SideBorder = new LinearGradientColorTable(factory.GetColor(0xE2E3E3), Color.Empty);
            table.Menu.SideBorderLight = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            table.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xE5E5E5), Color.Empty);

            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x626C88), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x393F4D), .01F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x393F4D), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(0x222222);
            table.Menu.FileContainerBorderLight = factory.GetColor(0x7A8295);
            table.Menu.FileColumnOneBackground = factory.GetColor(0xFAFAFA);
            table.Menu.FileColumnOneBorder = factory.GetColor(0xC5C5C5);
            table.Menu.FileColumnTwoBackground = factory.GetColor(0xE9EAEE);
            table.Menu.FileBottomContainerBackgroundBlend.Clear();
            table.Menu.FileBottomContainerBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x626C88), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x3F4756), 0.5F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x151516), 0.5F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0x3C476F), 1F)});
            #endregion

            #region ComboBox
            table.ComboBox.Default.Background = factory.GetColor(0xF2F2F2);
            int editBorderColor = 0x8D93A0;
            table.ComboBox.Default.Border = factory.GetColor(editBorderColor);
            table.ComboBox.Default.ExpandBackground = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandBorderOuter = new LinearGradientColorTable();
            table.ComboBox.Default.ExpandText = factory.GetColor(0x7C7C7C);

            table.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(0x707070);
            table.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xF2F2F2), factory.GetColor(0xCFCFCF), 90);
            table.ComboBox.DefaultStandalone.ExpandBorderInner = new LinearGradientColorTable();
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x707070), Color.Empty, 90);
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x000000);

            table.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.MouseOver.Border = factory.GetColor(0x3C7FB1);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xEAF6FD), factory.GetColor(0xA7D9F5), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0xFAFDFE));
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x3C7FB1), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(0x000000);
            table.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DroppedDown.Border = factory.GetColor(0x2C628B);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xE5F4FC), factory.GetColor(0x68B3DB), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = new LinearGradientColorTable(factory.GetColor(0x9EB0BA), Color.Transparent, 90);
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0x2C628B), Color.Empty, 90);
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x000000);
            #endregion

            #region Dialog Launcher
            table.DialogLauncher.Default.DialogLauncher = factory.GetColor(0x3C476F);
            table.DialogLauncher.Default.DialogLauncherShade = factory.GetColor(0xEBEBEB);

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x3C476F);
            table.DialogLauncher.MouseOver.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE9F7FE), factory.GetColor(0xDDF2FD));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x95BED5), factory.GetColor(0xB5E4FF));
            table.DialogLauncher.MouseOver.InnerBorder = new LinearGradientColorTable(Color.FromArgb(128, Color.White));
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA5A5A5), factory.GetColor(0x959595));

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x3C476F);
            table.DialogLauncher.Pressed.DialogLauncherShade = factory.GetColor(0xEBEBEB);
            table.DialogLauncher.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xE9F7FE), factory.GetColor(0xC5E9FB));
            table.DialogLauncher.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x649EBF), factory.GetColor(0x87D3FF));
            table.DialogLauncher.Pressed.InnerBorder = new LinearGradientColorTable(Color.FromArgb(128, Color.White));
            table.DialogLauncher.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA5A5A5), factory.GetColor(0x959595));
            #endregion

            #region Legacy Color Scheme
            InitializeBlackLegacyColors(table.LegacyColors, factory);
            #endregion

            #region System Button, Form

            // Default state no background
            table.SystemButton.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0x848C95), factory.GetColor(0x9FA9B7));
            table.SystemButton.Default.LightShade = factory.GetColor(0x9FA9B7);
            table.SystemButton.Default.DarkShade = factory.GetColor(0x818080);

            // Mouse over state
            table.SystemButton.MouseOver = new Office2007SystemButtonStateColorTable();
            table.SystemButton.MouseOver.Foreground = new LinearGradientColorTable(factory.GetColor(0x363535), factory.GetColor(0x4F5763));
            table.SystemButton.MouseOver.LightShade = factory.GetColor(0x9BA1A8);
            table.SystemButton.MouseOver.DarkShade = factory.GetColor(0x454C56);
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xB1B8C1), factory.GetColor(0x8894A1));
            table.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x687585), factory.GetColor(0x9DB1C1));
            table.SystemButton.MouseOver.TopHighlight = new LinearGradientColorTable(factory.GetColor(0xCDD3DA), Color.Transparent);
            table.SystemButton.MouseOver.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0xB5DDF4), Color.Transparent);
            table.SystemButton.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x57606D), factory.GetColor(0x5C6269));
            table.SystemButton.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xCDD3DA), factory.GetColor(0xDADFE3));

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0x6D6C6C), factory.GetColor(0x8B96A4));
            table.SystemButton.Pressed.LightShade = factory.GetColor(0x7F8894);
            table.SystemButton.Pressed.DarkShade = factory.GetColor(0x6D6C6C);
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0x373737), factory.GetColor(0x2B2B2B));
            table.SystemButton.Pressed.TopHighlight = new LinearGradientColorTable(factory.GetColor(0x686868), Color.Transparent);
            table.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x000000), factory.GetColor(0x07090B));
            table.SystemButton.Pressed.BottomHighlight = new LinearGradientColorTable(factory.GetColor(0x516982), Color.Transparent);
            table.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x222429), factory.GetColor(0x191919));
            table.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x464646), factory.GetColor(0x333333));

            // Form border
            table.Form.Active.BorderColors = new Color[] {
                factory.GetColor(0x101111),
                factory.GetColor(0x222222),
                factory.GetColor(0x4B4B4B),
                factory.GetColor(0x3C4251),
                factory.GetColor(0x3C4251)};
            table.Form.Inactive.BorderColors = new Color[] {
                factory.GetColor(0x101111),
                factory.GetColor(0x222222),
                factory.GetColor(0x4B4B4B),
                factory.GetColor(0x3C4251),
                factory.GetColor(0x3C4251)};


            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x626C88), factory.GetColor(0x393F4D));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x151516), factory.GetColor(0x3C476F));
            table.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0x646C89), factory.GetColor(0x222222) };
            table.Form.Active.CaptionText = factory.GetColor(0xFFFFFF);
            table.Form.Active.CaptionTextExtra = factory.GetColor(0x14C2DC);

            // Form Caption Inactive
            table.Form.Inactive.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0x626C88), factory.GetColor(0x393F4D));
            table.Form.Inactive.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0x393F4D), factory.GetColor(0x393F4D));
            table.Form.Inactive.CaptionText = factory.GetColor(0xE1E1E1);
            table.Form.Inactive.CaptionTextExtra = factory.GetColor(0xE1E1E1);

            table.Form.BackColor = factory.GetColor(0xEEF3FA);
            table.Form.TextColor = factory.GetColor(0x000000);
            #endregion

            #region Quick Access Toolbar Background
            table.QuickAccessToolbar.Active.TopBackground = new LinearGradientColorTable(factory.GetColor(0x626C88), factory.GetColor(0x5A637C));
            table.QuickAccessToolbar.Active.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x5A637C), factory.GetColor(0x393F4D));
            table.QuickAccessToolbar.Active.OutterBorderColor = factory.GetColor(Color.FromArgb(32, Color.White));
            table.QuickAccessToolbar.Active.MiddleBorderColor = factory.GetColor(0x222222);
            table.QuickAccessToolbar.Active.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Inactive.TopBackground = new LinearGradientColorTable(factory.GetColor(0x626C88), factory.GetColor(0x5A637C));
            table.QuickAccessToolbar.Inactive.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x5A637C), factory.GetColor(0x393F4D));
            table.QuickAccessToolbar.Inactive.OutterBorderColor = Color.Transparent;
            table.QuickAccessToolbar.Inactive.MiddleBorderColor = factory.GetColor(0x222222);
            table.QuickAccessToolbar.Inactive.InnerBorderColor = Color.Empty;

            table.QuickAccessToolbar.Standalone.TopBackground = new LinearGradientColorTable();
            table.QuickAccessToolbar.Standalone.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFEFEFF), factory.GetColor(0xE5EAF5));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0x474E56);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty;
            table.QuickAccessToolbar.Standalone.InnerBorderColor = factory.GetColor(0xCBCCCE);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xD4DBED);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x000000);

            table.QuickAccessToolbar.Active.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            table.QuickAccessToolbar.Inactive.GlassBorder = new LinearGradientColorTable(factory.GetColor(Color.FromArgb(132, Color.Black)), Color.FromArgb(80, Color.Black));
            #endregion

            #region Tab Colors
            table.TabControl.Default = new Office2007TabItemStateColorTable();
            table.TabControl.Default.TopBackground = new LinearGradientColorTable(factory.GetColor(0xF2F5FA), factory.GetColor(0xE5EAF5));
            table.TabControl.Default.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xCFD7EB), factory.GetColor(0xECEEFC));
            table.TabControl.Default.InnerBorder = factory.GetColor(0xFCFDFD);
            table.TabControl.Default.OuterBorder = factory.GetColor(0x9196A2);
            table.TabControl.Default.Text = factory.GetColor(0x000000);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xEDF3FC), factory.GetColor(0xC6DCF7));
            table.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x99C6EE), factory.GetColor(0xD9E9F9));
            table.TabControl.MouseOver.InnerBorder = factory.GetColor(0xFEFEFF);
            table.TabControl.MouseOver.OuterBorder = factory.GetColor(0x9196A2);
            table.TabControl.MouseOver.Text = factory.GetColor(0x000000);

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            //t.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFD29B), factory.GetColor(0xFFBB6E));
            //t.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFAF44), factory.GetColor(0xFEDC75));
            //t.TabControl.Selected.InnerBorder = factory.GetColor(0xCDB69C);
            //t.TabControl.Selected.OuterBorder = factory.GetColor(0x95774A);
            table.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFBFDFE), factory.GetColor(0xE7F5FB));
            table.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xCFE7FA), factory.GetColor(0xB9D1FA));
            table.TabControl.Selected.InnerBorder = factory.GetColor(0xFCFEFF);
            table.TabControl.Selected.OuterBorder = factory.GetColor(0x9196A2);
            table.TabControl.Selected.Text = factory.GetColor(0x000000);

            table.TabControl.TabBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xE3E8F4));
            table.TabControl.TabPanelBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            table.TabControl.TabPanelBorder = factory.GetColor(editBorderColor);
            #endregion

            #region CheckBoxItem
            Office2007CheckBoxColorTable chk = table.CheckBoxItem;
            chk.Default.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0x616161);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xA2ACB9)), Color.FromArgb(164, factory.GetColor(0xF6F6F6)));
            chk.Default.CheckInnerBorder = factory.GetColor(0xA2ACB9);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.Default.Text = factory.GetColor(0x000000);

            chk.MouseOver.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xF4F4F4), Color.Empty);
            chk.MouseOver.CheckBorder = factory.GetColor(0x616161);
            chk.MouseOver.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xAEE4FF), factory.GetColor(0xD0ECFC), 90);
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xB3E4F9);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x000000);

            chk.Pressed.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xE5ECF7), Color.Empty);
            chk.Pressed.CheckBorder = factory.GetColor(0x616161);
            chk.Pressed.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0x68B3DB)), Color.FromArgb(164, factory.GetColor(0xE5F4FC)));
            chk.Pressed.CheckInnerBorder = factory.GetColor(0x2C628B);
            chk.Pressed.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4F687D), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x000000);

            chk.Disabled.CheckBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Empty);
            chk.Disabled.CheckBorder = factory.GetColor(0xAEB1B5);
            chk.Disabled.CheckInnerBackground = new LinearGradientColorTable(Color.FromArgb(192, factory.GetColor(0xE0E2E5)), Color.FromArgb(164, factory.GetColor(0xFBFBFB)));
            chk.Disabled.CheckInnerBorder = factory.GetColor(0xE0E2E5);
            chk.Disabled.CheckSign = new LinearGradientColorTable(factory.GetColor(0x8D8D8D), Color.Empty);
            chk.Disabled.Text = factory.GetColor(0x8D8D8D);
            #endregion

            #region Scroll Bar
            InitializeScrollBarColorTable(table, factory);
            InitializeAppBlackScrollBarColorTable(table, factory);
            #endregion

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0x679720, 0xC2FF56, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(164, factory.GetColor(0xEEFFD7)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0x8DB254)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0x69922B)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);

            // Paused
            pct = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0xAEA700, 0xFFFDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFFFBA3)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD2CA00)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFEF400)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);

            // Error
            pct = table.ProgressBarItemError;
            pct.BackgroundColors = new GradientColorTable(0x87898B, 0x979897);
            pct.OuterBorder = factory.GetColor(0xCCCCCC);
            pct.InnerBorder = factory.GetColor(0x252525);
            pct.Chunk = new GradientColorTable(0xD20000, 0xFFCDCD, 0);
            pct.ChunkOverlay = new GradientColorTable();
            pct.ChunkOverlay.LinearGradientAngle = 90;
            pct.ChunkOverlay.Colors.AddRange(new BackgroundColorBlend[] {
                new BackgroundColorBlend(Color.FromArgb(192, factory.GetColor(0xFF8F8F)), 0f),
                new BackgroundColorBlend(Color.FromArgb(128, factory.GetColor(0xD20000)), .5f),
                new BackgroundColorBlend(Color.FromArgb(64, factory.GetColor(0xFE0000)), .5f),
                new BackgroundColorBlend(Color.Transparent, 1f),
            });
            pct.ChunkShadow = new GradientColorTable(0x858585, 0x909190, 0);
            #endregion

            #region Gallery
            Office2007GalleryColorTable gallery = table.Gallery;
            gallery.GroupLabelBackground = factory.GetColor(0xD4DBED);
            gallery.GroupLabelText = factory.GetColor(0x000000);
            gallery.GroupLabelBorder = factory.GetColor(0xC5C5C5);
            #endregion

            #region ListViewEx
            table.ListViewEx.Border = factory.GetColor(editBorderColor);
            table.ListViewEx.ColumnBackground = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xF1F2F4));
            table.ListViewEx.ColumnSeparator = factory.GetColor(0xD5D5D5);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xF1F8FD), factory.GetColor(0xD5EFFC));
            table.ListViewEx.SelectionBorder = factory.GetColor(0x99DEFD);
            #endregion

            #region Navigation Pane
            table.NavigationPane.ButtonBackground = new GradientColorTable();
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF9F9F9), 0));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDADADC), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xCACACC), .4f));
            table.NavigationPane.ButtonBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF4F4F6), 1));
            #endregion

            #region SuperTooltip
            table.SuperTooltip.BackgroundColors = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xEDF6FF));
            table.SuperTooltip.TextColor = factory.GetColor(0x000000);
            #endregion

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(0xFFFFFF);
            sl.Default.SliderLabelColor = factory.GetColor(0x000000);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEFEFEF), .15f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBEC2C3), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x6C7178), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDCDCDE), .85f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x393F46);
            sl.Default.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x5B636C);
            sl.Default.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xEAEAEA));
            sl.Default.TrackLineColor = factory.GetColor(0x252525);
            sl.Default.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.MouseOver.LabelColor = factory.GetColor(0xFFFFFF);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x000000);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFFFFF), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF1F8FD), .1f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x99DEFD), .9f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE7F5FD), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0x2D2D2D);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x676249);
            sl.MouseOver.PartForeLightColor = Color.FromArgb(168, factory.GetColor(0xFFF4D4));
            sl.MouseOver.TrackLineColor = factory.GetColor(0x252525);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            sl.Pressed.LabelColor = factory.GetColor(0xFFFFFF);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x000000);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE5F4FC), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC4E5F6), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x98D1EF), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x68B1D8), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0x2D2D2D);
            sl.Pressed.PartBorderLightColor = Color.FromArgb(28, factory.GetColor(0xFFFFFF));
            sl.Pressed.PartForeColor = factory.GetColor(0x675343);
            sl.Pressed.PartForeLightColor = Color.FromArgb(32, factory.GetColor(0xFFDCBB));
            sl.Pressed.TrackLineColor = factory.GetColor(0x252525);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xCCCCCC);

            ColorBlendFactory df = new ColorBlendFactory(ColorScheme.GetColor(0xCFCFCF));
            sl.Disabled.LabelColor = factory.GetColor(0x8D8D8D);
            sl.Default.SliderLabelColor = factory.GetColor(0x8d8d8d);
            sl.Disabled.PartBackground = new GradientColorTable();
            foreach (BackgroundColorBlend b in sl.Default.PartBackground.Colors)
                sl.Disabled.PartBackground.Colors.Add(new BackgroundColorBlend(df.GetColor(b.Color), b.Position));
            sl.Disabled.PartBorderColor = df.GetColor(sl.Default.PartBorderColor);
            sl.Disabled.PartBorderLightColor = df.GetColor(sl.Default.PartBorderLightColor);
            sl.Disabled.PartForeColor = df.GetColor(sl.Default.PartForeColor);
            sl.Disabled.PartForeLightColor = df.GetColor(sl.Default.PartForeLightColor);
            sl.Disabled.TrackLineColor = df.GetColor(sl.Default.TrackLineColor);
            sl.Disabled.TrackLineLightColor = df.GetColor(sl.Default.TrackLineLightColor);
            #endregion

            #region DataGridView
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), 90);
            table.DataGridView.ColumnHeaderSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF9D99F), factory.GetColor(0xF1C15F), 90);
            table.DataGridView.ColumnHeaderSelectedBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xFFD58D), factory.GetColor(0xF2923A), 90);
            table.DataGridView.ColumnHeaderSelectedMouseOverBorder = factory.GetColor(0xF29536);
            table.DataGridView.ColumnHeaderMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xE0E0E0), factory.GetColor(0xC3C3C3), 90);
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xE0E0E0), factory.GetColor(0xC3C3C3), 90);
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(0xFFFFFF);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xEDEDED));
            table.DataGridView.RowNormalBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.RowSelectedBackground = new LinearGradientColorTable(factory.GetColor(0xF6FBFD), factory.GetColor(0xD5EFFC));
            table.DataGridView.RowSelectedBorder = factory.GetColor(0x99DEFD);
            table.DataGridView.RowSelectedMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xE8F6FD), factory.GetColor(0xC4E8FA));
            table.DataGridView.RowSelectedMouseOverBorder = factory.GetColor(0xB6E6FB);
            table.DataGridView.RowMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xF5FAFD), factory.GetColor(0xE8F5FD));
            table.DataGridView.RowMouseOverBorder = factory.GetColor(0xD8F0FA);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xBCE4F9), factory.GetColor(0x8AD1F5));
            table.DataGridView.RowPressedBorder = factory.GetColor(0x4E91AE);

            table.DataGridView.GridColor = factory.GetColor(0xD0D7E5);

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xC9C9C9));
            table.DataGridView.SelectorBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.SelectorBorderDark = factory.GetColor(0xCCCCCC);
            table.DataGridView.SelectorBorderLight = factory.GetColor(0xEBEBEB);
            table.DataGridView.SelectorSign = new LinearGradientColorTable(factory.GetColor(0x7D7D7D), factory.GetColor(0x676767));

            table.DataGridView.SelectorMouseOverBackground = new LinearGradientColorTable(factory.GetColor(0xADADAD), factory.GetColor(0x9F9F9F));
            table.DataGridView.SelectorMouseOverBorder = factory.GetColor(0xB6B6B6);
            table.DataGridView.SelectorMouseOverBorderDark = factory.GetColor(0xCCCCCC);
            table.DataGridView.SelectorMouseOverBorderLight = factory.GetColor(0xEBEBEB);
            table.DataGridView.SelectorMouseOverSign = new LinearGradientColorTable(factory.GetColor(0x7D7D7D), factory.GetColor(0x676767));
            #endregion

            #region AdvTree
#if !NOTREE
            table.AdvTree = new DevComponents.AdvTree.Display.TreeColorTable();
            DevComponents.AdvTree.Display.ColorTableInitializer.InitOffice2007VistaGlass(table.AdvTree, factory);
#endif
            #endregion

            #region CrumbBar
            table.CrumbBarItemView = CrumbBar.GetCrumbBarVistaColorTable(factory);
            #endregion

            #region ElementStyle Classes
            table.StyleClasses.Clear();
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonGalleryContainerKey;
            style.BorderColor = factory.GetColor(0x5C6672);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xEAF4FE);
            table.StyleClasses.Add(style.Class, style);
            // FileMenuContainer
            style = Office2007ColorTableFactory.GetFileMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Two Column File Menu Container
            style = Office2007ColorTableFactory.GetTwoColumnMenuContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column one File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnOneContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Column two File Menu Container
            style = Office2007ColorTableFactory.GetMenuColumnTwoContainerStyle(table);
            table.StyleClasses.Add(style.Class, style);
            // Bottom File Menu Container
            style = Office2007ColorTableFactory.GetMenuBottomContainer(table);
            table.StyleClasses.Add(style.Class, style);
            // TextBox border
            style = Office2007ColorTableFactory.GetTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // RichTextBox border
            style = Office2007ColorTableFactory.GetRichTextBoxStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // ItemPanel
            style = Office2007ColorTableFactory.GetItemPanelStyle(factory.GetColor(editBorderColor));
            table.StyleClasses.Add(style.Class, style);
            // DateTimeInput background
            style = Office2007ColorTableFactory.GetDateTimeInputBackgroundStyle(factory.GetColor(editBorderColor), SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            // Ribbon Client Panel
            style = Office2007ColorTableFactory.GetRibbonClientPanelStyle(factory, eOffice2007ColorScheme.Black);
            table.StyleClasses.Add(style.Class, style);
            // ListView Border
            style = Office2007ColorTableFactory.GetListViewBorderStyle(table.ListViewEx);
            table.StyleClasses.Add(style.Class, style);
            style = GetStatusBarAltStyle(table.Bar);
            table.StyleClasses.Add(style.Class, style);

#if !NOTREE
            // Tree Border/Background
            style = Office2007ColorTableFactory.GetAdvTreeStyle(factory.GetColor(editBorderColor), Color.Empty);
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnsHeaderStyle(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), factory.GetColor(0xB6B6B6));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(0xF8F8F8), factory.GetColor(0xDEDEDE), factory.GetColor(0xB6B6B6));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(0x000000));
            table.StyleClasses.Add(style.Class, style);
#endif
            // CrumbBar
            style = Office2007ColorTableFactory.GetCrumbBarBackgroundStyle(factory.GetColor(Color.White), factory.GetColor("FF333333"), factory.GetColor("FF252525"));
            table.StyleClasses.Add(style.Class, style);
            // DataGridView border
            style = Office2007ColorTableFactory.GetDataGridViewStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewDateTime border
            style = Office2007ColorTableFactory.GetDataGridViewDateTimeStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewNumeric border
            style = Office2007ColorTableFactory.GetDataGridViewNumericStyle();
            table.StyleClasses.Add(style.Class, style);
            // DataGridViewIpAddress border
            style = Office2007ColorTableFactory.GetDataGridViewIpAddressStyle();
            table.StyleClasses.Add(style.Class, style);

            // Slide-out Button
            style = Office2007ColorTableFactory.GetSlideOutButtonStyle(table.CheckBoxItem.Default.CheckBorder);
            table.StyleClasses.Add(style.Class, style);
            // MetroTilePanel
            style = Office2007ColorTableFactory.GetMetroTilePanelStyle(factory.GetColor(Color.White));
            table.StyleClasses.Add(style.Class, style);
            // MetroTileGroup
            style = Office2007ColorTableFactory.GetMetroTileGroupStyle(factory.GetColor(Color.DarkGray));
            table.StyleClasses.Add(style.Class, style);
            // MonthCalendarAdv
            style = Office2007ColorTableFactory.GetMonthCalendarStyle(SystemColors.Window);
            table.StyleClasses.Add(style.Class, style);
            #endregion

            #region SideBar
            table.SideBar.Background = new LinearGradientColorTable(factory.GetColor(Color.White));
            table.SideBar.Border = factory.GetColor(editBorderColor);
            table.SideBar.SideBarPanelItemText = factory.GetColor(Color.Black);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF8F8F9), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDFE2E4), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC7CBD1), .4f));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xDBDEE2), 1));
            // Expanded
            table.SideBar.SideBarPanelItemExpanded = new GradientColorTable();
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE3F7FF), 0));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE3F7FF), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBDEDFF), .4f));
            table.SideBar.SideBarPanelItemExpanded.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xB7E7FB), 1));
            // MouseOver
            table.SideBar.SideBarPanelItemMouseOver = new GradientColorTable();
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE5F3FA), 0));
            table.SideBar.SideBarPanelItemMouseOver.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD0ECFC), 1));
            // Pressed
            table.SideBar.SideBarPanelItemPressed = new GradientColorTable();
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE5F4FC), 0));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xC4E5F6), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x98D1EF), .4f));
            table.SideBar.SideBarPanelItemPressed.Colors.Add(new BackgroundColorBlend(factory.GetColor(0x68B3DB), 1));
            #endregion

            #region WarningBox
            table.WarningBox.BackColor = factory.GetColor(Color.FromArgb(64, 64, 64));
            table.WarningBox.WarningBorderColor = factory.GetColor(Color.FromArgb(86, 86, 86));
            table.WarningBox.WarningBackColor1 = factory.GetColor(Color.FromArgb(255, 255, 255));
            table.WarningBox.WarningBackColor2 = factory.GetColor(Color.FromArgb(234, 234, 234));
            #endregion

            #region CalendarView

            #region WeekDayViewColors

            table.CalendarView.WeekDayViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x9199A4)),           // DayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground

                new ColorDef(new Color[] {factory.GetColor(0xDCDFE2), factory.GetColor(0xD3D6DA), factory.GetColor(0xB4BAC1), factory.GetColor(0xCBCED4)},
                new float[] {0f, .55f, .58f, 1f}, 90f),             // DayHeaderBackground

                new ColorDef(factory.GetColor(0xB0B6BE)),           // DayHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayAllDayEventBackground
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayOffWorkHoursBackground

                new ColorDef(factory.GetColor(0xC7CBD1)),           // DayHourBorder
                new ColorDef(factory.GetColor(0xE8EAEC)),           // DayHalfHourBorder

                new ColorDef(factory.GetColor(0x4C535C)),           // SelectionBackground

                new ColorDef(factory.GetColor(0x6197B1)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xBCD2DE), factory.GetColor(0x90B6C8)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0x90B6C8)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground

                new ColorDef(factory.GetColor(0xF5F5F5)),           // CondensedViewBackground

                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground
               
                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeIndicatorBorder
            };

            #endregion

            #region HourRulerColors

            table.CalendarView.TimeRulerColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0xF0F1F2)),           // TimeRulerBackground
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(0x333333)),           // TimeRulerTickBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // TimeRulerIndicator

                new ColorDef(factory.GetColor(0xEB8900)),           // TimeRulerIndicatorBorder
            };

            #endregion

            #region MonthViewColors

            table.CalendarView.MonthViewColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x6197B1)),           // DayOfWeekHeaderBorder

                new ColorDef(new Color[] {factory.GetColor(0xE5EEF2), factory.GetColor(0xD8E5EB), factory.GetColor(0xC3D7E1), factory.GetColor(0xD2E2E9)}, 
                new float[] {0, .55f, .58f, 1}),                    // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x446A96)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(0x6197B1)),           // SideBarBorder

                new ColorDef(new Color[] { factory.GetColor(0xE5EEF2), factory.GetColor(0xD8E5EB), factory.GetColor(0xC3D7E1), factory.GetColor(0xD2E2E9) },
                new float[] { 0, .55f, .58f, 1 }, 0),               // SideBarBackground
                
                new ColorDef(factory.GetColor(0x000000)),           // SideBarForeground
                new ColorDef(factory.GetColor(0x446A7C)),           // DayHeaderBorder

                new ColorDef(new Color[] { factory.GetColor(0xE5EEF2), factory.GetColor(0xD8E5EB), factory.GetColor(0xC3D7E1), factory.GetColor(0xD2E2E9) },
                new float[] { 0, .55f, .58f, 1 }),                  // DayHeaderBackground
                
                new ColorDef(factory.GetColor(0x000000)),           // DayHeaderForeground
                new ColorDef(factory.GetColor(0x6197B1)),           // DayContentBorder
                new ColorDef(factory.GetColor(0xE7EFF3)),           // DayContentSelectionBackground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayContentActiveDayBackground
                new ColorDef(factory.GetColor(0xA8C5D4)),           // DayContentInactiveDayBackground

                new ColorDef(factory.GetColor(0x6197B1)),           // OwnerTabBorder

                new ColorDef(new Color[] {factory.GetColor(0xBCD2DE), factory.GetColor(0x90B6C8)},    // OwnerTabBackground
                new float[] {0f, 1f}, 90f),

                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabForeground
                new ColorDef(factory.GetColor(0x90B6C8)),           // OwnerTabContentBackground
                new ColorDef(factory.GetColor(0x000000)),           // OwnerTabSelectedForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // OwnerTabSelectionBackground
 
                new ColorDef(factory.GetColor(0xEB8900)),           // NowDayViewBorder
                new ColorDef(factory.GetColor(0x000000)),           // NowDayHeaderForeground - 0x15428B

                new ColorDef(new Color[] {factory.GetColor(0xFFED79), factory.GetColor(0xFFD86B), factory.GetColor(0xFFBB00), factory.GetColor(0xFFEA77)},
                new float[] {0f, .55f ,58f, 1f}, 90f),              // NowDayHeaderBackground

                new ColorDef(factory.GetColor(0x000000)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground
           };

            #endregion

            #region AppointmentColors

            table.CalendarView.AppointmentColors = new ColorDef[]
            {
                new ColorDef(factory.GetColor(0x4B71A2)),           // DefaultBorder

                new ColorDef(new Color[] {factory.GetColor(0xFDFEFF), factory.GetColor(0xC1D3EA)},
                             new float[] {0f, 1f}, 90f),            // DefaultBackground

                new ColorDef(factory.GetColor(0x28518E)),           // BlueBorder

                new ColorDef(new Color[] {factory.GetColor(0xB1C5EC), factory.GetColor(0x759DDA)}, 
                             new float[] {0f, 1f}, 90f),            // BlueBackground

                new ColorDef(factory.GetColor(0x2C6524)),           // GreenBorder

                new ColorDef(new Color[] {factory.GetColor(0xC2E8BC), factory.GetColor(0x84D17B)},
                             new float[] {0f, 1f}, 90f),            // GreenBackground

                new ColorDef(factory.GetColor(0x8B3E0A)),           // OrangeBorder

                new ColorDef(new Color[] {factory.GetColor(0xF9C7A0), factory.GetColor(0xF49758)},
                             new float[] {0f, 1f}, 90f),            // OrangeBackground

                new ColorDef(factory.GetColor(0x3E2771)),           // PurpleBorder

                new ColorDef(new Color[] {factory.GetColor(0xC5B5E6), factory.GetColor(0x957BD2)},
                             new float[] {0f, 1f}, 90f),            // PurpleBackground

                new ColorDef(factory.GetColor(0x86171C)),           // RedBorder

                new ColorDef(new Color[] {factory.GetColor(0xF1AAAC), factory.GetColor(0xE5676E)},
                             new float[] {0f, 1f}, 90f),            // RedBackground

                new ColorDef(factory.GetColor(0x7C7814)),           // YellowBorder

                new ColorDef(new Color[] {factory.GetColor(0xFFFCAA), factory.GetColor(0xFFF958)},
                             new float[] {0f, 1f}, 90f),            // YellowBackground

                new ColorDef(factory.GetColor(-1)),                 // BusyTimeMarker
                new ColorDef(factory.GetColor(0xFFFFFF)),           // FreeTimeMarker
                new ColorDef(factory.GetColor(0x800080))            // OutOfOfficeTimeMarker
            };

            #endregion

            #endregion

            #region SuperTab

            #region SuperTab

            table.SuperTab.Background = new SuperTabLinearGradientColorTable(
                factory.GetColor(0xFFFFFF), factory.GetColor(0xE3E8F4));

            table.SuperTab.InnerBorder = factory.GetColor(0xFCFEFF);
            table.SuperTab.OuterBorder = factory.GetColor(0x9196A2);

            table.SuperTab.ControlBoxDefault.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(0xFFE7A2);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(0xFB8C3C);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(0xFFBD69);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x000000);

            table.SuperTab.InsertMarker = factory.GetColor(0xFF, 0x000080);

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xF2F5FA), factory.GetColor(0xE5EAF5), factory.GetColor(0xCFD7EB), factory.GetColor(0xECEEFC) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.Normal.InnerBorder = factory.GetColor(0xFCFDFD);
            table.SuperTabItem.Default.Normal.OuterBorder = factory.GetColor(0x9196A2);
            table.SuperTabItem.Default.Normal.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(0x406F9F);

            // Disabled
            table.SuperTabItem.Default.Disabled.Text = factory.GetColor(0x8D8D8D);
            table.SuperTabItem.Default.Disabled.Background.AdaptiveGradient = false;
            table.SuperTabItem.Default.Disabled.CloseMarker = factory.GetColor(0x8D8D8D);

            // Top Selected

            table.SuperTabItem.Default.Selected.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xFBFDFE), factory.GetColor(0xE7F5FB), factory.GetColor(0xCFE7FA), factory.GetColor(0xB9D1FA) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.Selected.InnerBorder = factory.GetColor(0xFCFEFF);
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(0x9196A2);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(0x406F9F);

            // Top SelectedMouseOver

            table.SuperTabItem.Default.SelectedMouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xEDF3FC), factory.GetColor(0xC6DCF7), factory.GetColor(0x99C6EE), factory.GetColor(0xD9E9F9) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = factory.GetColor(0xFEFEFF);
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(0x9196A2);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(0x406F9F);

            // Top MouseOver

            table.SuperTabItem.Default.MouseOver.Background = new SuperTabLinearGradientColorTable(
                new Color[] { factory.GetColor(0xEDF3FC), factory.GetColor(0xC6DCF7), factory.GetColor(0x99C6EE), factory.GetColor(0xD9E9F9) },
                new float[] { 0, .5f, .5f, 1 });

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(0xFEFEFF);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(0x9196A2);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(0x000000);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(0x406F9F);

            // Left, Bottom, Right

            table.SuperTabItem.Left = table.SuperTabItem.Default;
            table.SuperTabItem.Bottom = table.SuperTabItem.Default;
            table.SuperTabItem.Right = table.SuperTabItem.Default;

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xFFFFFF));
            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(0xFCFEFF);
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(editBorderColor);

            table.SuperTabPanel.Left = table.SuperTabPanel.Default;
            table.SuperTabPanel.Bottom = table.SuperTabPanel.Default;
            table.SuperTabPanel.Right = table.SuperTabPanel.Default;

            #endregion

            #endregion

            #region Backstage

            #region Backstage
            SuperTabStyleColorFactory.GetOffice2007BackstageVistaGlassColorTable(table.Backstage, factory);
            #endregion

            #region BackstageItem
            SuperTabStyleColorFactory.GetOffice2007BackstageVistaGlassItemColorTable(table.BackstageItem, factory);
            #endregion

            #region BackstagePanel
            SuperTabStyleColorFactory.GetOffice2007BackstageVistaGlassPanelColorTable(table.BackstagePanel, factory);
            #endregion

            #endregion

            #region SwitchButton
            SwitchButtonColorTable sbt = new SwitchButtonColorTable();
            sbt.BorderColor = factory.GetColor(editBorderColor);
            sbt.OffBackColor = factory.GetColor(0xD5E5F5);
            sbt.OffTextColor = factory.GetColor(0x000000);
            sbt.OnBackColor = factory.GetColor(0x92D050);
            sbt.OnTextColor = factory.GetColor(0x000000);
            sbt.SwitchBackColor = factory.GetColor(0xA2B9D3);
            sbt.SwitchBorderColor = factory.GetColor(0x5C6672);
            sbt.TextColor = factory.GetColor(0x000000);
            table.SwitchButton = new SwitchButtonColors();
            table.SwitchButton.Default = sbt;
            table.SwitchButton.Disabled.BorderColor = table.CheckBoxItem.Disabled.CheckBorder;
            table.SwitchButton.Disabled.SwitchBorderColor = table.SwitchButton.Disabled.BorderColor;
            table.SwitchButton.Disabled.OffTextColor = table.CheckBoxItem.Disabled.Text;
            table.SwitchButton.Disabled.OnTextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.TextColor = table.SwitchButton.Disabled.OffTextColor;
            table.SwitchButton.Disabled.SwitchBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OffBackColor = table.CheckBoxItem.Disabled.CheckInnerBackground.Start;
            table.SwitchButton.Disabled.OnBackColor = table.SwitchButton.Disabled.OffBackColor;
            #endregion

            #region StepIndicator
            table.StepIndicator.BackgroundColor = factory.GetColor(ColorFunctions.GetShade(table.Form.BackColor, 10));
            table.StepIndicator.IndicatorColor = factory.GetColor(0xA4CC28);
            #endregion

            #region RadialMenu
            table.RadialMenu = new RadialMenuColorTable();
            table.RadialMenu.CircularBackColor = factory.GetColor(0xD44F2E);
            table.RadialMenu.CircularBorderColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.CircularForeColor = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuBorder = factory.GetColor(0x5A6487);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(0x5A6487);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(0x5A6487);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(0x5A6487);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion
        }