private void LoadColorTheme(ColorTheme t) { btnNewFrame.BackColor = t.GetColor("view-editor/btn-new-frame/background"); btnNewFrame.ForeColor = t.GetColor("view-editor/btn-new-frame/foreground"); btnNewFrame.FlatStyle = (FlatStyle)t.GetInt("view-editor/btn-new-frame/flat/style"); btnNewFrame.FlatAppearance.BorderSize = t.GetInt("view-editor/btn-new-frame/flat/border/size"); btnNewFrame.FlatAppearance.BorderColor = t.GetColor("view-editor/btn-new-frame/flat/border/color"); }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("font-editor/background"); ForeColor = t.GetColor("font-editor/foreground"); currentItemGroupBox.BackColor = t.GetColor("font-editor/box/background"); currentItemGroupBox.ForeColor = t.GetColor("font-editor/box/foreground"); btnImportFont.BackColor = t.GetColor("font-editor/btn-import/background"); btnImportFont.ForeColor = t.GetColor("font-editor/btn-import/foreground"); btnImportFont.FlatStyle = (FlatStyle)t.GetInt("font-editor/btn-import/flat/style"); btnImportFont.FlatAppearance.BorderSize = t.GetInt("font-editor/btn-import/flat/border/size"); btnImportFont.FlatAppearance.BorderColor = t.GetColor("font-editor/btn-import/flat/border/color"); }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("character-editor/background"); ForeColor = t.GetColor("character-editor/foreground"); groupBox1.BackColor = t.GetColor("character-editor/box/background"); groupBox1.ForeColor = t.GetColor("character-editor/box/foreground"); btnMakePlayer.BackColor = t.GetColor("character-editor/btn-make/background"); btnMakePlayer.ForeColor = t.GetColor("character-editor/btn-make/foreground"); btnMakePlayer.FlatStyle = (FlatStyle)t.GetInt("character-editor/btn-make/flat/style"); btnMakePlayer.FlatAppearance.BorderSize = t.GetInt("character-editor/btn-make/flat/border/size"); btnMakePlayer.FlatAppearance.BorderColor = t.GetColor("character-editor/btn-make/flat/border/color"); }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("dialog-editor/background"); ForeColor = t.GetColor("dialog-editor/foreground"); btnDeleteOption.BackColor = t.GetColor("dialog-editor/btn-delete-option/background"); btnDeleteOption.ForeColor = t.GetColor("dialog-editor/btn-delete-option/foreground"); btnDeleteOption.FlatStyle = (FlatStyle)t.GetInt("dialog-editor/btn-delete-option/flat/style"); btnDeleteOption.FlatAppearance.BorderSize = t.GetInt("dialog-editor/btn-delete-option/flat/border/size"); btnDeleteOption.FlatAppearance.BorderColor = t.GetColor("dialog-editor/btn-delete-option/flat/border/color"); btnNewOption.BackColor = t.GetColor("dialog-editor/btn-new-option/background"); btnNewOption.ForeColor = t.GetColor("dialog-editor/btn-new-option/foreground"); btnNewOption.FlatStyle = (FlatStyle)t.GetInt("dialog-editor/btn-new-option/flat/style"); btnNewOption.FlatAppearance.BorderSize = t.GetInt("dialog-editor/btn-new-option/flat/border/size"); btnNewOption.FlatAppearance.BorderColor = t.GetColor("dialog-editor/btn-new-option/flat/border/color"); }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("room-editor/background"); ForeColor = t.GetColor("room-editor/foreground"); mainFrame.BackColor = t.GetColor("room-editor/box/background"); mainFrame.ForeColor = t.GetColor("room-editor/box/foreground"); bufferedPanel1.BackColor = mainFrame.BackColor; bufferedPanel1.ForeColor = mainFrame.ForeColor; btnChangeImage.BackColor = t.GetColor("room-editor/btn-change-image/background"); btnChangeImage.ForeColor = t.GetColor("room-editor/btn-change-image/foreground"); btnChangeImage.FlatStyle = (FlatStyle)t.GetInt("room-editor/btn-change-image/flat/style"); btnChangeImage.FlatAppearance.BorderSize = t.GetInt("room-editor/btn-change-image/flat/border/size"); btnChangeImage.FlatAppearance.BorderColor = t.GetColor("room-editor/btn-change-image/flat/border/color"); btnDelete.BackColor = t.GetColor("room-editor/btn-delete/background"); btnDelete.ForeColor = t.GetColor("room-editor/btn-delete/foreground"); btnDelete.FlatStyle = (FlatStyle)t.GetInt("room-editor/btn-delete/flat/style"); btnDelete.FlatAppearance.BorderSize = t.GetInt("room-editor/btn-delete/flat/border/size"); btnDelete.FlatAppearance.BorderColor = t.GetColor("room-editor/btn-delete/flat/border/color"); btnExport.BackColor = t.GetColor("room-editor/btn-export/background"); btnExport.ForeColor = t.GetColor("room-editor/btn-export/foreground"); btnExport.FlatStyle = (FlatStyle)t.GetInt("room-editor/btn-export/flat/style"); btnExport.FlatAppearance.BorderSize = t.GetInt("room-editor/btn-export/flat/border/size"); btnExport.FlatAppearance.BorderColor = t.GetColor("room-editor/btn-export/flat/border/color"); _editAddressBar.BackColor = t.GetColor("room-editor/combo-view-type/background"); _editAddressBar.ForeColor = t.GetColor("room-editor/combo-view-type/foreground"); _editAddressBar.DropDownBackColor = t.GetColor("room-editor/combo-view-type/drop-down/background"); _editAddressBar.DropDownForeColor = t.GetColor("room-editor/combo-view-type/drop-down/foreground"); mainFrame.Controls.Remove(cmbBackgrounds); cmbBackgrounds = t.GetComboBox("room-editor/combo-backgrounds", cmbBackgrounds); cmbBackgrounds.SelectedIndexChanged += cmbBackgrounds_SelectedIndexChanged; mainFrame.Controls.Add(cmbBackgrounds); }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("palette/background"); ForeColor = t.GetColor("palette/foreground"); colourFinderPage.BackColor = t.GetColor("palette/color-finder/background"); colourFinderPage.ForeColor = t.GetColor("palette/color-finder/foreground"); palettePage.BackColor = t.GetColor("palette/palette-page/background"); palettePage.ForeColor = t.GetColor("palette/palette-page/foreground"); groupBox1.BackColor = t.GetColor("palette/color-finder/background"); groupBox1.ForeColor = t.GetColor("palette/color-finder/foreground"); txtColourNumber.BackColor = t.GetColor("palette/color-finder/color-number-box/background"); txtColourNumber.ForeColor = t.GetColor("palette/color-finder/color-number-box/foreground"); txtColourNumber.BorderStyle = (BorderStyle)t.GetInt("palette/color-finder/color-number-box/border-style"); btnColorDialog.BackColor = t.GetColor("palette/color-finder/btn-color-dialog/background"); btnColorDialog.ForeColor = t.GetColor("palette/color-finder/btn-color-dialog/foreground"); btnColorDialog.FlatStyle = (FlatStyle)t.GetInt("palette/color-finder/btn-color-dialog/flat/style"); btnColorDialog.FlatAppearance.BorderSize = t.GetInt("palette/color-finder/btn-color-dialog/flat/border/size"); btnColorDialog.FlatAppearance.BorderColor = t.GetColor("palette/color-finder/btn-color-dialog/flat/border/color"); groupBox2.BackColor = t.GetColor("palette/palette-page/background"); groupBox2.ForeColor = t.GetColor("palette/palette-page/foreground"); tabControl.DrawMode = (TabDrawMode)t.GetInt("palette/draw-mode"); tabControl.DrawItem += (s, a) => { if (a.Index == tabControl.SelectedIndex) { a.Graphics.FillRectangle(new SolidBrush(t.GetColor("palette/draw-item/background/selected")), a.Bounds); } else { a.Graphics.Clear(t.GetColor("palette/draw-item/background/not-selected")); } TabPage tab = tabControl.TabPages[a.Index]; a.Graphics.DrawString(tab.Text, tab.Font, new SolidBrush(t.GetColor("palette/draw-item/foreground")), a.Bounds.X, a.Bounds.Y + 5); }; }
public void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("lip-sync-editor/background"); ForeColor = t.GetColor("lip-sync-editor/foreground"); foreach (Control control in Controls) { TextBox textBox = control as TextBox; if (textBox != null) { textBox.BackColor = t.GetColor("lip-sync-editor/text-boxes/background"); textBox.ForeColor = t.GetColor("lip-sync-editor/text-boxes/foreground"); textBox.BorderStyle = (BorderStyle)t.GetInt("lip-sync-editor/text-boxes/border-style"); } } }
private void LoadColorTheme(ColorTheme t) { lvwResults.BackColor = t.GetColor("find-results-panel/background"); lvwResults.ForeColor = t.GetColor("find-results-panel/foreground"); lvwResults.OwnerDraw = t.GetBool("find-results-panel/owner-draw"); lvwResults.GridLines = t.GetBool("find-results-panel/grid-lines"); lvwResults.Layout += (s, a) => { lvwResults.Columns[lvwResults.Columns.Count - 1].Width = t.GetInt("find-results-panel/last-column-width"); }; lvwResults.DrawItem += (s, a) => a.DrawDefault = t.GetBool("find-results-panel/draw-item"); lvwResults.DrawSubItem += (s, a) => a.DrawDefault = t.GetBool("find-results-panel/draw-sub-item"); lvwResults.DrawColumnHeader += (s, a) => { a.Graphics.FillRectangle(new SolidBrush(t.GetColor("find-results-panel/column-header/background")), a.Bounds); a.Graphics.DrawString(a.Header.Text, lvwResults.Font, new SolidBrush(t.GetColor("find-results-panel/column-header/foreground")), a.Bounds.X + 5, a.Bounds.Y + a.Bounds.Size.Height / 5); a.Graphics.DrawRectangle(new Pen(new SolidBrush(t.GetColor("find-results-panel/column-header/border"))), a.Bounds.X - 1, a.Bounds.Y - 1, a.Bounds.Size.Width, a.Bounds.Size.Height); }; }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("global-variables-editor/background"); ForeColor = t.GetColor("global-variables-editor/foreground"); mainFrame.BackColor = t.GetColor("global-variables-editor/box/background"); mainFrame.ForeColor = t.GetColor("global-variables-editor/box/foreground"); lvwWords.BackColor = t.GetColor("global-variables-editor/list/background"); lvwWords.ForeColor = t.GetColor("global-variables-editor/list/foreground"); lvwWords.OwnerDraw = t.GetBool("global-variables-editor/list/owner-draw"); lvwWords.GridLines = t.GetBool("global-variables-editor/list/grid-lines"); lvwWords.Layout += (s, a) => { lvwWords.Columns[lvwWords.Columns.Count - 1].Width = t.GetInt("global-variables-editor/list/last-column-width"); }; lvwWords.DrawItem += (s, a) => a.DrawDefault = t.GetBool("global-variables-editor/list/draw-item"); lvwWords.DrawSubItem += (s, a) => a.DrawDefault = t.GetBool("global-variables-editor/list/draw-sub-item"); lvwWords.DrawColumnHeader += (s, a) => { a.Graphics.FillRectangle(new SolidBrush(t.GetColor("global-variables-editor/list/column-header/background")), a.Bounds); a.Graphics.DrawString(a.Header.Text, lvwWords.Font, new SolidBrush(t.GetColor("global-variables-editor/list/column-header/foreground")), a.Bounds.X + 5, a.Bounds.Y + a.Bounds.Size.Height / 5); a.Graphics.DrawRectangle(new Pen(new SolidBrush(t.GetColor("global-variables-editor/list/column-header/border"))), a.Bounds.X - 1, a.Bounds.Y - 1, a.Bounds.Size.Width, a.Bounds.Size.Height); }; }
private void LoadColorTheme(ColorTheme t) { BackColor = t.GetColor("audio-editor/background"); ForeColor = t.GetColor("audio-editor/foreground"); grpAudioType.BackColor = t.GetColor("audio-editor/audio-type/background"); grpAudioType.ForeColor = t.GetColor("audio-editor/audio-type/foreground"); grpAudioClip.BackColor = t.GetColor("audio-editor/audio-clip-box/background"); grpAudioClip.ForeColor = t.GetColor("audio-editor/audio-clip-box/foreground"); btnPlay.BackColor = t.GetColor("audio-editor/btn-play/background"); btnPlay.ForeColor = t.GetColor("audio-editor/btn-play/foreground"); btnPlay.FlatStyle = (FlatStyle)t.GetInt("audio-editor/btn-play/flat/style"); btnPlay.FlatAppearance.BorderSize = t.GetInt("audio-editor/btn-play/flat/border/size"); btnPlay.FlatAppearance.BorderColor = t.GetColor("audio-editor/btn-play/flat/border/color"); btnPause.BackColor = t.GetColor("audio-editor/btn-pause/background"); btnPause.ForeColor = t.GetColor("audio-editor/btn-pause/foreground"); btnPause.FlatStyle = (FlatStyle)t.GetInt("audio-editor/btn-pause/flat/style"); btnPause.FlatAppearance.BorderSize = t.GetInt("audio-editor/btn-pause/flat/border/size"); btnPause.FlatAppearance.BorderColor = t.GetColor("audio-editor/btn-pause/flat/border/color"); btnStop.BackColor = t.GetColor("audio-editor/btn-stop/background"); btnStop.ForeColor = t.GetColor("audio-editor/btn-stop/foreground"); btnStop.FlatStyle = (FlatStyle)t.GetInt("audio-editor/btn-stop/flat/style"); btnStop.FlatAppearance.BorderSize = t.GetInt("audio-editor/btn-stop/flat/border/size"); btnStop.FlatAppearance.BorderColor = t.GetColor("audio-editor/btn-stop/flat/border/color"); }