Beispiel #1
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x333333);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xF2F2F4), factory.GetColor(0xE3E7EF));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xEFF9F9), factory.GetColor(0xB5F9FF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBEBE), factory.GetColor(0xBEBEBE));
            rt.Selected.Text = factory.GetColor(0x333333);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xF2F7FA), factory.GetColor(0xE1E6EF));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(92, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFAECC2), factory.GetColor(0xFFFFBD));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE8BB72), factory.GetColor(0xFED15E));
            rt.SelectedMouseOver.Text = factory.GetColor(0x333333);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xDBD4C3), factory.GetColor(0xE9CE8D));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xD3D7DF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE8EAEE), factory.GetColor(0xDADDE4));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBDBEC1), factory.GetColor(0xBDBEC1));
            rt.MouseOver.Text = factory.GetColor(0x333333);

            return rt;
        }
Beispiel #2
0
		/// <summary>
		/// Adds new object to the collection.
		/// </summary>
		/// <param name="Office2007ButtonItemColorTable">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(Office2007RibbonTabItemColorTable colorTable)
		{
            return List.Add(colorTable);
		}
Beispiel #3
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueOrange(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);
            rt.Default.GlassText = factory.GetColor(0x000000);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xBAABA4), factory.GetColor(0xC9C9C9));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA0662B), factory.GetColor(0xA85600));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xBAABA4), factory.GetColor(0xC9C9C9));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA0662B), factory.GetColor(0xA85600));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xAE976B), factory.GetColor(0x5D594E));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xCBE2FF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC1AB62), factory.GetColor(0x9E955A));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xA85600));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            rt.MouseOver.GlassText = factory.GetColor(0x000000);

            return rt;
        }
Beispiel #4
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);
            rt.Default.GlassText = factory.GetColor(0x000000);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xB9A2B1), factory.GetColor(0xC9C9C9));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB06195), factory.GetColor(0x9C2F77));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xB9A2B1), factory.GetColor(0xC9C9C9));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB06195), factory.GetColor(0x9C2F77));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xA68098), factory.GetColor(0x595457));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xFCFBFB), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xB58CA5), factory.GetColor(0x8C8088));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9C2F77));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            rt.MouseOver.GlassText = factory.GetColor(0x000000);

            return rt;
        }
Beispiel #5
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueOrange(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x1B293E);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.Selected.InnerBorder = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xEDF5FD), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xF2A765), factory.GetColor(0xF2A000));
            rt.Selected.Text = factory.GetColor(0x1B293E);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.InnerBorder = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xEDF5FD), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xF2A765), factory.GetColor(0xF2A000));
            rt.SelectedMouseOver.Text = factory.GetColor(0x1B293E);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xF5D290), factory.GetColor(180, 0xFFFFFF));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(190, 0xFBE66F), Color.Empty);
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xF07D06), factory.GetColor(0xEF7E08));
            rt.MouseOver.Text = factory.GetColor(0x1B293E);

            return rt;
        }
Beispiel #6
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x1B293E);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.Selected.InnerBorder = LinearGradientColorTable.Empty;
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x8894A8));
            rt.Selected.Text = factory.GetColor(0x1B293E);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.InnerBorder = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x8894A8));
            rt.SelectedMouseOver.Text = factory.GetColor(0x1B293E);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(48, 0xFFFFFF), factory.GetColor(180, 0xFFFFFF));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(190, 0xFFFFFF), Color.Empty);
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x8894A8), Color.Empty);
            rt.MouseOver.Text = factory.GetColor(0x1B293E);

            return rt;
        }
Beispiel #7
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueGreen(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x3B3B3B);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xE4F3E0), factory.GetColor(0xE4F2DF));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD5EAD3), factory.GetColor(0xB8DEB1));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB9C1B7), factory.GetColor(0xBFC1BE));
            rt.Selected.Text = factory.GetColor(0x3B3B3B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xE4F3E0), factory.GetColor(0xE4F2DF));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD5EAD3), factory.GetColor(0xB8DEB1));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB9C1B7), factory.GetColor(0xBFC1BE));
            rt.SelectedMouseOver.Text = factory.GetColor(0x3B3B3B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xB3DEE3), factory.GetColor(0x8ADE9F));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xDEECFF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE2EFFF), factory.GetColor(0xC7DFFF));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC1C8D1), factory.GetColor(0xC0C7D0));
            rt.MouseOver.Text = factory.GetColor(0x3B3B3B);

            return rt;
        }
