FWDekker / intellij-randomness

IntelliJ plugin for inserting random numbers, UUIDs, names, IP addresses, and much more
https://plugins.jetbrains.com/plugin/9836-randomness
MIT License
45 stars 7 forks source link

Use `IconManager` to reduce icon code #525

Closed FWDekker closed 8 months ago

FWDekker commented 8 months ago

A decent amount of code that I have written in Icons seems to already exist in IconManager, including but not limited to creating badges and layering icons on top of each other.

I should reduce the amount of code I have there by using the IconManager instead.

(e.g., I see now that I should use getIcon instead of findIcon so I can remove the unnecessary !! everywhere...)

FWDekker commented 8 months ago

Looking at it again, there's actually not that much that can be done right now. The whole BadgeIcon thing only supports showing a single coloured circle in the top-left, and is Internal. The rest isn't that interesting. Maybe in a future release.