public void UpdateNode(Node node)
        {
            var item = (OfferedCourse)node?.Tag;

            if (item == null)
            {
                throw new Exception("Node is Null");
            }

            node.Text = "Year " + item.YearLevel;

            var subStyle = new ElementStyle {
                TextColor = Color.Gray                               /*Font = new Font(Font.FontFamily, Font.Size, FontStyle.Italic) */
            };

            //if (!UseSmallIcons)
            //{
            //    //node.Image = Properties.Resources.Courses_30;
            //    node.Cells.Add(new Cell { Text = "Created by:" + item.CreatedBy, StyleNormal = subStyle });
            //    node.Cells.Add(new Cell { Text = item.Created.ToShortTimeString(), StyleNormal = subStyle });
            //}
            //else
            //{
            //    //node.Image = Properties.Resources.Courses_16;
            //}

            node.Tag        = item;
            node.CellLayout = eCellLayout.Vertical;
        }
        /// <summary>
        /// Extension method that merges a collection of element styles into a single element style.
        /// </summary>
        /// <param name="matchingStyles"></param>
        /// <returns></returns>
        internal static ElementStyle Join(this IEnumerable <ElementStyle> matchingStyles)
        {
            var style = new ElementStyle("joinedStyle");

            foreach (var matchingStyle in matchingStyles.Reverse())
            {
                if (matchingStyle.Background != null)
                {
                    style.Background = matchingStyle.Background;
                }
                if (matchingStyle.Color != null)
                {
                    style.Color = matchingStyle.Color;
                }
                if (matchingStyle.FontSize != null)
                {
                    style.FontSize = matchingStyle.FontSize;
                }
                if (matchingStyle.Height != null)
                {
                    style.Height = matchingStyle.Height;
                }
                if (matchingStyle.Shape != Shape.Box)
                {
                    style.Shape = matchingStyle.Shape;
                }
                if (matchingStyle.Width != null)
                {
                    style.Width = matchingStyle.Width;
                }
            }
            return(style);
        }
示例#3
0
        private void Initialize(string fileName, ITestOutputHelper output, params LogType[] loggers)
        {
            LogManager = new LogManager(output, fileName, loggers);

            Verify            = new Verify(LogManager);
            ConditionalVerify = new ConditionalVerify(LogManager);
            SoftVerify        = new SoftVerify(LogManager);

            Verify.VerifyFailed += VerifyOnVerifyFailed;

            Driver = new Driver(BrowserOptions.Driver, LogManager);
            if (BrowserOptions.Driver.ImplicitWaitEnabled)
            {
                EnableImplicitWait(BrowserOptions.Driver.SecondsToWait);
            }

            Find         = new Find(Driver, LogManager);
            SeleniumFind = new SeleniumFind(Driver, LogManager);
            Navigate     = new Navigate(Driver);
            Window       = new Window(Driver);
            ElementStyle = new ElementStyle(this);
            Wait         = new Wait(this);

            InitializeScreenShotDirectory(BrowserOptions.Driver.ScreenShotPath);
        }
示例#4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            SetupTileView();

            // TODO: This line of code loads data into the 'customersDataSet.Customers' table. You can move, or remove it, as needed.
            this.customersTableAdapter.Fill(this.customersDataSet.Customers);
            DriveInfo[] drives = DriveInfo.GetDrives();
            // Disables tree layout and display updates to optimize update
            advTree1.BeginUpdate();
            foreach (DriveInfo driveInfo in drives)
            {
                if (driveInfo.DriveType != DriveType.Fixed)
                {
                    continue;
                }
                Node node = new Node();
                node.Tag   = driveInfo;
                node.Text  = driveInfo.Name.Replace(@"\", "");
                node.Image = global::TreeControl.Properties.Resources.Harddrive;
                node.Cells.Add(new Cell("Local Disk"));
                node.Cells.Add(new Cell());
                advTree1.Nodes.Add(node);
                // We will load drive content on demand
                node.ExpandVisibility = eNodeExpandVisibility.Visible;
            }
            // Enable tree layout and display updates, performs any pending layout and display updates
            advTree1.EndUpdate();
            _RightAlignFileSizeStyle = new ElementStyle();
            _RightAlignFileSizeStyle.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Far;
        }
