Пример #1
0
 public static void SwitchTheme(MetroFramework.MetroThemeStyle theme)
 {
     Globals.MainForm.OptionsFile.Theme = theme;
     Globals.MainForm.ApplyStyle();
     foreach (MonoEditForm f in Globals.MainForm.Forms)
     {
         f.ApplyStyle();
     }
 }
Пример #2
0
        private void MetroComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (metroComboBox1.SelectedIndex)
            {
            case 0:
                metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;
                Estilo = MetroFramework.MetroThemeStyle.Dark;
                break;

            case 1:
                metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Light;
                Estilo = MetroFramework.MetroThemeStyle.Light;
                break;
            }
        }
 private void InitializeUIThemeComboBox(MetroFramework.MetroThemeStyle themeId)
 {
     LoadUIThemeComboBox(comboBoxUITheme, (int)themeId);
 }
 public MetroCTXRenderer(MetroFramework.MetroThemeStyle Theme, MetroColorStyle Style) : base(new contextcolors(Theme, Style)) 
 {
     _theme = Theme;
 }
 public Contextcolors(MetroFramework.MetroThemeStyle Theme, MetroColorStyle Style)
 {
     _theme = Theme;
     _style = Style;
 }
 public MetroCTXRenderer(MetroFramework.MetroThemeStyle Theme, MetroColorStyle Style) : base(new Contextcolors(Theme, Style))
 {
     _theme = Theme;
 }