Ejemplo n.º 1
0
 public static Dictionary<string, ColorScheme> getSchemes(string path)
 {
     var rea = new Dictionary<String, ColorScheme>();
     var o = Directory.EnumerateFiles(path, "*.ufsxtheme");
     foreach (var item in o) {
         var a = new ColorScheme(item);
         rea.Add(a.Name, a);
     }
     return rea;
 }
Ejemplo n.º 2
0
 internal static void ApplyThemes(ColorScheme t)
 {
     if (t.Colors == null )
     {
         return;
     }
     SolidColorBrush a = null;
     foreach (string I in t.Colors.Keys)
     {
         a = new SolidColorBrush(t.Colors[I]);
         Application.Current.Resources[I] = a;
     }
 }