示例#5
0
        public void FileExplorerTree_Load(object sender, EventArgs e)
        {
            DriveInfo[] drives = DriveInfo.GetDrives();
            // Disables tree layout and display updates to optimize update
            //explorerTree.Columns[1].Width.Absolute /= 2;
            //explorerTree.Columns[2].Width.Absolute /= 2;
            //explorerTree.Columns[2].Width.Absolute += explorerTree.Columns[2].Width.Absolute / 3;
            //DInfo d = new DInfo();
            //dyski
            explorerTree.BeginUpdate();
            foreach (DriveInfo driveInfo in drives)
            {
                if (driveInfo.DriveType != DriveType.Fixed)
                {
                    continue;
                }

                Node node = new Node();
                node.Tag   = driveInfo;
                node.Text  = driveInfo.Name.Replace(@"\", "");
                node.Image = global::Hapex.HapGame.Editor.Properties.Resources.Harddrive;
                node.Cells.Add(new Cell("Dysk lokalny"));
                node.Cells.Add(new Cell());
                explorerTree.Nodes.Add(node);
                // We will load drive content on demand
                node.ExpandVisibility = eNodeExpandVisibility.Visible;
            }
            // Enable tree layout and display updates, performs any pending layout and display updates
            explorerTree.EndUpdate();

            _RightAlignFileSizeStyle = new ElementStyle();
            _RightAlignFileSizeStyle.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Far;
        }
示例#6
0
        public ToggleMatrix(string text, int x = 2, int y = 2)
        {
            var z = x;

            x          = y;
            y          = z;
            toggleGrid = new BoolInstance[y][];
            var index = 0;

            Toggles = new ToggleBase[x * y];
            for (int i = 0; i < y; i++)
            {
                toggleGrid[i] = new BoolInstance[x];
                var grid = new HorizontalLayout();
                for (int j = 0; j < x; j++)
                {
                    var instance = new BoolInstance();
                    toggleGrid[i][j] = instance;
                    var toggle = new Toggle("", () => instance.Value, a => instance.Value = a)
                                 .SetLabelHidden();
                    Toggles[index] = toggle;
                    if (index++ == 0)
                    {
                        _toggleStyle = toggle.Style;
                    }
                    toggle.SetStyle(_toggleStyle);
                    grid.Attach(toggle);
                }
                Attach(grid);
            }
        }
示例#7
0
        public void Test_SetIcon_WithAUrl()
        {
            ElementStyle style = new ElementStyle();

            style.Icon = "https://structurizr.com/static/img/structurizr-logo.png";
            Assert.Equal("https://structurizr.com/static/img/structurizr-logo.png", style.Icon);
        }
示例#8
0
		/// <summary>
		/// Returns ElementStyleDisplayInfo class that provides information for ElementStyle rendering.
		/// </summary>
		/// <param name="style">Reference to style.</param>
		/// <param name="g">Reference to graphics object.</param>
		/// <param name="bounds">Style bounds</param>
		/// <returns>New instance of ElementStyleDisplayInfo</returns>
		protected ElementStyleDisplayInfo GetElementStyleDisplayInfo(ElementStyle style, Graphics g, Rectangle bounds)
		{
			m_ElementStyleDisplayInfo.Style=style;
			m_ElementStyleDisplayInfo.Graphics=g;
			m_ElementStyleDisplayInfo.Bounds=bounds;
			return m_ElementStyleDisplayInfo;
		}
示例#9
0
		public NodeRendererEventArgs(Graphics g, Node node, Rectangle bounds, ElementStyle style)
		{
			this.Graphics = g;
			this.Node = node;
			this.NodeBounds = bounds;
			this.Style = style;
		}
 public void ResetBackgroundStyle()
 {
     _BackgroundStyle.StyleChanged -= new EventHandler(this.VisualPropertyChanged);
     _BackgroundStyle = new ElementStyle();
     _BackgroundStyle.StyleChanged += new EventHandler(this.VisualPropertyChanged);
     this.Invalidate();
 }
示例#11
0
        public void Test_SetIcon_DoesNothing_WhenAnEmptyUrlIsSpecified()
        {
            ElementStyle style = new ElementStyle();

            style.Icon = " ";
            Assert.Null(style.Icon);
        }
示例#12
0
        private void InitChannelList()
        {
            ElementStyle elementStyle = new ElementStyle();

            elementStyle.TextColor = Color.SlateGray;
            elementStyle.Font      = new Font(this.channel_list.Font.FontFamily, 9f, FontStyle.Bold);
            elementStyle.Name      = "groupstyle";
            this.favorite_list.Styles.Add(elementStyle);
            this.channel_list.Styles.Add(elementStyle);
            ElementStyle gray = new ElementStyle();

            gray.TextColor = Color.SlateGray;
            gray.Name      = "subitemstyle";
            this.favorite_list.Styles.Add(gray);
            this.channel_list.Styles.Add(gray);
            gray           = new ElementStyle();
            gray.TextColor = Color.Maroon;
            gray.Name      = "subitemphone";
            this.channel_list.Styles.Add(gray);
            this.favorite_list.Styles.Add(gray);

            this.channel_list.GroupNodeCreated += AdvTree7GroupNodeCreated;
            this.channel_list.DataNodeCreated  += AdvTree7DataNodeCreated;
            //this.channel_list.TileSize = new Size(250, 60);
            this.channel_list.TileSize        = new Size(250, 40);
            this.channel_list.GroupingMembers = "Group";
            this.channel_list.DisplayMembers  = "Name,EPGnow,EPGnext,Url";

            this.favorite_list.GroupNodeCreated += AdvTreeGroupNodeCreated;
            this.favorite_list.DataNodeCreated  += AdvTreeDataNodeCreated;
            //this.favorite_list.TileSize = new Size(250, 60);
            this.favorite_list.TileSize        = new Size(250, 40);
            this.favorite_list.GroupingMembers = "Group";
            this.favorite_list.DisplayMembers  = "Name,EPGnow,EPGnext,Url";
        }
示例#13
0
        public void WrapChild()
        {
            var el = CreateRootElement();

            var style = new ElementStyle
            {
                Position    = StylePosition.Static,
                Display     = StyleDisplay.InlineBlock,
                BorderWidth = 5,
                Width       = 200,
            };

            var child = new Element();

            el.AddChild(child);
            child.SetStyle(style);
            child.Style.Height = 30;

            child = new Element();
            el.AddChild(child);
            child.SetStyle(style);
            child.Style.Height = 30;

            child = new Element();
            el.AddChild(child);
            child.SetStyle(style);
            child.Style.Height = 30;

            Layout(el);

            Assert.Equal(new Box(15, 55, 215, 85), child.ClientRect);
        }
示例#14
0
文件: Style.cs 项目: dzeitlin/WootzJs
        internal override void Attach(ElementStyle node)
        {
            base.Attach(node);
//            if (margin != null)
//                margin.Attach(node);
            if (padding != null)
            {
                padding.Attach(node);
            }
            if (border != null)
            {
                border.Attach(node);
            }
            if (boxShadow != null)
            {
                boxShadow.Attach(node);
            }
            if (font != null)
            {
                font.Attach(node);
            }
            if (borderRadius != null)
            {
                borderRadius.Attach(node);
            }
        }
示例#15
0
        internal void Attach(ElementStyle node, CssBorder border, string side)
        {
            this.border = border;
            this.side   = side;

            base.Attach(node);
        }
        private static IEnumerable <Setter> StyleElements2Dgml(ElementStyle style)
        {
            if (style.Color != null)
            {
                yield return(new Setter {
                    Property = "Foreground", Value = style.Color
                });
            }
            if (style.Background != null)
            {
                yield return(new Setter {
                    Property = "Background", Value = style.Background
                });
            }
            if (style.Shape != Shape.Box)
            {
                yield return(new Setter {
                    Property = "Shape", Value = "None"
                });

                yield return(new Setter {
                    Property = "Icon", Value = $"{ShapesUri}/{style.Shape.ToString()}.png"
                });
            }
        }
示例#17
0
        public void Test_SetIcon_WithADataUri()
        {
            ElementStyle style = new ElementStyle();

            style.Icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvAAAAD3CAIAAAD0Xve8AAArWUlEQVR42u2d7XnkKp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sAk+lSqAdNY7T3Mg/XlFyjHwT6rq/R3+ZD6ABaOIY0XHXV4PT6Qih6kAzSMq32dyr75bneOeXpI5Gy0LNMuUFaMYBmo7VIvw8LkCD0GRA469hd6k11zJV0NFp+tpso8mOT/6uxu7ueJYpL0DTsYs2zemyIzijmXula3z53uam1uYBIiUr40c42zzt4Xym/GmJ7gBNctQ5X490iQGNn23A9wjQADRzjU2ABqBBAA1AY5Y9yj5+NeZ7BGgAGoAGoAFoEEBzCaCx2kMA0AA0AA1AA9AggAagAWgAGoCmQxdtakb0LRAF0AA0CKABaPJltWEZoAFoZuyicU45+ccjIs38+fn50Mk/bPih1qYwpjyP8g83T97maX2PVPi0/gVbRHeABqBhU3AfsSkYoEkFmi4XOTn51ao4tt1XtnVH0UWBZpCic4bapLU5tg3QADSDdJFvJL3u66BSMECDpgeaK5STumZhve4FEimsB9BkgHivgpCbqQVAA9Cg+YDG91Z9r9quIXGRs1x9UOJDufoAoJmxizZXr3SprefP6wAagAZNCTSbqUnfYp015G/343LKBuJySoAmw267zDdkFgfQADToDECzmUkPtSJjpaenpwGhbYOShZt7/F2NvbYjBCESoAFolHbbPknswzdAg9CUQOOvyJz+OqcRVp38LHehH/e3I3RcPfSn3QANQKPkCfnflsPTd4AADUKzAo0fWc+36uTPArsf3vYZqzyhsjnP1THZtkmJATQATUT+4kKz4SnkFEzPADQITQk0j9AO//Md3t6EWPnfjm30IdJky4s/1+zilOea8gI03btIRqJPwG3yxMFUIkCD0MRA40eg7mdkzNVxFniYSjHcp7wJDO23Bk835QVoRugif3iK6daecviJW4AGoemBJjhD6rildP1g4lZM5modZ4GHbtRwbcgPDI130kTucAFoAJqIfA6uuvYtYz+4MArQDCKZ4738K/oEoMmPQ90NSDzO4uNMMkZdZoEarjI8Ru5/vvxvMzYNHm4CaAAajYK3ElZimkOaAWi6i2PbKB9ogoG246KM73HKySO4GtJ4B7S/XckcHHtxW2SxCaABaDQK7mgxH6FBmpmlbBJAgwAalYLVpbrUoPv6+q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f4VJief1Fs1hJbRN0JcA/diT/NBeuoWwz+NhXe9jKsFXnOvo+pJV32shdSzKgy1ruZIg/eWOsjHSpMxKGfHerXiJLl8e78YYQQgghNLsAGoQQQggBNAghhBBCAA1CCCGEEECDEEIIIYAGIYQQQgigQQghhBACaBBCCCGEABqEEEIIATQIIYQQQgANQgghhBBAgxBCCCEE0CCEEEIIoEEIIYQQAmgQQgghhAAahBBCCCGABiGEEEIADUIIIYQQQIMQQggh1Ev/AyCjI4gva2hHAAAAAElFTkSuQmCC", style.Icon);
        }
示例#18
0
        public void Test_SetIcon_WithAUrlThattHasATrailingSpaceCharacter()
        {
            ElementStyle style = new ElementStyle();

            style.Icon = "https://structurizr.com/static/img/structurizr-logo.png ";
            Assert.Equal("https://structurizr.com/static/img/structurizr-logo.png", style.Icon);
        }
示例#19
0
        private void SetAdvTreeNodeColor(Color color, Node node)
        {
            ElementStyle style = new ElementStyle();

            style.BackColor = color;
            node.Style      = style;
        }
示例#20
0
        private Node CreateChildNode(string nodeText, string subText, Image image, ElementStyle subItemStyle)
        {
            Node childNode = new Node(nodeText);

            childNode.Image = image;
            childNode.Cells.Add(new Cell(subText, subItemStyle));
            return(childNode);
        }
示例#21
0
        public void Test_SetIcon_ThrowsAnIllegalArgumentException_WhenAnInvalidUrlIsSpecified()
        {
            ElementStyle style = new ElementStyle();

            Assert.Throws <ArgumentException>(() =>
                                              style.Icon = "blah"
                                              );
        }
        public void Serialization_Returns_Expected(
            ElementStyle value,
            string expected)
        {
            var json = JsonSerializer.Serialize(value);

            Assert.Equal(expected, json);
        }
示例#23
0
        private void insert_ch()
        {
            /*List<Channel> ch = new List<Channel>();
             * foreach (Group gitem in api.acc.channel_group)
             * {
             *  for (int i = 0; i < gitem.Channels.Count; i++)
             *  {
             *      string epgnext = "";//hide from here
             *      try
             *      {
             *          List<EpgNext> epgn = api.epg_next(gitem.Channels[i].id);
             *          epgnext = epgn[1].progname;
             *          Thread.Sleep(350);
             *      }
             *      catch (Exception)
             *      {   }//to here
             *      Channel c = new Channel(gitem.name, gitem.Channels[i].name, gitem.Channels[i].epg_progname, epgnext, gitem.Channels[i].id);
             *      ch.Add(c);
             *  }
             * }
             * try
             * {
             *  if (channel_list.InvokeRequired == true)
             *  {
             *      channel_list.Invoke((MethodInvoker)delegate { channel_list.Nodes.Clear(); channel_list.DataSource = ch; });
             *  }
             * }
             * catch (Exception e) { }*/
            channel_list.Nodes.Clear();
            ElementStyle elementStyle = new ElementStyle();

            elementStyle.TextColor = Color.Navy;
            elementStyle.Font      = new Font(this.channel_list.Font.FontFamily, 8.0f);
            elementStyle.Name      = "groupstyle";
            this.channel_list.Styles.Add(elementStyle);
            ElementStyle gray = new ElementStyle();

            gray.TextColor = Color.Gray;
            gray.Name      = "subitemstyle";
            this.channel_list.Styles.Add(gray);

            foreach (Group gitem in api.acc.channel_group)
            {
                Node node = new Node(gitem.name, elementStyle);
                node.Expanded = true;
                this.channel_list.Nodes.Add(node);
                for (int i = 0; i < gitem.Channels.Count; i++)
                {
                    System.Net.WebClient webClient = new System.Net.WebClient();
                    System.IO.Stream     stream    = webClient.OpenRead("http://sovok.tv" + gitem.Channels[i].icon);
                    //bitmap = new Bitmap(stream);
                    Image im = System.Drawing.Image.FromStream(stream);
                    im = ResizeImage(im, 35);

                    node.Nodes.Add(this.CreateChildNode(gitem.Channels[i].name, gitem.Channels[i].epg_progname, im, gitem.Channels[i].id, gray));
                }
            }
        }
示例#24
0
 public Path(
     string id,
     DataPoint startPoint,
     DataPoint endPoint,
     ElementStyle style = null,
     string[] classes   = null) : this(id, "path", startPoint, style, classes : classes)
 {
     _pathString += $"L {startPoint} {endPoint}";
 }
示例#25
0
        internal virtual void Attach(ElementStyle node)
        {
            this.node = node;

            foreach (var action in actions)
            {
                action.Act(this);
            }
        }
示例#26
0
        public MainFrm()
        {
            InitializeComponent();

            #region add properitygrid
            // Customize AntiAlias property appearance
            _AntiAliasPropertySetting             = new PropertySettings("AntiAlias"); // Specifies that this setting is attached to AntiAlias property
            _AntiAliasPropertySetting.Description = "This is custom description, help text, for the AntiAlias property";
            _AntiAliasPropertySetting.DisplayName = "AntiAliasCustomName";             // Change property name that is displayed in property grid
            // Create new visual style for property
            ElementStyle style = new ElementStyle();
            style.BackColor                 = Color.WhiteSmoke;
            style.BackColor2                = Color.LightGoldenrodYellow;
            style.BackColorGradientAngle    = 90;
            style.TextColor                 = Color.Brown;
            _AntiAliasPropertySetting.Style = style;

            // Adds property setting to the grid
            advPropertyGrid1.PropertySettings.Add(_AntiAliasPropertySetting);

            // Set object to display properties for
            //advPropertyGrid1.SelectedObject = buttonItem29;


            // Create new button item
            //ButtonItem button = new ButtonItem("helpPanel", "帮助");
            //button.ButtonStyle = eButtonStyle.TextOnlyAlways;
            //button.OptionGroup = "helpPanel"; // This will automatically manage the Check property so only one button in group is checked
            //button.OptionGroupChanging += new OptionGroupChangingEventHandler(ButtonOptionGroupChanging);
            //// This is how to access the Property Grid toolbar and add new button to it
            //advPropertyGrid1.Toolbar.Items.Add(button);
            advPropertyGrid1.HelpType = ePropertyGridHelpType.Panel;

            // Create save button item
            ButtonItem btnSave = new ButtonItem("btnSave", "保  存");
            btnSave.ButtonStyle = eButtonStyle.TextOnlyAlways;
            //btnSave.Image = ((System.Drawing.Image)(resources.GetObject("SaveButton.png")));
            btnSave.OptionGroup          = "helpPanel"; // This will automatically manage the Check property so only one button in group is checked
            btnSave.OptionGroupChanging += new OptionGroupChangingEventHandler(ButtonOptionGroupChanging);
            btnSave.Click += new EventHandler(btnSave_Click);
            // This is how to access the Property Grid toolbar and add new button to it
            advPropertyGrid1.Toolbar.Items.Add(btnSave);


            // Create second button
            //button = new ButtonItem("helpTooltip", "SuperTooltip Help");
            //button.ButtonStyle = eButtonStyle.TextOnlyAlways;
            //button.OptionGroup = "helpPanel";
            //button.Checked = true; // This is default value
            //button.OptionGroupChanging += new OptionGroupChangingEventHandler(ButtonOptionGroupChanging);
            //advPropertyGrid1.Toolbar.Items.Add(button);

            // Apply layout changes so items become visible
            advPropertyGrid1.Toolbar.RecalcLayout();
            #endregion
        }
示例#27
0
        public override void RecalculateStyle(Style style)
        {
            base.RecalculateStyle(style);

            ElementStyle elementStyle = style.GetElementStyle(this, styleName);

            font = style.GetElementFont(elementStyle);

            TextColour = style.GetElementFontColour(elementStyle);
        }
示例#28
0
 public Rectangle(double height, double width, double posX = 0, double posY = 0, ElementStyle style = null, string[] classes = null)
 {
     RootName = "rect";
     Classes  = classes;
     Style    = style;
     Width    = width;
     Height   = height;
     PosX     = posX;
     PosY     = posY;
 }
        public void Deserialization_Returns_Expected(
            string value,
            ElementStyle expected)
        {
            var style =
                JsonSerializer.Deserialize <ElementStyle>(value);

            Assert.Equal(
                expected,
                style);
        }
 public static unsafe void GetElementDefaultDimensions(ElementStyle inStyle, int *outWidth, int *outHeight, int *outCanBeLit)
 {
     IL.DeclareLocals(false);
     Guard.NotNull(GetElementDefaultDimensionsPtr);
     IL.Push(inStyle);
     IL.Push(outWidth);
     IL.Push(outHeight);
     IL.Push(outCanBeLit);
     IL.Push(GetElementDefaultDimensionsPtr);
     IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(void), typeof(ElementStyle), typeof(int *), typeof(int *), typeof(int *)));
 }