Beispiel #8
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueDefault(ColorFactory factory, MetroPartColors metroColors)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(metroColors.TextLightColor);
            rt.CornerSize = 0;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable();
            rt.Selected.InnerBorder = new LinearGradientColorTable();
            rt.Selected.OuterBorder = new LinearGradientColorTable(metroColors.CanvasColorLightShade);
            rt.Selected.Text = factory.GetColor(metroColors.BaseColor);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.InnerBorder = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(metroColors.CanvasColorLightShade);
            rt.SelectedMouseOver.Text = factory.GetColor(metroColors.BaseColor);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(metroColors.CanvasColor));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = LinearGradientColorTable.Empty;
            rt.MouseOver.OuterBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(metroColors.CanvasColorLightShade);
            rt.MouseOver.Text = factory.GetColor(metroColors.BaseColor);

            return rt;
        }
Beispiel #9
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x15428B);
            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xD4C8E2), factory.GetColor(0xECE7F2));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xECE7F3), factory.GetColor(0xCDC2DF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBAC1), factory.GetColor(0xC0BFC1));
            rt.Selected.Text = factory.GetColor(0x15428B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xD4C8E2), factory.GetColor(0xECE7F2));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xECE7F3), factory.GetColor(0xCDC2DF));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBAC1), factory.GetColor(0xC0BFC1));
            rt.SelectedMouseOver.Text = factory.GetColor(0x15428B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xC4D5F8), factory.GetColor(0xC2BCE8));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xDEECFF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE0EEFF), factory.GetColor(0xC7DFFF));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC1C8D1), factory.GetColor(0xC0C7D0));
            rt.MouseOver.Text = factory.GetColor(0x15428B);

            return rt;
        }
Beispiel #10
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x15428B);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xF0F6FE), factory.GetColor(0xDBE6F5));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF8FBFF), factory.GetColor(0xBFFAFF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x97B9E6), factory.GetColor(0x8DB2E3));
            rt.Selected.Text = factory.GetColor(0x15428B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xEBF3FE), factory.GetColor(0xE1EAF6));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFAEDC6), factory.GetColor(0xFFFFBD));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xD7BC8A), factory.GetColor(0xFED15E));
            rt.SelectedMouseOver.Text = factory.GetColor(0x15428B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCDDAE0), factory.GetColor(0xE4D097));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xC4DEFF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xDFEDFF), factory.GetColor(0xC7DFFF));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x98BBE9), factory.GetColor(0x98BBE9));
            rt.MouseOver.Text = factory.GetColor(0x15428B);

            return rt;
        }
Beispiel #11
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x1E395B);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xF2DCF1), factory.GetColor(0xEFF6FD));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xEEF5FD), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE58ABD), factory.GetColor(0xDE66A6));
            rt.Selected.Text = factory.GetColor(0x1E395B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xF2DCF1), factory.GetColor(0xEFF6FD));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xEEF5FD), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE58ABD), factory.GetColor(0xDE66A6));
            rt.SelectedMouseOver.Text = factory.GetColor(0x1E395B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(48, 0xE33991), factory.GetColor(180, 0xFFFFFF));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(190, 0xFAD8F0), Color.Empty);
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE33991), Color.Empty);
            rt.MouseOver.Text = factory.GetColor(0x1E395B);

            return rt;
        }
Beispiel #12
0
		/// <summary>
		/// Removes specified object from the collection.
		/// </summary>
		/// <param name="value"></param>
		public void Remove(Office2007RibbonTabItemColorTable value) 
		{
			List.Remove(value);
		}
Beispiel #13
0
		/// <summary>
		/// Returns whether collection contains specified object.
		/// </summary>
		/// <param name="value">Object to look for.</param>
		/// <returns>true if object is part of the collection, otherwise false.</returns>
		public bool Contains(Office2007RibbonTabItemColorTable value) 
		{
			return List.Contains(value);
		}
