Ejemplo n.º 1
0
        /// <summary>
        /// Get modern style brush.
        /// </summary>
        /// <param name="colorStyle">Modern color style.</param>
        /// <returns>SolidBrush instance.</returns>
        public static SolidBrush GetStyleBrush(ModernColorStyle colorStyle)
        {
            switch (colorStyle)
            {
            case ModernColorStyle.Black:
                return(ModernBrushes.Black);

            case ModernColorStyle.White:
                return(ModernBrushes.White);

            case ModernColorStyle.Silver:
                return(ModernBrushes.Silver);

            case ModernColorStyle.Blue:
                return(ModernBrushes.Blue);

            case ModernColorStyle.Green:
                return(ModernBrushes.Green);

            case ModernColorStyle.Lime:
                return(ModernBrushes.Lime);

            case ModernColorStyle.Teal:
                return(ModernBrushes.Teal);

            case ModernColorStyle.Orange:
                return(ModernBrushes.Orange);

            case ModernColorStyle.Brown:
                return(ModernBrushes.Brown);

            case ModernColorStyle.Pink:
                return(ModernBrushes.Pink);

            case ModernColorStyle.Magenta:
                return(ModernBrushes.Magenta);

            case ModernColorStyle.Purple:
                return(ModernBrushes.Purple);

            case ModernColorStyle.Red:
                return(ModernBrushes.Red);

            case ModernColorStyle.Yellow:
                return(ModernBrushes.Yellow);

            default:
                return(ModernBrushes.Blue);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContextColors"/> class.
 /// </summary>
 /// <param name="themeStyle">Modern theme style.</param>
 /// <param name="colorStyle">Modern color style.</param>
 public ContextColors(ModernThemeStyle themeStyle, ModernColorStyle colorStyle)
 {
     this._modernThemeStyle = themeStyle;
     this._modernColorStyle = colorStyle;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModernToolStripRenderer"/> class.
 /// </summary>
 /// <param name="themeStyle">Modern theme style.</param>
 /// <param name="colorStyle">Modern color style.</param>
 public ModernToolStripRenderer(ModernThemeStyle themeStyle, ModernColorStyle colorStyle)
     : base(new ContextColors(themeStyle, colorStyle))
 {
 }