示例#31
0
        public override void RecalculateStyle(Style style)
        {
            base.RecalculateStyle(style);

            //Get the styles for default and hovered
            ElementStyle hoverStyle   = style.GetElementStyle(this, (hoverStyleName == string.Empty) ? styleName : hoverStyleName);
            ElementStyle defaultStyle = style.GetElementStyle(this, styleName);

            //Create the textures
            defaultTexture = style.CreateElementTexture(defaultStyle, FullBounds);
            hoverTexture   = style.CreateElementTexture(hoverStyle, FullBounds);
        }
示例#32
0
        /// <summary>
        /// 엘리먼트 구하기
        /// </summary>
        /// <param name="name">명칭</param>
        /// <param name="style">스타일</param>
        /// <param name="text">텍스트</param>
        /// <param name="expanded">확장 여부</param>
        /// <returns>아코디언 컨트롤 엘리먼트</returns>
        private AccordionControlElement GetElement(string name, ElementStyle style, string text, bool expanded = true)
        {
            AccordionControlElement element = new AccordionControlElement
            {
                Name     = name,
                Style    = style,
                Text     = text,
                Expanded = true
            };

            return(element);
        }
示例#33
0
 public ListViewEx()
     : base()
 {
     m_BorderStyle = new ElementStyle();
     m_BorderStyle.Class = ElementStyleClassKeys.ListViewBorderKey;
     m_BorderStyle.StyleChanged += new EventHandler(BorderStyle_StyleChanged);
     m_NCPainter = new NonClientPaintHandler(this, eScrollBarSkin.Optimized);
     this.OwnerDraw = true;
     this.DoubleBuffered = true;
     this.BorderStyle = BorderStyle.None;
     StyleManager.Register(this);
 }
        /// <summary>
        /// Initializes a new instance of the ControlWithBackgroundStyle class.
        /// </summary>
        public ControlWithBackgroundStyle()
        {
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.Opaque, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.StandardDoubleClick, true);
            this.SetStyle(DisplayHelp.DoubleBufferFlag, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            _BackgroundStyle = new ElementStyle();
            _BackgroundStyle.StyleChanged += new EventHandler(this.VisualPropertyChanged);
        }
示例#35
0
 public void Test_Color_ThrowsAnException_WhenAnInvalidHexColorCodeIsSpecified()
 {
     try
     {
         ElementStyle style = new ElementStyle();
         style.Color = "white";
         throw new TestFailedException();
     }
     catch (ArgumentException ae)
     {
         Assert.Equal("'white' is not a valid hex color code.", ae.Message);
     }
 }
示例#36
0
        public TextBoxX()
        {
#if FRAMEWORK20
            _ButtonCustom = new InputButtonSettings(this);
            _ButtonCustom2 = new InputButtonSettings(this);
            CreateButtonGroup();
#endif

            m_BorderStyle = new ElementStyle();
            m_BorderStyle.StyleChanged += new EventHandler(BorderStyle_StyleChanged);
            m_NCPainter = new NonClientPaintHandler(this, eScrollBarSkin.Optimized);
            base.BorderStyle = BorderStyle.None;
            this.AutoSize = false;
            StyleManager.Register(this);
        }
示例#37
0
        protected override void PaintInnerContent(System.Windows.Forms.PaintEventArgs e, ElementStyle style, bool paintText)
        {
            base.PaintInnerContent(e, style, paintText);

            if (!m_IsShadowEnabled) return;
            Graphics g = e.Graphics;
            ShadowPaintInfo pi = new ShadowPaintInfo();
            pi.Graphics = g;
            pi.Size = 6;
            foreach (Control c in this.Controls)
            {
                if (!c.Visible || c.BackColor == Color.Transparent && !(c is GroupPanel)) continue;
                if (c is GroupPanel)
                {
                    GroupPanel p = c as GroupPanel;
                    pi.Rectangle = new Rectangle(c.Bounds.X, c.Bounds.Y + p.GetInternalClientRectangle().Y/2, c.Bounds.Width, c.Bounds.Height - p.GetInternalClientRectangle().Y/2);
                }
                else
                    pi.Rectangle = c.Bounds;
                ShadowPainter.Paint2(pi);
            }
        }
