예제 #1
0
        private static Iconset?ProcessIconset(Iconset iconset)
        {
            Console.WriteLine($"Processing {iconset.Name}");

            var path = $"{iconset.Directory}";

            if (!Directory.Exists(path))
            {
                Console.WriteLine($"{iconset.Name} - {path} not found");
                return(iconset);
            }

            var files = Directory.GetFiles(path, "*.svg");
            var icons = iconset.Multipath ? files.Select(GetMultiPathSvgIcon) : files.Select(GetSinglePathSvgIcon);

            iconset.Icons = icons.ToList().FilterNulls();

            return(iconset);
        }
예제 #2
0
 public IconConfig()
 {
     Iconsets   = new Iconset[0];
     OutputPath = "js";
 }