Beispiel #14
0
		/// <summary>
		/// Returns index of the object inside of the collection.
		/// </summary>
		/// <param name="value">Reference to the object.</param>
		/// <returns>Index of the object.</returns>
		public int IndexOf(Office2007RibbonTabItemColorTable value) 
		{
			return List.IndexOf(value);
		}
Beispiel #15
0
		/// <summary>
		/// Inserts new object into the collection.
		/// </summary>
		/// <param name="index">Position of the object.</param>
		/// <param name="value">Object to insert.</param>
		public void Insert(int index, Office2007RibbonTabItemColorTable value) 
		{
			List.Insert(index, value);
		}
Beispiel #16
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlackDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xEEEEEF), factory.GetColor(0xCED2D9));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF3F5F5), factory.GetColor(0xB8F6FC));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEBEBE), factory.GetColor(0xBEBEBE));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xEDEEEF), factory.GetColor(0xCACFD6));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(92, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFAEBC2), factory.GetColor(0xFFFFBD));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE8BB72), factory.GetColor(0xFED15E));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x949392), factory.GetColor(0x8E824F));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xEDC227), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x979695), factory.GetColor(0x93854D));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x969695), factory.GetColor(0xB0A986));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);

            return rt;
        }
Beispiel #17
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x333333);
            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xEBC7C7), factory.GetColor(0xF6DFDD));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF6E6E6), factory.GetColor(0xE6BBBB));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC3BCBC), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x333333);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFBDE9A), factory.GetColor(0xFDF1D4));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFAD57E), factory.GetColor(0xF8DC94));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xD7BC7D), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x333333);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xE1D5D9), factory.GetColor(0xE68985));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xE0D8DD), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE1D3D7), factory.GetColor(0xE78885));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBDBEC1), factory.GetColor(0xBEBEBE));
            rt.MouseOver.Text = factory.GetColor(0x333333);
            return rt;
        }
Beispiel #18
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlackMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);
            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xD4C8E2), factory.GetColor(0xEBE5F2));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE1D9EB), factory.GetColor(0xCDC2DF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBCB9C1), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xD4C8E2), factory.GetColor(0xEBE5F2));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC6B6D9), factory.GetColor(0xCDC2DF));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBCB9C1), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x8B8D91), factory.GetColor(0x7F7495));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0x89769D), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x8A8B8F), factory.GetColor(0x7F7495));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x99989A), factory.GetColor(0xA09EA2));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            return rt;
        }
Beispiel #19
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueMagenta(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x3B3B3B);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xF4DEEE), factory.GetColor(0xFEFEFE));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE088C0), factory.GetColor(0xDF6DAA));
            rt.Selected.Text = factory.GetColor(0x3B3B3B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xF4DEEE), factory.GetColor(0xFEFEFE));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE088C0), factory.GetColor(0xDF6DAA));
            rt.SelectedMouseOver.Text = factory.GetColor(0x3B3B3B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xEDB5D8), factory.GetColor(0xFCFBFB));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xFCFBFB), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF9D7EE), factory.GetColor(0xFDEDF8));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xE33991));
            rt.MouseOver.Text = factory.GetColor(0x3B3B3B);

            return rt;
        }
Beispiel #20
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlackGreen(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xC1E2B8), factory.GetColor(0xE3F1DD));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE4F3E0), factory.GetColor(0xB8DEB1));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB0C0AC), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xC1E2B8), factory.GetColor(0xE3F1DD));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xA4D496), factory.GetColor(0xB8DEB1));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB0C0AC), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x899087), factory.GetColor(0x659258));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0x6C9D5C), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x878C86), factory.GetColor(0x659257));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x979997), factory.GetColor(0x9DA39B));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            return rt;
        }
Beispiel #21
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueOrange(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x3B3B3B);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xFFF59F), factory.GetColor(0xFFFAD5));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFBD6), factory.GetColor(0xFDF28C));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xCAC7AC), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x3B3B3B);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFFF59F), factory.GetColor(0xFFFAD5));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFBD6), factory.GetColor(0xFDF28C));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xCAC7AC), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x3B3B3B);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCFE0E1), factory.GetColor(0xE9E799));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xCBE2FF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE2EFFF), factory.GetColor(0xC7DFFF));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC1C8D1), factory.GetColor(0xC0C7D0));
            rt.MouseOver.Text = factory.GetColor(0x3B3B3B);

            return rt;
        }