示例#38
0
		/// <summary>
		/// Calculates size of an style element.
		/// </summary>
		/// <param name="style">Style to calculate size for.</param>
		/// <param name="defaultFont">Default font that will be used by style if style does not uses it's own font.</param>
		/// <returns>Size of the style element. At this time only Height memeber will be calculated.</returns>
		public static void CalculateStyleSize(ElementStyle style, Font defaultFont)
		{
			int height=defaultFont.Height;
            ElementStyle s = ElementStyleDisplay.GetElementStyle(style);
			if(s.Font!=null)
				height=s.Font.Height;
			
			if(s.PaintTopBorder)
			{
				height+=s.BorderTopWidth;
			}

			if(s.PaintBottomBorder)
			{
				height+=s.BorderBottomWidth;
			}
			
			height+=(s.MarginTop+style.MarginBottom);
			height+=(s.PaddingTop+s.PaddingBottom);
			
			style.SetSize(new Size(0,height));
		}
示例#39
0
		/// <summary>
		/// Returns the total white space for a style. Whitespace is the space between the edge of the element and inner content of the element.
		/// </summary>
		/// <param name="es">Style to return white space for.</param>
		/// <returns></returns>
		public static int VerticalStyleWhiteSpace(ElementStyle es)
		{
			return TopWhiteSpace(es)+BottomWhiteSpace(es);
		}
        private void DrawShape(Graphics g, ElementStyle shape, int x, int y, int size)
        {
            SolidBrush shapeBrush = new SolidBrush(this.ForeColor);
            switch (shape)
            {
                case ElementStyle.Circle:
                    g.FillEllipse(shapeBrush, x, y, size, size);

                    break;
                case ElementStyle.Square:
                    g.FillRectangle(shapeBrush, x, y, size, size);
                    break;
            }
        }
示例#41
0
        private void InitControl()
        {
            _BackgroundStyle.SetColorScheme(this.ColorScheme);
            _BackgroundStyle.StyleChanged += new EventHandler(this.VisualPropertyChanged);

            _ButtonCustom = new InputButtonSettings(this);
            _ButtonCustom2 = new InputButtonSettings(this);
            _ButtonClear = new InputButtonSettings(this);
            _ButtonDropDown = new InputButtonSettings(this);
            CreateButtonGroup();

            //_TextBox = new TextBoxX();
            //_TextBox.BorderStyle = BorderStyle.None;
            //_TextBox.TextChanged += new EventHandler(TextBoxTextChanged);
            //_TextBox.TextAlignChanged += new EventHandler(TextBoxTextAlignChanged);
            //_TextBox.SizeChanged += new EventHandler(TextBoxSizeChanged);
            //_TextBox.Visible=false;
            ////_TextBox.ModifiedChanged += new EventHandler(TextBoxModifiedChanged);
            //this.Controls.Add(_TextBox);

            // Init popup tree
            _AdvTree = new DevComponents.AdvTree.AdvTree();
#if (!TRIAL)
            _AdvTree.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
#endif
            _AdvTree.BackgroundStyle.Reset();
            _AdvTree.BackgroundStyle.BackColor = SystemColors.Window;
            _AdvTree.BackgroundStyle.Border = eStyleBorderType.None;
            _AdvTree.ExpandButtonType = eExpandButtonType.Triangle;
            _AdvTree.DragDropEnabled = false;
            _AdvTree.HotTracking = true;
            _AdvTree.Indent = 6;
            _AdvTree.SelectionFocusAware = false;
            ElementStyle nodeStyle = new ElementStyle();
            nodeStyle.Name = "nodeElementStyle";
            nodeStyle.TextColor = System.Drawing.SystemColors.ControlText;
            _AdvTree.NodeStyle = nodeStyle;
            _AdvTree.PathSeparator = ";";
            _AdvTree.Styles.Add(nodeStyle);
            _AdvTree.AfterNodeSelect += new AdvTreeNodeEventHandler(TreeAfterNodeSelect);
            _AdvTree.BeforeNodeSelect += new AdvTreeNodeCancelEventHandler(TreeBeforeNodeSelect);
            _AdvTree.NodeMouseDown += new TreeNodeMouseEventHandler(TreeNodeMouseDown);

            this.DropDownControl = _AdvTree;
        }
示例#42
0
        private Rectangle GetSelectionRectangle(ElementStyle style, Rectangle clientRect)
        {
            return new Rectangle(ElementStyleLayout.LeftWhiteSpace(style, eSpacePart.Border) + 1,
                ElementStyleLayout.TopWhiteSpace(style, eSpacePart.Border) + 1,
                clientRect.Width-(ElementStyleLayout.RightWhiteSpace(style, eSpacePart.Border) + ElementStyleLayout.LeftWhiteSpace(style, eSpacePart.Border) + 2),
                clientRect.Height-(ElementStyleLayout.TopWhiteSpace(style, eSpacePart.Border) + ElementStyleLayout.BottomWhiteSpace(style, eSpacePart.Border) + 2));

        }
示例#43
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
        }
示例#44
0
        public static ElementStyle GetMenuBottomContainer(Office2007ColorTable table)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonFileMenuBottomContainerKey;
            Rendering.Office2007MenuColorTable mc = table.Menu;

            //BackgroundColorBlend[] blend = new BackgroundColorBlend[mc.FileBottomContainerBackgroundBlend.Count];
            //mc.FileBottomContainerBackgroundBlend.CopyTo(blend);
            //style.BackColorBlend.Clear();
            //style.BackColorBlend.AddRange(blend);
            //style.BackColorGradientAngle = 90;
            style.MarginTop = 2;
            style.MarginRight = 2;
            return style;
        }
示例#45
0
        public static ElementStyle GetMenuColumnOneContainerStyle(Office2007ColorTable table)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonFileMenuColumnOneContainerKey;
            Rendering.Office2007MenuColorTable mc = table.Menu;

            style.BackColor = mc.FileColumnOneBackground;
            style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
            style.BorderRightColor = mc.FileColumnOneBorder;
            style.BorderRightWidth = 1;
            style.PaddingRight = 1;

            return style;
        }
示例#46
0
        public static ElementStyle GetFileMenuContainerStyle(Office2007ColorTable table)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonFileMenuContainerKey;
            Rendering.Office2007MenuColorTable mc = table.Menu;

            style.PaddingBottom = 3;
            style.PaddingLeft = 0;
            style.PaddingRight = 0;
            style.PaddingTop = 22;
            style.Border = eStyleBorderType.Solid;
            style.CornerType = eCornerType.Rounded;
            style.BorderWidth = 1;
            style.BorderColor = Color.Transparent;
            style.CornerDiameter = 3;
            BackgroundColorBlend[] blend = new BackgroundColorBlend[mc.FileBackgroundBlend.Count];
            mc.FileBackgroundBlend.CopyTo(blend);
            style.BackColorBlend.Clear();
            style.BackColorBlend.AddRange(blend);
            style.BackColorGradientAngle = 90;
            return style;
        }
示例#47
0
		/// <summary>
		/// Returns the total white space for a style. Whitespace is the space between the edge of the element and inner content of the element.
		/// </summary>
		/// <param name="es">Style to return white space for</param>
		/// <returns></returns>
		public static int HorizontalStyleWhiteSpace(ElementStyle es)
		{
			return LeftWhiteSpace(es)+RightWhiteSpace(es);
		}
示例#48
0
        /// <summary>
        /// Gets inner rectangle taking in account style padding, margins and border.
        /// </summary>
        public static Rectangle GetInnerRect(ElementStyle style, Rectangle bounds)
        {
            bounds.X += LeftWhiteSpace(style);
            bounds.Width -= HorizontalStyleWhiteSpace(style);
            bounds.Y += TopWhiteSpace(style);
            bounds.Height -= VerticalStyleWhiteSpace(style);

            return bounds;
        }
示例#49
0
		/// <summary>
		/// Returns amount of spacing for specified style parts.
		/// </summary>
		/// <param name="es">Style to calculate spacing for.</param>
		/// <param name="part">Part of the style spacing is calculated for. Values can be combined.</param>
		/// <param name="side">Side of the style to use for calculation.</param>
		/// <returns></returns>
		public static int StyleSpacing(ElementStyle style, eSpacePart part, eStyleSide side)
		{
            bool disposeStyle = false;
            ElementStyle es = ElementStyleDisplay.GetElementStyle(style, out disposeStyle);
			int space=0;
			if((part & eSpacePart.Margin)==eSpacePart.Margin)
			{
				switch(side)
				{
					case eStyleSide.Bottom:
						space+=es.MarginBottom;
						break;
					case eStyleSide.Left:
						space+=es.MarginLeft;
						break;
					case eStyleSide.Right:
						space+=es.MarginRight;
						break;
					case eStyleSide.Top:
						space+=es.MarginTop;
						break;
				}
			}

			if((part & eSpacePart.Padding)==eSpacePart.Padding)
			{
				switch(side)
				{
					case eStyleSide.Bottom:
						space+=es.PaddingBottom;
						break;
					case eStyleSide.Left:
						space+=es.PaddingLeft;
						break;
					case eStyleSide.Right:
						space+=es.PaddingRight;
						break;
					case eStyleSide.Top:
						space+=es.PaddingTop;
						break;
				}
			}

			if((part & eSpacePart.Border)==eSpacePart.Border)
			{
				switch(side)
				{
					case eStyleSide.Bottom:
					{
						if(es.PaintBottomBorder)
							space+=es.BorderBottomWidth;
                        if (es.BorderBottom == eStyleBorderType.Etched || es.BorderBottom == eStyleBorderType.Double)
                            space += es.BorderBottomWidth;
						break;
					}
					case eStyleSide.Left:
					{
						if(es.PaintLeftBorder)
							space+=es.BorderLeftWidth;
                        if (es.BorderLeft == eStyleBorderType.Etched || es.BorderLeft == eStyleBorderType.Double)
                            space += es.BorderLeftWidth;
						break;
					}
					case eStyleSide.Right:
					{
						if(es.PaintRightBorder)
							space+=es.BorderRightWidth;
                        if (es.BorderRight == eStyleBorderType.Etched || es.BorderRight == eStyleBorderType.Double)
                            space += es.BorderRightWidth;
						break;
					}
					case eStyleSide.Top:
					{
						if(es.PaintTopBorder)
							space+=es.BorderTopWidth;
                        if (es.BorderTop == eStyleBorderType.Etched || es.BorderTop == eStyleBorderType.Double)
                            space += es.BorderTopWidth;
						break;
					}
				}
			}

            if (disposeStyle) es.Dispose();

			return space;
		}
