Exemple #1
0
 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);
 }
Exemple #2
0
 private void LoadColorTheme(ColorTheme t)
 {
     panel1.BackColor = t.GetColor("script-editor/background");
     panel1.ForeColor = t.GetColor("script-editor/foreground");
     panel1.Controls.Remove(cmbFunctions);
     cmbFunctions = t.GetComboBox("script-editor/combo-functions", cmbFunctions);
     panel1.Controls.Add(cmbFunctions);
     cmbFunctions.SelectedIndexChanged += cmbFunctions_SelectedIndexChanged;
     cmbFunctions.MouseEnter           += cmbFunctions_MouseEnter;
     cmbFunctions.MouseLeave           += cmbFunctions_MouseLeave;
 }
Exemple #3
0
 private void LoadColorTheme(ColorTheme t)
 {
     Controls.Remove(propertyObjectCombo);
     propertyObjectCombo = t.GetComboBox("properties-panel/combobox", propertyObjectCombo);
     Controls.Add(propertyObjectCombo);
     propertiesGrid.BackColor         = t.GetColor("properties-panel/grid/background");
     propertiesGrid.ViewBackColor     = t.GetColor("properties-panel/grid/view/background");
     propertiesGrid.ViewForeColor     = t.GetColor("properties-panel/grid/view/foreground");
     propertiesGrid.LineColor         = t.GetColor("properties-panel/grid/line");
     propertiesGrid.CategoryForeColor = t.GetColor("properties-panel/grid/category");
     propertiesGrid.HelpBackColor     = t.GetColor("properties-panel/grid/help/background");
     propertiesGrid.HelpForeColor     = t.GetColor("properties-panel/grid/help/foreground");
 }