Example #1
0
        private void Stylize()
        {
            if (!System.IO.Directory.Exists(WindowColors.ColorSettingsFolderPath))
            {
                System.IO.Directory.CreateDirectory(WindowColors.ColorSettingsFolderPath);
                foreach (KeyValuePair <string, WindowColors.DefaultColors.DefaultColor> color in WindowColors.DefaultColors.AllDefaultColors)
                {
                    string path = WindowColors.ColorSettingsFolderPath + $"\\{color.Key}.fxcol";
                    WindowColors.SetColorsToXml(path, color.Value);
                }
            }

            Color BorderColor = Color.Black;

            this.save_textBox.ForeColor = Color.Black;

            this.file_list_box.BorderStyle = BorderStyle.FixedSingle;

            this.browse_button.FlatStyle = FlatStyle.Flat;
            this.browse_button.FlatAppearance.BorderColor = BorderColor;
            this.browse_button.FlatAppearance.BorderSize  = 1;

            this.choose_button.FlatStyle = FlatStyle.Flat;
            this.choose_button.FlatAppearance.BorderColor = BorderColor;
            this.choose_button.FlatAppearance.BorderSize  = 1;

            this.clear_button.FlatStyle = FlatStyle.Flat;
            this.clear_button.FlatAppearance.BorderColor = BorderColor;
            this.clear_button.FlatAppearance.BorderSize  = 1;

            this.close_button.FlatStyle = FlatStyle.Flat;
            this.close_button.FlatAppearance.BorderColor = BorderColor;
            this.close_button.FlatAppearance.BorderSize  = 1;

            this.down_button.FlatStyle = FlatStyle.Flat;
            this.down_button.FlatAppearance.BorderColor = BorderColor;
            this.down_button.FlatAppearance.BorderSize  = 1;

            this.duplicate_button.FlatStyle = FlatStyle.Flat;
            this.duplicate_button.FlatAppearance.BorderColor = BorderColor;
            this.duplicate_button.FlatAppearance.BorderSize  = 1;

            this.start_button.FlatStyle = FlatStyle.Flat;
            this.start_button.FlatAppearance.BorderColor = BorderColor;
            this.start_button.FlatAppearance.BorderSize  = 1;

            this.up_button.FlatStyle = FlatStyle.Flat;
            this.up_button.FlatAppearance.BorderColor = BorderColor;
            this.up_button.FlatAppearance.BorderSize  = 1;

            this.save_textBox.ForeColor   = BorderColor;
            this.save_textBox.BorderStyle = BorderStyle.FixedSingle;


            UpdateLoadToolStripMenuItems();
        }
Example #2
0
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog save = WindowColors.SaveColorDialogWithoutShow();

            if (save.ShowDialog() == DialogResult.OK)
            {
                WindowColors.SetColorsToXml(save.FileName);
            }
            UpdateLoadToolStripMenuItems();
        }