Beispiel #22
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlackOrange(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xFFF59F), factory.GetColor(0xFFFAD5));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFBD6), factory.GetColor(0xFCF395));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xCAC7AB), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFFF59F), factory.GetColor(0xFFFAD5));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFF071), factory.GetColor(0xFCF395));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xCAC7AB), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x929083), factory.GetColor(0xB6A933));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xC2B531), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x8F8D83), factory.GetColor(0xB1A433));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x9C9B96), factory.GetColor(0xBEBEBE));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);

            return rt;
        }
Beispiel #23
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueGreen(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x1B293E);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.Selected.InnerBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xEEF5FD), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x64BF5F), factory.GetColor(0x53C24E));
            rt.Selected.Text = factory.GetColor(0x1B293E);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCAD3E2));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.SelectedMouseOver.InnerBorder = LinearGradientColorTable.Empty; //new LinearGradientColorTable(factory.GetColor(0xEEF5FD), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x64BF5F), factory.GetColor(0x53C24E));
            rt.SelectedMouseOver.Text = factory.GetColor(0x1B293E);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(48, 0x26B023), factory.GetColor(180, 0xFFFFFF));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(190, 0xC8F8B1), Color.Empty);
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x26B023), Color.Empty);
            rt.MouseOver.Text = factory.GetColor(0x1B293E);

            return rt;
        }
Beispiel #24
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x2E2E2E);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xFEFEFE));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB6BABF), factory.GetColor(0xBABEC3));
            rt.Selected.Text = factory.GetColor(0x2E2E2E);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFFFFFF), factory.GetColor(0xFEFEFE));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB6BABF), factory.GetColor(0xBABEC3));
            rt.SelectedMouseOver.Text = factory.GetColor(0x2E2E2E);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xD9D9D9), factory.GetColor(0xFBFBFB));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF6F6F6), factory.GetColor(0xFBFBFB));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xB5B5B5), factory.GetColor(0xB1B5BA));
            rt.MouseOver.Text = factory.GetColor(0x2E2E2E);

            return rt;
        }
Beispiel #25
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemDefault(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.GlassText = factory.GetColor(0x000000);
            rt.Default.Text = factory.GetColor(0xFFFFFF);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xCFCFCF), factory.GetColor(0xC9C9C9));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x5E5E5E));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xCFCFCF), factory.GetColor(0xC9C9C9));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; //new LinearGradientColorTable(Color.FromArgb(32, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xFFFFFF));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x5E5E5E));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x8B8C8E), factory.GetColor(0x575757));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xB2B2B2), factory.GetColor(0xA4A4A4));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x5E5E5E));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            rt.MouseOver.GlassText = factory.GetColor(0x000000);

            return rt;
        }
Beispiel #26
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemGreen(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x333333);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xC1E2B8), factory.GetColor(0xE1F1DB));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE4F3E0), factory.GetColor(0xB8DEB1));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBEC2BD), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x333333);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFBDF9E), factory.GetColor(0xFDF1D4));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFDF2D5), factory.GetColor(0xF8D88A));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC7C1B2), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x333333);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xD8DFE1), factory.GetColor(0x9AC892));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xD9DEDF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xD8DFE1), factory.GetColor(0x9AC892));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBDBEC1), factory.GetColor(0xBEBEBE));
            rt.MouseOver.Text = factory.GetColor(0x333333);
            return rt;
        }
