예제 #1
0
 public ArgbCollection(Argb background, Argb menuStrip, Argb cards, Argb font)
 {
     this.Background = background;
     this.MenuStrip  = menuStrip;
     this.Cards      = cards;
     this.Font       = font;
 }
예제 #2
0
        public static Argb FromColor(Color myColor)
        {
            // create Argb instance from color's argb values
            Argb myArgb = new Argb(myColor.A, myColor.R, myColor.G, myColor.B);

            return(myArgb);
        }
예제 #3
0
        static Themes()
        {
            // create light theme color scheme
            Argb lightBackground = new Argb(255, 240, 240, 240);
            Argb lightMenuStrip  = new Argb(255, 230, 230, 230);
            Argb lightCards      = new Argb(255, 225, 225, 225);
            Argb lightFont       = Argb.FromColor(Color.Black); // black font color

            Themes.Light = new ArgbCollection(lightBackground, lightMenuStrip, lightCards, lightFont);

            // create dark theme color scheme
            Argb darkBackground = new Argb(255, 45, 45, 45);
            Argb darkMenuStrip  = new Argb(255, 65, 65, 65);
            Argb darkCards      = new Argb(255, 80, 80, 80);
            Argb darkFont       = Argb.FromColor(Color.White); // white font color

            Themes.Dark = new ArgbCollection(darkBackground, darkMenuStrip, darkCards, darkFont);
        }