示例#50
0
 /// <summary>
 /// Returns total white space for top side of the style. Whitespace is the space between the edge of the element and inner content of the element.
 /// </summary>
 /// <param name="es">Style to return white space for.</param>
 /// <returns></returns>
 public static int BottomWhiteSpace(ElementStyle es, eSpacePart parts)
 {
     return ElementStyleLayout.StyleSpacing(es, parts, eStyleSide.Bottom);
 }
示例#51
0
		/// <summary>
		/// Returns total white space for top side of the style. Whitespace is the space between the edge of the element and inner content of the element.
		/// </summary>
		/// <param name="es">Style to return white space for.</param>
		/// <returns></returns>
		public static int BottomWhiteSpace(ElementStyle es)
		{
			return ElementStyleLayout.StyleSpacing(es,eSpacePart.Border | eSpacePart.Margin | eSpacePart.Padding,eStyleSide.Bottom);
		}
示例#52
0
 public static ElementStyle GetSlideOutButtonStyle(Color complementColor)
 {
     ElementStyle style = new ElementStyle(ElementStyleClassKeys.SlideOutButtonKey);
     style.BackColor = complementColor;
     return style;
 }
示例#53
0
 /// <summary>
 /// Returns total white space for left side of the style. Whitespace is the space between the edge of the element and inner content of the element.
 /// </summary>
 /// <param name="es">Style to return white space for.</param>
 /// <returns></returns>
 public static int LeftWhiteSpace(ElementStyle es, eSpacePart parts)
 {
     return ElementStyleLayout.StyleSpacing(es, parts, eStyleSide.Left);
 }
示例#54
0
		/// <summary>
		/// Returns total white space for right side of the style. Whitespace is the space between the edge of the element and inner content of the element.
		/// </summary>
		/// <param name="es">Style to return white space for.</param>
		/// <returns></returns>
		public static int RightWhiteSpace(ElementStyle es)
		{
			return ElementStyleLayout.StyleSpacing(es,RightWhiteSpaceParts,eStyleSide.Right);
		}
示例#55
0
        public static ElementStyle GetTwoColumnMenuContainerStyle(Office2007ColorTable table)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonFileMenuTwoColumnContainerKey;
            Rendering.Office2007MenuColorTable mc = table.Menu;

            style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Double;
            style.BorderBottomWidth = 0;
            style.BorderColor = mc.FileContainerBorder;
            //style.BorderColorLight = mc.FileContainerBorderLight;
            style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.None;
            style.BorderLeftWidth = 0;
            style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.None;
            style.BorderRightWidth = 0;
            style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
            style.BorderTopWidth = 1;
            style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
            style.BorderBottomWidth = 1;
            style.PaddingBottom = 0;
            style.PaddingLeft = 0;
            style.PaddingRight = 0;
            style.PaddingTop = 0;

            return style;
        }
