Esempio n. 1
0
        private static PaletteShade ToColor(PaletteShade input, PaletteShade defaultx)
        {
            return(new PaletteShade
            {
                X50 = input?.X50 ?? defaultx.X50,

                X100 = input?.X100 ?? defaultx.X100,

                X200 = input?.X200 ?? defaultx.X200,

                X300 = input?.X300 ?? defaultx.X300,

                X400 = input?.X400 ?? defaultx.X400,

                X500 = input?.X500 ?? defaultx.X500,

                X600 = input?.X600 ?? defaultx.X600,

                X700 = input?.X700 ?? defaultx.X700,

                X800 = input?.X800 ?? defaultx.X800,

                X900 = input?.X900 ?? defaultx.X900,

                A100 = input?.A100 ?? defaultx.A100,

                A200 = input?.A200 ?? defaultx.A200,

                A400 = input?.A400 ?? defaultx.A400,

                A700 = input?.A700 ?? defaultx.A700,
            });
        }
        public PaletteShade(PaletteShade color)
        {
            X50 = color.X50;

            X100 = color.X100;

            X200 = color.X200;

            X300 = color.X300;

            X400 = color.X400;

            X500 = color.X500;

            X600 = color.X600;

            X700 = color.X700;

            X800 = color.X800;

            X900 = color.X900;

            A100 = color.A100;

            A200 = color.A200;

            A400 = color.A400;

            A700 = color.A700;
        }
 public PaletteColorConfig(PaletteShade color) : base(color)
 {
 }