private void themeComboBox_SelectedIndexChanged(object sender, EventArgs e) { MetroThemeStyle newTheme = (MetroThemeStyle)themeComboBox.SelectedItem; AppearanceManager.SetThemeOnForms(newTheme, this, _shellForm); AppearanceManager.SaveSettings(_shellForm.BaseMetroStyleManager); }
private void styleButton_Click(object sender, EventArgs e) { MetroColorStyle?style = AppearanceManager.ConvertStyleToColor(((Button)sender).BackColor); if (style != null) { AppearanceManager.SetStyleOnForms(style.Value, this, _shellForm); AppearanceManager.SaveSettings(_shellForm.BaseMetroStyleManager); } }