コード例 #1
0
ファイル: EditorForm.cs プロジェクト: J723/Progetto-Editor
        private void chiaroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.BackColor = BGColorLight;

            txt_html.BackColor = TxtBoxColorLight;
            txt_html.ForeColor = TextColorBlack;

            txt_css.BackColor = TxtBoxColorLight;
            txt_css.ForeColor = TextColorBlack;

            menuStrip.ForeColor = TextColorBlack;

            setting = new DataColor("#ececec", "#fff", "#000", "#fff", "#000", "#fff", "#000");
        }
コード例 #2
0
ファイル: EditorForm.cs プロジェクト: J723/Progetto-Editor
        public void LoadSetting()
        {
            //prova a cercare delle preimpostazioni, se le trova le carica nello struct altrimenti lo inizializza con il tema scuro
            string[] data = new string[0];

            if (Source_Management.Resource_TryToReadLines(out data) && data.Length == 9)
            {
                setting = new DataColor(data[2], data[3], data[4], data[5], data[6], data[7], data[8]);
            }
            else
            {
                setting = new DataColor("#171616", "#272626", "#fff", "#272626", "#fff", "#fff", "#fff");
            }
        }
コード例 #3
0
ファイル: EditorForm.cs プロジェクト: J723/Progetto-Editor
        private void scuroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.BackColor = BGColorDark;

            txt_html.BackColor = TxtBoxColorDark;
            txt_html.ForeColor = TextColorWhite;

            txt_css.BackColor = TxtBoxColorDark;
            txt_css.ForeColor = TextColorWhite;


            menuStrip.ForeColor = TextColorWhite;

            setting = new DataColor("#171616", "#272626", "#fff", "#272626", "#fff", "#fff", "#fff");
        }
コード例 #4
0
        public EditorForm()
        {
            InitializeComponent();
            FM.ResourceInitialize();//inizializza il file di risorse

            //prova a cercare delle preimpostazioni, se le trova le carica nello struct
            List <string> data = new List <string>();

            if (FM.ResourceReading(out data) && data.Count == 7)
            {
                setting = new DataColor(data[1], data[2], data[3], data[4], data[5], data[6]);
            }
            else//imposta setting
            {
                setting = new DataColor("#171616", "#272626", "#fff", "#272626", "#fff", "#fff");
            }
        }
コード例 #5
0
        public PeresonalizationForm(DataColor setting)
        {
            InitializeComponent();

            this.BackColor = ColorTranslator.FromHtml(setting.Bg_Color);

            label1.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label1.Location  = new Point(((Width / 2) / 2) - (label1.Size.Width / 2), 50);

            label2.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label2.Location  = new Point(((Width / 2) / 2) - (label2.Size.Width / 2), 100);

            label3.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label3.Location  = new Point(((Width / 2) / 2) - (label3.Size.Width / 2), 150);

            btn_dialog.FlatStyle = FlatStyle.Flat;
            btn_dialog.BackColor = Color.Transparent;
            btn_dialog.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            btn_dialog.Size      = new Size(75, 30);
            btn_dialog.Location  = new Point((Width / 2) - 10, 45);

            btn_editor.FlatStyle = FlatStyle.Flat;
            btn_editor.BackColor = Color.Transparent;
            btn_editor.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            btn_editor.Size      = new Size(75, 30);
            btn_editor.Location  = new Point((Width / 2) - 10, 95);

            btn_character.FlatStyle = FlatStyle.Flat;
            btn_character.BackColor = Color.Transparent;
            btn_character.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            btn_character.Size      = new Size(75, 30);
            btn_character.Location  = new Point((Width / 2) - 10, 145);

            btn_save.FlatStyle = FlatStyle.Flat;
            btn_save.BackColor = Color.Transparent;
            btn_save.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            btn_save.Size      = new Size(150, 30);
            btn_save.Location  = new Point((Width / 2) - (btn_save.Size.Width / 2), 220);

            set = setting;
        }
コード例 #6
0
ファイル: SaveForm.cs プロジェクト: J723/Progetto-Editor
        public SaveForm(DataColor setting, bool newHtml) : this(setting)
        {
            label3.Visible         = false;
            txt_FolderName.Visible = false;

            if (newHtml)
            {
                txt_htmlName.Location = new Point((Width / 2) - 10, 100);
                label1.Location       = new Point(((Width / 2) / 2) - (label1.Size.Width / 2), 100);

                txt_cssName.Visible = false;
                label2.Visible      = false;
                type = 1;
            }
            else
            {
                txt_cssName.Location = new Point((Width / 2) - 10, 100);
                label2.Location      = new Point(((Width / 2) / 2) - (label2.Size.Width / 2), 100);

                txt_htmlName.Visible = false;
                label1.Visible       = false;
                type = 2;
            }
        }
コード例 #7
0
ファイル: SaveForm.cs プロジェクト: J723/Progetto-Editor
        public SaveForm(DataColor setting)
        {
            InitializeComponent();

            BackColor = ColorTranslator.FromHtml(setting.Bg_Color);

            label3.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label3.Location  = new Point(((Width / 2) / 2) - (label3.Size.Width / 2), 99);

            label1.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label1.Location  = new Point(((Width / 2) / 2) - (label1.Size.Width / 2), 66);

            label2.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            label2.Location  = new Point(((Width / 2) / 2) - (label2.Size.Width / 2), 99);

            txt_htmlName.BackColor   = ColorTranslator.FromHtml(setting.html_BgColor);
            txt_htmlName.ForeColor   = ColorTranslator.FromHtml(setting.html_ForeColor);
            txt_htmlName.Location    = new Point((Width / 2) - 10, 66);
            txt_htmlName.BorderStyle = BorderStyle.None;

            txt_cssName.BackColor   = ColorTranslator.FromHtml(setting.css_BgColor);
            txt_cssName.ForeColor   = ColorTranslator.FromHtml(setting.css_ForeColor);
            txt_cssName.Location    = new Point((Width / 2) - 10, 99);
            txt_cssName.BorderStyle = BorderStyle.None;

            txt_FolderName.BackColor   = ColorTranslator.FromHtml(setting.css_BgColor);
            txt_FolderName.ForeColor   = ColorTranslator.FromHtml(setting.css_ForeColor);
            txt_FolderName.Location    = new Point((Width / 2) - 10, 33);
            txt_FolderName.BorderStyle = BorderStyle.None;

            btn_save.FlatStyle = FlatStyle.Flat;
            btn_save.BackColor = Color.Transparent;
            btn_save.ForeColor = ColorTranslator.FromHtml(setting.txt_ForeColor);
            btn_save.Size      = new Size(150, 30);
            btn_save.Location  = new Point((Width / 2) - (btn_save.Size.Width / 2), 220);
        }