Beispiel #27
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemBlueGreen(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0xFFFFFF);
            rt.Default.GlassText = factory.GetColor(0x000000);
            rt.CornerSize = 2;

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xB0C0AC), factory.GetColor(0xC9C9C9));
            rt.Selected.BackgroundHighlight = LinearGradientColorTable.Empty;// new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x589D53), factory.GetColor(0x117311));
            rt.Selected.Text = factory.GetColor(0x000000);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xB0C0AC), factory.GetColor(0xC9C9C9));
            rt.SelectedMouseOver.BackgroundHighlight = LinearGradientColorTable.Empty;// new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xC8C7C8), Color.Transparent);
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x589D53), factory.GetColor(0x117311));
            rt.SelectedMouseOver.Text = factory.GetColor(0x000000);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0x84A47C), factory.GetColor(0x545A53));
            rt.MouseOver.BackgroundHighlight = LinearGradientColorTable.Empty; // new LinearGradientColorTable(factory.GetColor(0xDEECFF), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0x8DB482), factory.GetColor(0x7E9475));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0x007E00), factory.GetColor(0x007E00));
            rt.MouseOver.Text = factory.GetColor(0xFFFFFF);
            rt.MouseOver.GlassText = factory.GetColor(0x000000);

            return rt;
        }
Beispiel #28
0
        public static Office2007RibbonTabItemColorTable GetRibbonTabItemOrange(ColorFactory factory)
        {
            Office2007RibbonTabItemColorTable rt = new Office2007RibbonTabItemColorTable();
            rt.Default.Text = factory.GetColor(0x333333);

            // Selected Tab
            rt.Selected = new Office2007RibbonTabItemStateColorTable();
            rt.Selected.Background = new LinearGradientColorTable(factory.GetColor(0xFFF59F), factory.GetColor(0xFFFAD5));
            rt.Selected.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.Selected.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xFFFBD6), factory.GetColor(0xFDF28C));
            rt.Selected.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xC7C5B4), factory.GetColor(0xC2C2C2));
            rt.Selected.Text = factory.GetColor(0x333333);

            // Selected Tab Mouse Over
            rt.SelectedMouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.SelectedMouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xFBDE9A), factory.GetColor(0xFDF1D4));
            rt.SelectedMouseOver.BackgroundHighlight = new LinearGradientColorTable(Color.FromArgb(64, Color.White), Color.Transparent);
            rt.SelectedMouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xF9D276), factory.GetColor(0xF8D88A));
            rt.SelectedMouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xD7BC7D), factory.GetColor(0xC2C2C2));
            rt.SelectedMouseOver.Text = factory.GetColor(0x333333);

            // Tab Mouse Over
            rt.MouseOver = new Office2007RibbonTabItemStateColorTable();
            rt.MouseOver.Background = new LinearGradientColorTable(factory.GetColor(0xE0E1DC), factory.GetColor(0xB6A933));
            rt.MouseOver.BackgroundHighlight = new LinearGradientColorTable(factory.GetColor(0xE0E1DC), Color.Transparent);
            rt.MouseOver.InnerBorder = new LinearGradientColorTable(factory.GetColor(0xE0E1DC), factory.GetColor(0xEADF6D));
            rt.MouseOver.OuterBorder = new LinearGradientColorTable(factory.GetColor(0xBDBEC1), factory.GetColor(0xBDBEC1));
            rt.MouseOver.Text = factory.GetColor(0x333333);

            return rt;
        }
Beispiel #29
0
        internal static Office2007RibbonTabItemStateColorTable GetStateColorTable(Office2007RibbonTabItemColorTable tabColorTable, RibbonTabItem tab, bool ribbonExpanded)
        {
            if (tabColorTable == null)
                return null;

            Office2007RibbonTabItemStateColorTable stateColors = null;

            if (!tab.RenderTabState)
                stateColors = tabColorTable.Default;
            else if (tab.Checked && tab.IsMouseOver && ribbonExpanded)
                stateColors = tabColorTable.SelectedMouseOver;
            else if (tab.Checked && ribbonExpanded)
                stateColors = tabColorTable.Selected;
            else if (tab.IsMouseOver)
                stateColors = tabColorTable.MouseOver;
            else if (tab.GetEnabled())
                stateColors = tabColorTable.Default;

            return stateColors;
        }
Beispiel #30
0
		/// <summary>
		/// Copies contained items to the Office2007ButtonItemColorTable array.
		/// </summary>
		/// <param name="array">Array to copy to.</param>
		internal void CopyTo(Office2007RibbonTabItemColorTable[] array)
		{
			List.CopyTo(array,0);
		}