示例#56
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(0x8894A8));
            table.RibbonControl.InnerBorder = null; // new LinearGradientColorTable(factory.GetColor(0xC9D2E1));
            table.RibbonControl.TabsBackground = new LinearGradientColorTable(factory.GetColor(0xBCC7D8));
            table.RibbonControl.TabsGlassBackground = new LinearGradientColorTable(Color.Transparent, factory.GetColor(0xBCC7D8));
            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(0xCAD3E2), factory.GetColor(0xAEB9CD));
            table.RibbonControl.PanelBottomBackground = null; // new LinearGradientColorTable(factory.GetColor(0xE7F1FA), factory.GetColor(0xD8E4F2));
            #endregion

            #region Item Group
            table.ItemGroup.OuterBorder = LinearGradientColorTable.Empty;
            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 = 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 = 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 = 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.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 = GetRibbonTabItemBlueDefault(factory);
            rt.Name = Enum.GetName(typeof(eRibbonTabColor), eRibbonTabColor.Default);
            table.RibbonTabItemColors.Add(rt);

            // Magenta
            rt = GetRibbonTabItemBlueMagenta(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 = 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(0xBCC7D8));
            table.Bar.ToolbarBottomBackground = new LinearGradientColorTable(factory.GetColor(0xBCC7D8));
            table.Bar.ToolbarBottomBorder = factory.GetColor(0x9CAAC1);
            table.Bar.PopupToolbarBackground = new LinearGradientColorTable(factory.GetColor(0xE7EAED), Color.Empty);
            table.Bar.PopupToolbarBorder = factory.GetColor(0x9BA7B7);
            table.Bar.StatusBarTopBorder = factory.GetColor(0x9CAAC1);
            table.Bar.StatusBarTopBorderLight = Color.Empty;
            table.Bar.StatusBarAltBackground.Clear();
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x9CAAC1), 0f));
            table.Bar.StatusBarAltBackground.Add(new BackgroundColorBlend(factory.GetColor(0x9CAAC1), 1f));
            #endregion

            #region Menu
            table.Menu.Background = new LinearGradientColorTable(factory.GetColor(0xE9ECEE), factory.GetColor(0xD0D7E2));
            table.Menu.Border = new LinearGradientColorTable(factory.GetColor(0x9BA7B7), Color.Empty);
            table.Menu.Side = new LinearGradientColorTable(factory.GetColor(0xE9ECEE), Color.Empty);
            table.Menu.SideBorder = LinearGradientColorTable.Empty;
            table.Menu.SideBorderLight = LinearGradientColorTable.Empty;
            table.Menu.SideUnused = new LinearGradientColorTable(factory.GetColor(0xBCC7D8), Color.Empty);
            table.Menu.FileBackgroundBlend.Clear();
            table.Menu.FileBackgroundBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] {
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xE9ECEE), 0F),
                new DevComponents.DotNetBar.BackgroundColorBlend(factory.GetColor(0xD0D7E2), 1F)});
            table.Menu.FileContainerBorder = factory.GetColor(0x9BA7B7);
            table.Menu.FileContainerBorderLight = Color.Transparent;
            table.Menu.FileColumnOneBackground = factory.GetColor(0xE9ECEE);
            table.Menu.FileColumnOneBorder = factory.GetColor(0xBEC3CB);
            table.Menu.FileColumnTwoBackground = Color.Empty;
            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(0xF1F3F8);
            int editBorderColor = 0x8591A2;
            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(0x5A5D61);
            table.ComboBox.DefaultStandalone.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DefaultStandalone.Border = factory.GetColor(editBorderColor);
            table.ComboBox.DefaultStandalone.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xCAD3E2), factory.GetColor(0xAEB9CD), 90);
            table.ComboBox.DefaultStandalone.ExpandBorderInner = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            table.ComboBox.DefaultStandalone.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xABBAD0), Color.Empty, 90);
            table.ComboBox.DefaultStandalone.ExpandText = factory.GetColor(0x1B293E);
            table.ComboBox.MouseOver.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.MouseOver.Border = factory.GetColor(0xE5C365);
            table.ComboBox.MouseOver.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCF2), factory.GetColor(0xFFECB5), 90);
            table.ComboBox.MouseOver.ExpandBorderInner = LinearGradientColorTable.Empty;
            table.ComboBox.MouseOver.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xE5C365), Color.Empty, 90);
            table.ComboBox.MouseOver.ExpandText = factory.GetColor(0x000000);
            table.ComboBox.DroppedDown.Background = factory.GetColor(0xFFFFFF);
            table.ComboBox.DroppedDown.Border = factory.GetColor(0xE5C365);
            table.ComboBox.DroppedDown.ExpandBackground = new LinearGradientColorTable(factory.GetColor(0xFFE8A6), factory.GetColor(0xFFE8A6), 90);
            table.ComboBox.DroppedDown.ExpandBorderInner = LinearGradientColorTable.Empty;
            table.ComboBox.DroppedDown.ExpandBorderOuter = new LinearGradientColorTable(factory.GetColor(0xE5C365));
            table.ComboBox.DroppedDown.ExpandText = factory.GetColor(0x000000);
            #endregion

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

            table.DialogLauncher.MouseOver.DialogLauncher = factory.GetColor(0x5D6570);
            table.DialogLauncher.MouseOver.DialogLauncherShade = Color.Empty; // Color.FromArgb(192, factory.GetColor(0xFFFFFF));
            table.DialogLauncher.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFBF1), factory.GetColor(0xFFEFC1));
            table.DialogLauncher.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFEFC1), factory.GetColor(0xFFECB5));
            table.DialogLauncher.MouseOver.InnerBorder = LinearGradientColorTable.Empty;
            table.DialogLauncher.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE5C365), Color.Empty);

            table.DialogLauncher.Pressed.DialogLauncher = factory.GetColor(0x5D6570);
            table.DialogLauncher.Pressed.DialogLauncherShade = Color.Empty; // 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(0xEAF0F6));
            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(0xEDF2F9));
            table.SystemButton.MouseOver.LightShade = Color.Empty;
            table.SystemButton.MouseOver.DarkShade = factory.GetColor(0x525565);
            table.SystemButton.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0xCAD3E2), factory.GetColor(0xBDC7D7));
            table.SystemButton.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xBDC7D7), factory.GetColor(0xAEB9CD));
            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(0x9BA7B7));
            table.SystemButton.MouseOver.InnerBorder = LinearGradientColorTable.Empty;

            // Pressed
            table.SystemButton.Pressed = new Office2007SystemButtonStateColorTable();
            table.SystemButton.Pressed.Foreground = new LinearGradientColorTable(factory.GetColor(0xE9EFF6));
            table.SystemButton.Pressed.LightShade = Color.Empty;
            table.SystemButton.Pressed.DarkShade = factory.GetColor(0x525565);
            table.SystemButton.Pressed.TopBackground = new LinearGradientColorTable(factory.GetColor(0xAEB9CD));
            table.SystemButton.Pressed.TopHighlight = null;// new LinearGradientColorTable(factory.GetColor(0xB8CEE9), Color.Transparent);
            table.SystemButton.Pressed.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xAEB9CD));
            table.SystemButton.Pressed.BottomHighlight = null; // new LinearGradientColorTable(factory.GetColor(0xC6EAFD), Color.Transparent);
            table.SystemButton.Pressed.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x8FA5BF));
            table.SystemButton.Pressed.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xADC1DA));

            // CLOSE Default state no background
            table.SystemButtonClose = new Office2007SystemButtonColorTable();
            table.SystemButtonClose.Default = new Office2007SystemButtonStateColorTable();
            table.SystemButtonClose.Default.Foreground = new LinearGradientColorTable(factory.GetColor(0xEAF0F6));
            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(0xFCD7D7));
            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(0xF8D4D5));
            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(0x909AA6),
                factory.GetColor(0xD4E6F5),
                factory.GetColor(0xBBCEE6),
                factory.GetColor(0xBBCEE6),
                factory.GetColor(0xBBCEE6)
            };

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

            // Form Caption Active
            table.Form.Active.CaptionTopBackground = new LinearGradientColorTable(factory.GetColor(0xBCC7D8), factory.GetColor(0xBCC7D8));
            table.Form.Active.CaptionBottomBackground = new LinearGradientColorTable(factory.GetColor(0xBCC7D8), factory.GetColor(0xBCC7D8));
            table.Form.Active.CaptionBottomBorder = new Color[] { factory.GetColor(0x9CAAC1), factory.GetColor(0xC9D2E1) };
            table.Form.Active.CaptionText = factory.GetColor(0x1B293E);
            table.Form.Active.CaptionTextExtra = factory.GetColor(0x1B293E);

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

            table.Form.BackColor = factory.GetColor(0xD0D7E2);
            table.Form.TextColor = factory.GetColor(0x1B293E);
            table.Form.MdiClientBackgroundImage = BarFunctions.LoadBitmap("SystemImages.VS2010ClientBackground.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(0xBCC7D8));
            table.QuickAccessToolbar.Standalone.OutterBorderColor = factory.GetColor(0x9CAAC1);
            table.QuickAccessToolbar.Standalone.MiddleBorderColor = Color.Empty; //factory.GetColor(0xC9D2E1);
            table.QuickAccessToolbar.Standalone.InnerBorderColor = Color.Empty; // factory.GetColor(0xDCE8F7);

            table.QuickAccessToolbar.QatCustomizeMenuLabelBackground = factory.GetColor(0xCAD3E2);
            table.QuickAccessToolbar.QatCustomizeMenuLabelText = factory.GetColor(0x1B293E);

            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; // new LinearGradientColorTable(factory.GetColor(0xC8DCF4), factory.GetColor(0xAFD2FE));
            table.TabControl.Default.BottomBackground = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0x96BFF3), factory.GetColor(0xB5CCE9));
            table.TabControl.Default.InnerBorder = Color.Empty; // factory.GetColor(0xE3EFFF);
            table.TabControl.Default.OuterBorder = Color.Empty; // factory.GetColor(0x8591A2);
            table.TabControl.Default.Text = factory.GetColor(0xFFFFFF);

            table.TabControl.MouseOver = new Office2007TabItemStateColorTable();
            table.TabControl.MouseOver.TopBackground = new LinearGradientColorTable(factory.GetColor(0x6F7776), factory.GetColor(0x616C75));
            table.TabControl.MouseOver.BottomBackground = new LinearGradientColorTable(factory.GetColor(0x5D6975), factory.GetColor(0x4F5F74));
            table.TabControl.MouseOver.InnerBorder = Color.Empty; // factory.GetColor(0xFFFFFF);
            table.TabControl.MouseOver.OuterBorder = factory.GetColor(0x9BA7B7);
            table.TabControl.MouseOver.Text = factory.GetColor(0xFFFFFF);

            table.TabControl.Selected = new Office2007TabItemStateColorTable();
            table.TabControl.Selected.TopBackground = new LinearGradientColorTable(factory.GetColor(0xFFFCF2), factory.GetColor(0xFFF3CF));
            table.TabControl.Selected.BottomBackground = new LinearGradientColorTable(factory.GetColor(0xFFE8A6), factory.GetColor(0xFFE8A6));
            table.TabControl.Selected.InnerBorder = Color.Empty;
            table.TabControl.Selected.OuterBorder = Color.Empty; // factory.GetColor(0x293955);
            table.TabControl.Selected.Text = factory.GetColor(0x000000);

            table.TabControl.TabBackground = LinearGradientColorTable.Empty;// new LinearGradientColorTable(factory.GetColor(0x2B3C59), Color.Empty);
            table.TabControl.TabBackgroundImage = BarFunctions.LoadBitmap("SystemImages.VS2010ClientBackground.png");
            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(0xF4F4F4), Color.Empty);
            chk.Default.CheckBorder = factory.GetColor(0xABC1DE);
            chk.Default.CheckInnerBackground = new LinearGradientColorTable(factory.GetColor(0xE8E9EB), factory.GetColor(0xF2F2F3));
            chk.Default.CheckInnerBorder = factory.GetColor(0xBEC4CC);
            chk.Default.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4A6B96), Color.Empty);
            chk.Default.Text = factory.GetColor(0x1B293E);

            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(0xFDF6E4));
            chk.MouseOver.CheckInnerBorder = factory.GetColor(0xFCAD5D);
            chk.MouseOver.CheckSign = new LinearGradientColorTable(factory.GetColor(0x4A6B96), Color.Empty);
            chk.MouseOver.Text = factory.GetColor(0x1B293E);

            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(0x4A6B96), Color.Empty);
            chk.Pressed.Text = factory.GetColor(0x1B293E);

            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(0x87929F);
            #endregion

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

            #region ProgressBarItem
            Office2007ProgressBarColorTable pct = table.ProgressBarItem;
            pct.BackgroundColors = new GradientColorTable(0xEBEDF0, 0xD5D8DC);
            pct.OuterBorder = factory.GetColor(0x6E97CC);
            pct.InnerBorder = factory.GetColor(0xFFFFFF);
            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 = table.ProgressBarItemPaused;
            pct.BackgroundColors = new GradientColorTable(0xEBEDF0, 0xD5D8DC);
            pct.OuterBorder = factory.GetColor(0x6E97CC);
            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(0x6E97CC);
            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(0xF0F2F5);
            gallery.GroupLabelText = factory.GetColor(0x1B293E);
            gallery.GroupLabelBorder = factory.GetColor(0xF0F2F5);
            #endregion

            #region Legacy Colors
            table.LegacyColors.BarBackground = factory.GetColor(0xBCC7D8);
            table.LegacyColors.BarBackground2 = Color.Empty; // factory.GetColor(0xB3C4D8);
            table.LegacyColors.BarStripeColor = factory.GetColor(0x60728C);
            table.LegacyColors.BarCaptionBackground = factory.GetColor(0xFFFCF2);
            table.LegacyColors.BarCaptionBackground2 = factory.GetColor(0xFFE8A6);
            table.LegacyColors.BarCaptionText = factory.GetColor(0x000000);
            table.LegacyColors.BarCaptionInactiveBackground = factory.GetColor(0x4D6082);
            table.LegacyColors.BarCaptionInactiveBackground2 = factory.GetColor(0x3D5277);
            table.LegacyColors.BarCaptionInactiveText = factory.GetColor(0xFFFFFF);
            table.LegacyColors.BarFloatingBorder = factory.GetColor(0x2B3C59);
            table.LegacyColors.BarPopupBackground = factory.GetColor(0xFFFFFF);
            table.LegacyColors.BarPopupBorder = factory.GetColor(0x9BA7B7);
            table.LegacyColors.ItemBackground = Color.Empty;
            table.LegacyColors.ItemBackground2 = Color.Empty;
            table.LegacyColors.ItemCheckedBackground = factory.GetColor(0xFFEFBB);
            table.LegacyColors.ItemCheckedBackground2 = factory.GetColor(0xFFEFBB);
            table.LegacyColors.ItemCheckedBorder = factory.GetColor(0xE5C365);
            table.LegacyColors.ItemCheckedText = factory.GetColor(0x1B293E);
            table.LegacyColors.ItemDisabledBackground = Color.Empty;
            table.LegacyColors.ItemDisabledText = factory.GetColor(0x8D8D8D);
            table.LegacyColors.ItemExpandedShadow = Color.Empty;
            table.LegacyColors.ItemExpandedBackground = factory.GetColor(0xE9ECEE); //factory.GetColor(0xFFE8A6);
            table.LegacyColors.ItemExpandedBackground2 = Color.Empty;// factory.GetColor(0xFFE8A6);
            table.LegacyColors.ItemExpandedText = factory.GetColor(0x1B293E);
            table.LegacyColors.ItemExpandedBorder = factory.GetColor(0x1B293E);
            table.LegacyColors.ItemHotBackground = factory.GetColor(0xFFFCF2);
            table.LegacyColors.ItemHotBackground2 = factory.GetColor(0xFFECB5);
            table.LegacyColors.ItemHotBorder = factory.GetColor(0x9BA7B7);
            table.LegacyColors.ItemHotText = factory.GetColor(0x1B293E);
            table.LegacyColors.ItemPressedBackground = factory.GetColor(0xFFFCF2);
            table.LegacyColors.ItemPressedBackground2 = factory.GetColor(0xFFECB5);
            table.LegacyColors.ItemPressedBorder = factory.GetColor(0xE5C365);
            table.LegacyColors.ItemPressedText = factory.GetColor(0x1B293E);
            table.LegacyColors.ItemSeparator = factory.GetColor(0xBEC3CB);
            table.LegacyColors.ItemSeparatorShade = Color.Empty; // Color.FromArgb(128, factory.GetColor(0xFFFFFF));
            table.LegacyColors.ItemText = factory.GetColor(0x1B293E);
            table.LegacyColors.MenuBackground = factory.GetColor(0xE9ECEE);
            table.LegacyColors.MenuBackground2 = factory.GetColor(0xD0D7E2);
            table.LegacyColors.MenuBarBackground = factory.GetColor(0xCAD3E2);
            table.LegacyColors.MenuBarBackground2 = factory.GetColor(0xAEB9CD);
            table.LegacyColors.MenuBorder = factory.GetColor(0x9BA7B7);
            table.LegacyColors.ItemExpandedBorder = table.LegacyColors.MenuBorder;
            table.LegacyColors.MenuSide = factory.GetColor(0xE9ECEE);
            table.LegacyColors.MenuSide2 = Color.Empty; // factory.GetColor(0xDDE0E8);
            table.LegacyColors.MenuUnusedBackground = table.LegacyColors.MenuBackground;
            table.LegacyColors.MenuUnusedSide = factory.GetColor(0xBCC7D8);
            table.LegacyColors.MenuUnusedSide2 = Color.Empty;// System.Windows.Forms.ControlPaint.Light(table.LegacyColors.MenuSide2);
            table.LegacyColors.ItemDesignTimeBorder = Color.DarkGray;
            table.LegacyColors.BarDockedBorder = factory.GetColor(0x9CAAC1);
            table.LegacyColors.DockSiteBackColor = factory.GetColor(0x9CAAC1);
            table.LegacyColors.DockSiteBackColor2 = Color.Empty;
            table.LegacyColors.CustomizeBackground = factory.GetColor(0xD5DCE8);
            table.LegacyColors.CustomizeBackground2 = Color.Empty; // factory.GetColor(0xB9CEE6);
            table.LegacyColors.CustomizeText = factory.GetColor(0x1B293E);
            table.LegacyColors.PanelBackground = factory.GetColor(0xCAD3E2);
            table.LegacyColors.PanelBackground2 = factory.GetColor(0xAEB9CD);
            table.LegacyColors.PanelText = factory.GetColor(0x1B293E);
            table.LegacyColors.PanelBorder = factory.GetColor(editBorderColor);
            table.LegacyColors.ExplorerBarBackground = factory.GetColor(0x4D6082);
            table.LegacyColors.ExplorerBarBackground2 = factory.GetColor(0x3D5277);
            table.LegacyColors.AutoHidePanelBackgroundImage = table.Form.MdiClientBackgroundImage;
            table.LegacyColors.AutoHidePanelBackground = Color.Transparent;
            table.LegacyColors.AutoHideTabBackground = factory.GetColor(0x4B5E81);
            table.LegacyColors.AutoHideTabText = factory.GetColor(0xFFFFFF);
            table.LegacyColors.AutoHideTabBorder = Color.Transparent;
            table.LegacyColors.AutoHideSelectedTabBackground = factory.GetColor(0x4C5C74);
            table.LegacyColors.AutoHideSelectedTabBackground2 = factory.GetColor(0x6F7776);
            table.LegacyColors.AutoHideSelectedTabText = factory.GetColor(0xFFFFFF);
            table.LegacyColors.AutoHideSelectedTabBorder = factory.GetColor(0x9BA7B7);
            table.LegacyColors.SplitterBackground = factory.GetColor(0xDBEBFF);
            table.LegacyColors.SplitterBackground2 = factory.GetColor(0xB4C4D6);
            table.LegacyColors.SplitterBorder = factory.GetColor(0x859EBF);
            table.LegacyColors.SplitterText = table.LegacyColors.SplitterBorder;
            #endregion

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

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

            #region Slider
            Office2007SliderColorTable sl = table.Slider;
            sl.Default.LabelColor = factory.GetColor(0x1B293E);
            sl.Default.SliderLabelColor = factory.GetColor(0x1B293E);
            sl.Default.PartBackground = new GradientColorTable();
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF7FBFE), 0));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xE3ECF8), .5f));
            sl.Default.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xBCCADD), 1f));
            sl.Default.PartBorderColor = factory.GetColor(0x76869D);
            sl.Default.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.Default.PartForeColor = factory.GetColor(0x7E8287);
            sl.Default.PartForeLightColor = Color.Empty;
            sl.Default.TrackLineColor = factory.GetColor(0x8A9CB8);
            sl.Default.TrackLineLightColor = factory.GetColor(0xDEEAF7);

            sl.MouseOver.LabelColor = factory.GetColor(0x1B293E);
            sl.MouseOver.SliderLabelColor = factory.GetColor(0x1B293E);
            sl.MouseOver.PartBackground = new GradientColorTable();
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF6E49C), 0));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xF6E59A), .5f));
            sl.MouseOver.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFAF5D5), 1f));
            sl.MouseOver.PartBorderColor = factory.GetColor(0xEDC23E);
            sl.MouseOver.PartBorderLightColor = Color.FromArgb(96, factory.GetColor(0xFFFFFF));
            sl.MouseOver.PartForeColor = factory.GetColor(0x7E8287);
            sl.MouseOver.PartForeLightColor = Color.Empty;
            sl.MouseOver.TrackLineColor = factory.GetColor(0x8A9CB8);
            sl.MouseOver.TrackLineLightColor = factory.GetColor(0xDEEAF7);

            sl.Pressed.LabelColor = factory.GetColor(0x1B293E);
            sl.Pressed.SliderLabelColor = factory.GetColor(0x1B293E);
            sl.Pressed.PartBackground = new GradientColorTable();
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFBD677), 0));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE489), .5f));
            sl.Pressed.PartBackground.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xFFE489), 1f));
            sl.Pressed.PartBorderColor = factory.GetColor(0xC27D36);
            sl.Pressed.PartBorderLightColor = factory.GetColor(0xF1C15F);
            sl.Pressed.PartForeColor = factory.GetColor(0x7E8287);
            sl.Pressed.PartForeLightColor = Color.Empty;
            sl.Pressed.TrackLineColor = factory.GetColor(0x8A9CB8);
            sl.Pressed.TrackLineLightColor = factory.GetColor(0xDEEAF7);

            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(0xEFF5FB), factory.GetColor(0xE1ECFA));
            table.ListViewEx.ColumnSeparator = factory.GetColor(editBorderColor);
            table.ListViewEx.SelectionBackground = new LinearGradientColorTable(factory.GetColor(0xA7CDF0), Color.Empty);
            table.ListViewEx.SelectionBorder = factory.GetColor(0xE3EFFF);
            #endregion

            #region DataGridView
            table.DataGridView.ColumnHeaderNormalBorder = factory.GetColor(editBorderColor);
            table.DataGridView.ColumnHeaderNormalBackground = new LinearGradientColorTable(factory.GetColor(0xEFF5FB), factory.GetColor(0xE1ECFA), 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(0xD4E4F7), factory.GetColor(0xC3D6EC), 90);
            table.DataGridView.ColumnHeaderMouseOverBorder = factory.GetColor(editBorderColor);
            table.DataGridView.ColumnHeaderPressedBackground = new LinearGradientColorTable(factory.GetColor(0xB5CBE3), factory.GetColor(0xA5BCD7), 90);
            table.DataGridView.ColumnHeaderPressedBorder = factory.GetColor(editBorderColor);

            table.DataGridView.RowNormalBackground = new LinearGradientColorTable(factory.GetColor(0xE4ECF7));
            table.DataGridView.RowNormalBorder = factory.GetColor(editBorderColor);
            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(0xF29536);
            table.DataGridView.RowPressedBackground = new LinearGradientColorTable(factory.GetColor(0xB5CBE3), factory.GetColor(0xA5BCD7), 90);
            table.DataGridView.RowPressedBorder = factory.GetColor(editBorderColor);

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

            table.DataGridView.SelectorBackground = new LinearGradientColorTable(factory.GetColor(0xA5BCD7));
            table.DataGridView.SelectorBorder = factory.GetColor(editBorderColor);
            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(0x1B293E);
            table.SideBar.SideBarPanelItemDefault = new GradientColorTable();
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xEDF5FD), 0));
            table.SideBar.SideBarPanelItemDefault.Colors.Add(new BackgroundColorBlend(factory.GetColor(0xD8E4F2), 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(0x1B293E);
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOver = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x1B293E);
            crumbBarViewTable.Background = new BackgroundColorBlendCollection();
            crumbBarViewTable.Background.AddRange(new BackgroundColorBlend[]{
                new BackgroundColorBlend(factory.GetColor("F9E8A1"), 0f),
                new BackgroundColorBlend(factory.GetColor("FAF2CD"), 1f)});
            crumbBarViewTable.Border = factory.GetColor("EEC955");
            crumbBarViewTable.BorderLight = factory.GetColor("90FFFFFF");
            crumbBarViewTable = new CrumbBarItemViewStateColorTable();
            table.CrumbBarItemView.MouseOverInactive = crumbBarViewTable;
            crumbBarViewTable.Foreground = factory.GetColor(0x1B293E);
            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(0x1B293E);
            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(0xCDDFF5));
            table.WarningBox.WarningBorderColor = factory.GetColor(editBorderColor);
            table.WarningBox.WarningBackColor1 = factory.GetColor(0xC7D6E9);
            table.WarningBox.WarningBackColor2 = factory.GetColor(0xAFC3DC);
            #endregion

            #region CalendarView

            #region WeekDayViewColors

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

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

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

                new ColorDef(factory.GetColor(0xFFFFFF)),           // DayWorkHoursBackground
                new ColorDef(factory.GetColor(0xA5BFE1)),           // 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(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(0xFFFFFF)),           // 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(0x1B293E)),           // TimeRulerForeground
                new ColorDef(factory.GetColor(editBorderColor)),           // TimeRulerBorder
                new ColorDef(factory.GetColor(editBorderColor)),           // 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(editBorderColor)),           // DayOfWeekHeaderBorder

                new ColorDef(factory.GetColor(0xFFFFFF)),         // DayOfWeekHeaderBackground

                new ColorDef(factory.GetColor(0x1B293E)),           // DayOfWeekHeaderForeground
                new ColorDef(factory.GetColor(0x8DAED9)),           // SideBarBorder

                new ColorDef(factory.GetColor(0xE6EDF7)),           // SideBarBackground

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

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

                new ColorDef(factory.GetColor(0x1F3979)),           // 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(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(0x1F3979)),           // ContentLinkForeground - DayHeaderForeground
                new ColorDef(factory.GetColor(0xFFFFFF)),           // ContentLinkBackground - DayContentActiveDayBackground

           };

            #endregion

            #region AppointmentColors

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

                new ColorDef(new Color[] {factory.GetColor(0xE0E9F6), factory.GetColor(0xB3C9E6)},
                             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(0xBBCEE6));
            table.SuperTab.InnerBorder = factory.GetColor(Color.Transparent);
            table.SuperTab.OuterBorder = factory.GetColor(0x9FB2C7);

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

            table.SuperTab.ControlBoxMouseOver.Background = factory.GetColor(0xCEEDFA);
            table.SuperTab.ControlBoxMouseOver.Border = factory.GetColor(0x3399FF);
            table.SuperTab.ControlBoxMouseOver.Image = factory.GetColor(0xFF, 0x1B293E);

            table.SuperTab.ControlBoxPressed.Background = factory.GetColor(0xB7CAE0);
            table.SuperTab.ControlBoxPressed.Border = factory.GetColor(0x3399FF);
            table.SuperTab.ControlBoxPressed.Image = factory.GetColor(0xFF, 0x1B293E);

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

            #endregion

            #region SuperTabItem

            // Top Default

            table.SuperTabItem.Default.Normal.Background = new SuperTabLinearGradientColorTable();
            table.SuperTabItem.Default.Normal.Text = factory.GetColor(0x1B293E);
            table.SuperTabItem.Default.Normal.CloseMarker = factory.GetColor(0x1B293E);

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

            table.SuperTabItem.Default.Selected.InnerBorder = Color.Transparent;
            table.SuperTabItem.Default.Selected.OuterBorder = factory.GetColor(0x9FB2C7);
            table.SuperTabItem.Default.Selected.Text = factory.GetColor(0x1B293E);
            table.SuperTabItem.Default.Selected.CloseMarker = factory.GetColor(0x1B293E);

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

            // Top SelectedMouseOver

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

            table.SuperTabItem.Default.SelectedMouseOver.InnerBorder = Color.Transparent;
            table.SuperTabItem.Default.SelectedMouseOver.OuterBorder = factory.GetColor(0x9FB2C7);
            table.SuperTabItem.Default.SelectedMouseOver.Text = factory.GetColor(0x1B293E);
            table.SuperTabItem.Default.SelectedMouseOver.CloseMarker = factory.GetColor(0x1B293E);

            // Top MouseOver

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

            table.SuperTabItem.Default.MouseOver.InnerBorder = factory.GetColor(190, 0xFFFFFF);
            table.SuperTabItem.Default.MouseOver.OuterBorder = factory.GetColor(0xB1B5BA);
            table.SuperTabItem.Default.MouseOver.Text = factory.GetColor(0x1B293E);
            table.SuperTabItem.Default.MouseOver.CloseMarker = factory.GetColor(0x1B293E);

            // Left, Bottom, Right

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

            #endregion

            #region SuperTabPanel

            table.SuperTabPanel.Default.Background = new SuperTabLinearGradientColorTable(factory.GetColor(0xEFF6FD));
            table.SuperTabPanel.Default.OuterBorder = factory.GetColor(0x9FB2C7);
            table.SuperTabPanel.Default.InnerBorder = factory.GetColor(Color.Transparent);

            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.GetVS2010BackstageBlueColorTable(table.Backstage, factory);
            #endregion

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

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

            #endregion

            #region SwitchButton
            table.SwitchButton = new SwitchButtonColors();
            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(0x8894A8);
            style.Border = eStyleBorderType.Solid;
            style.BorderWidth = 1;
            style.CornerDiameter = 2;
            style.CornerType = eCornerType.Rounded;
            style.BackColor = factory.GetColor(0xF1F3F8);
            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 = GetRibbonClientPanelStyle(factory, eOffice2010ColorScheme.Blue);
            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(0xF9FCFD), factory.GetColor(0xD3DBE9), factory.GetColor(0x9EB6CE));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeNodesColumnsHeaderStyle(factory.GetColor(0xF9FCFD), factory.GetColor(0xD3DBE9), factory.GetColor(0x9EB6CE));
            table.StyleClasses.Add(style.Class, style);
            style = Office2007ColorTableFactory.GetAdvTreeColumnStyle(factory.GetColor(0x000000));
            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(0x535F74);
            table.RadialMenu.RadialMenuButtonBackground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuButtonBorder = factory.GetColor(0x535F74);
            table.RadialMenu.RadialMenuExpandForeground = factory.GetColor(0xFFFFFF);
            table.RadialMenu.RadialMenuInactiveBorder = Color.FromArgb(128, table.RadialMenu.RadialMenuBorder);
            table.RadialMenu.RadialMenuItemForeground = factory.GetColor(0x535F74);
            table.RadialMenu.RadialMenuItemMouseOverBackground = Color.FromArgb(72, table.RadialMenu.RadialMenuItemForeground);
            table.RadialMenu.RadialMenuItemMouseOverForeground = factory.GetColor(0x535F74);
            table.RadialMenu.RadialMenuMouseOverBorder = Color.FromArgb(200, table.RadialMenu.RadialMenuBorder);
            #endregion
        }
