Ejemplo n.º 1
0
        /// <summary>
        /// Gets the set of colors.
        /// </summary>
        /// <param name="preset">The preset.</param>
        /// <returns></returns>
        /// <exception cref="System.ArgumentOutOfRangeException"></exception>
        public static List <String> getSetOfColors(this aceBaseColorSetEnum preset)
        {
            List <String> output = new List <string>();

            switch (preset)
            {
            case aceBaseColorSetEnum.aceBrightAndStrong:
                output.AddMultiline(@"#FF8DD6D7
#FFFF8B43
#FFD78DD6
#FF88AFFE
#FF75FFAA
#FFE79799
");
                break;

            case aceBaseColorSetEnum.aceCompany:
                output.AddMultiline(@"#FF5BBBBE
#FFBE5BBB
#FFAA8FD2
#FFB3B3C1
#FFA3D28F
#FFE79899
");
                break;

            case aceBaseColorSetEnum.imbScience:
                output.AddMultiline(@"#FFB0DB24
#FF46C5EC
#FFADC694
#FF94ADC6
#FF99DEDD
#FFCBDCCB");

                break;

            case aceBaseColorSetEnum.imbSemantics:
                output.AddMultiline(@"#FF76FEB8
#FF28B3E6
#FFFE76DA
#FF8FA3D2
#FFA3D28F
#FFAA8FD2
");
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            return(output);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="styleTheme"/> class.
        /// </summary>
        /// <param name="h1Size">Size of the h1.</param>
        /// <param name="pSize">Size of the p.</param>
        /// <param name="margin">The margin.</param>
        /// <param name="padding">The padding.</param>
        /// <param name="pageFontName">Name of the page font.</param>
        /// <param name="headingFontName">Name of the heading font.</param>
        public styleTheme(aceBaseColorSetEnum colorSet, Int32 h1Size, Int32 pSize, fourSideSetting margin, fourSideSetting padding,
                          aceFont pageFontName, aceFont headingFontName = aceFont.none)
        {
            palletes = new acePaletteProvider(colorSet.getSetOfColors());

            textShotProvider       = new styleTextShotProvider(this);
            styleContainerProvider = new styleContainerShotProvider(this);
            borderProvider         = new styleBorderProvider(this);
            styler = new stylerForRange(this);

            zoneMain = new cursorZone(80, 2, 2);
            cMain    = new cursor(zoneMain, textCursorMode.scroll, textCursorZone.innerZone, "themeCursor");

            body = new stylePage();
            //body.maxSize

            fontForText     = new styleTextFont(pageFontName);
            fontForHeadings = new styleTextFont(headingFontName);
            fontSize        = new styleTextSizeSet(h1Size, pSize, margin, padding);
        }