Exemplo n.º 1
0
 public static void LoadThemeEngine()
 {
     ProgressIndicator.OnCreate = ProgressIndicatorThemeHelper.ApplyTheme;
     if (File.Exists(Path.Combine(PluginPaths.InternalSystemConfigPath, "last_style.txt")))
     {
         string file = File.ReadAllText(
             Path.Combine(PluginPaths.InternalSystemConfigPath, "last_style.txt")
             );
         StyleManager.ApplyThemeFile(file);
     }
 }
Exemplo n.º 2
0
 private void btnLoadStyle_Click(object sender, EventArgs e)
 {
     if (cbStyle.SelectedIndex != -1)
     {
         StyleManager.ApplyThemeFile(
             Path.Combine(
                 StylePath,
                 cbStyle.SelectedItem + ".style"
                 )
             );
         File.WriteAllText(
             Path.Combine(PluginPaths.InternalSystemConfigPath, "last_style.txt"),
             Path.Combine(
                 StylePath,
                 cbStyle.SelectedItem + ".style"
                 )
             );
     }
 }