示例#57
0
        public static ElementStyle GetMenuColumnTwoContainerStyle(Office2007ColorTable table)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonFileMenuColumnTwoContainerKey;
            Rendering.Office2007MenuColorTable mc = table.Menu;

            style.BackColor = mc.FileColumnTwoBackground;

            return style;
        }
示例#58
0
        public static ElementStyle GetRibbonClientPanelStyle(ColorFactory f, eOffice2010ColorScheme cs)
        {
            ElementStyle style = new ElementStyle();
            style.Class = ElementStyleClassKeys.RibbonClientPanelKey;

            style.BackColorGradientAngle = 90;

            if (cs == eOffice2010ColorScheme.Blue)
            {
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0xC7DAF0), 0));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0x9AB3CF), .7f));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0x85A1C0), 1));
            }
            else if (cs == eOffice2010ColorScheme.Silver)
            {
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0xCDD1D6), 0));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0xC0C4C8), .7f));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0xBABEC2), 1));
            }
            else if (cs == eOffice2010ColorScheme.Black)
            {
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0x6F6F6F), 0));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0x4F4F4F), .7f));
                style.BackColorBlend.Add(new BackgroundColorBlend(f.GetColor(0x3F3F3F), 1));
            }

            return style;
        }
示例#59
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

        }
示例#60
0
        private Rectangle GetButtonsRenderBounds(ElementStyle style)
        {
            if (this.RightToLeft == RightToLeft.Yes)
            {
                return new Rectangle((ElementStyleLayout.LeftWhiteSpace(style, eSpacePart.Border) + 1), ElementStyleLayout.TopWhiteSpace(style, eSpacePart.Border) + 1,
                _ButtonGroup.Size.Width, _ButtonGroup.Size.Height);
            }

            return new Rectangle(this.Width - (ElementStyleLayout.RightWhiteSpace(style, eSpacePart.Border) + 1) - _ButtonGroup.Size.Width, ElementStyleLayout.TopWhiteSpace(style, eSpacePart.Border) + 1,
                _ButtonGroup.Size.Width, _ButtonGroup.Size.Height);
        }