Пример #1
0
 /// <summary>
 /// Raises the RenderArrow event.
 /// </summary>
 /// <param name="e">A ToolStripArrowRenderEventArgs that contains the event data.</param>
 protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e)
 {
     if ((ColorTable.UseSystemColors == false) && (this.UseNetProfessionalColors == false))
     {
         ProfessionalColorTable colorTable = ColorTable as ProfessionalColorTable;
         if (colorTable != null)
         {
             if ((e.Item.Owner.GetType() == typeof(MenuStrip)) && (e.Item.Selected == false) && e.Item.Pressed == false)
             {
                 if (colorTable.MenuItemText != Color.Empty)
                 {
                     e.ArrowColor = colorTable.MenuItemText;
                 }
             }
             if ((e.Item.Owner.GetType() == typeof(StatusStrip)) && (e.Item.Selected == false) && e.Item.Pressed == false)
             {
                 if (colorTable.StatusStripText != Color.Empty)
                 {
                     e.ArrowColor = colorTable.StatusStripText;
                 }
             }
         }
     }
     base.OnRenderArrow(e);
 }
Пример #2
0
 /// <summary>
 /// Raises the RenderItemText event.
 /// </summary>
 /// <param name="e">A ToolStripItemTextRenderEventArgs that contains the event data.</param>
 protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
 {
     if ((ColorTable.UseSystemColors == false) && (this.UseNetProfessionalColors == false))
     {
         ProfessionalColorTable colorTable = ColorTable as ProfessionalColorTable;
         if (colorTable != null)
         {
             if ((e.ToolStrip is MenuStrip) && (e.Item.Selected == false) && e.Item.Pressed == false)
             {
                 if (colorTable.MenuItemText != Color.Empty)
                 {
                     e.TextColor = colorTable.MenuItemText;
                 }
             }
             if ((e.ToolStrip is StatusStrip) && (e.Item.Selected == false) && e.Item.Pressed == false)
             {
                 if (colorTable.StatusStripText != Color.Empty)
                 {
                     e.TextColor = colorTable.StatusStripText;
                 }
             }
         }
     }
     base.OnRenderItemText(e);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Office2007Renderer class.
 /// </summary>
 /// <param name="professionalColorTable">A <see cref="BSE.Windows.Forms.ProfessionalColorTable"/> to be used for painting.</param>
 public Office2007FlatRenderer(ProfessionalColorTable professionalColorTable)
     : base(professionalColorTable)
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the AquaRenderer class.
 /// </summary>
 /// <param name="professionalColorTable">A <see cref="ProfessionalColorTable"/> to be used for painting.</param>
 public AquaRenderer(ProfessionalColorTable professionalColorTable)
     : base(professionalColorTable)
 {
 }