Ejemplo n.º 1
0
        public static ColorSettings FromFile(string file)
        {
            ColorSettings c = new ColorSettings();

            if (!Common.ReadFromXML(ref c, file))
            {
                c = ColorSettings.Dark();
            }
            return(c);
        }
Ejemplo n.º 2
0
        public static ColorSettings Dark()
        {
            ColorSettings c = new ColorSettings();

            c.xMainClientArea = 0xff112233;
            // c.xMainClientArea = 0xffff0000;
            c.xTopbarBackground        = 0xff444444;
            c.xControlButtonOver       = 0xff777777;
            c.xControlButtonBackground = 0xff555555;
            c.xControlButtonForeground = 0xffdddd00;
            c.xControlButtonPressed    = 0xff777777;
            c.xStatusBarBackGround     = 0xffccccff;
            c.xStatusBarTextForeground = 0xffffffff;
            c.xMainWindowBorderColor   = 0xff0000ff;
            c.xMenuForeground          = 0xffffff00;
            c.xMenuBackground          = 0xff444444;
            c.xMenuItemForeground      = 0xffffffff;
            c.xMenuItemBackground      = 0xff444444;
            return(c);
        }
Ejemplo n.º 3
0
        public static ColorSettings Light()
        {
            ColorSettings c = new ColorSettings();

            c.xMainClientArea          = 0;
            c.xTopbarBackground        = 0;
            c.xControlButtonOver       = 0;
            c.xControlButtonBackground = 0;
            c.xControlButtonForeground = 0;
            c.xControlButtonPressed    = 0;
            c.xStatusBarBackGround     = 0;
            c.xStatusBarTextForeground = 0;
            c.xMainWindowBorderColor   = 0;
            c.xMenuForeground          = 0;
            c.xMenuBackground          = 0;
            c.xMenuItemForeground      = 0;
            c.xMenuItemBackground      = 0;

            return(c);
        }
Ejemplo n.º 4
0
 public void SaveColors(ColorSettings c, string file)
 {
     Common.WriteToXML(c, file);
 }