New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom icons #20
Comments
Hello, @montex12 Unfortunately, this will not be the easiest task at the moment. Everything rests on the fact that this library is based on the fact that all the icons are enum elements, and it will be difficult to just expand them. The only way I see - you could take code for Material.Icons, add enum element in MaterialIconEnum.cs, and data for it in MaterialIconDataProvider.PathData.cs, then build and plug dll locally. In theory, this could work. I've had a few thoughts on how to make this more extensible, but so far I don't think any of them will work. |
Could the We wouldn't be able to add new icons, but we could override existing icons. That would be sufficient for my needs. I am currently doing this using reflection:
|
Hm, nice suggestion, actually! I'll try to implement it on the weekend, or you can send a PR |
I would be happy to make a PR this weekend. |
Opened PR #27 |
Merged. Thanks. I'll publish as a new version a bit later. |
Hello, is it possible to add custom icons?
I have some SVG files that I would like to integrate in Material.Icons so I can use the same API for Material Icons and Custom Icons.
Thanks
The text was updated successfully, but these errors were encountered: