The thing with the folder is, it has sub folders for each module and the use. This makes it much easiert to change all Icons at once, if you want another set of Icons to change it by your own. For example, of changing it via a look and feel. And searching for all Icons. We don’t have a pain in the ass to find and figure out duplicated Icons. IMHO.
Cheers Chris Von: Antonio Gesendet: Montag, 8. April 2019 07:58 An: dev@netbeans.incubator.apache.org Betreff: Re: NetBeans GUI icons, who drew them? El 07/04/2019 a las 23:32, Wade Chandler escribió: > > I discourage such a merge where icons from various modules wind up inside a > single module. The module code itself still has to reference these things, > and as such now must touch more than one module just to add an image. Why > would I want N graphic files if I am using the platform but not the modules > which require the N graphics? I call that bloat. I think if we are having an > issue finding icons, and need a solution, we should solve that versus a giant > lump; it could be a module manifest marker or something similar. > Well, this can made optional. Many icons in NetBeans are retrieved using a simple String that is sent to ImageUtilities [1] in "openide.util.ui". This module in turn depends on "openide.util". We could define an "IconProvider" service interface API, responsible for finding icons by name. And then change ImageUtilities to lookup one (or more) IconProvider SPIs at runtime. When an icon is requested to ImageUtilities (by name) then let's send that request to all SPIs, and see if any returns a proper icon. So we end up with a set of pluggable "IconProvider"'s that people can extend to replace existing icons gradually, and modules won't have to be modified/refactored. Cheers, Antonio [1] https://github.com/apache/incubator-netbeans/blob/master/platform/openide.util.ui/src/org/openide/util/ImageUtilities.java --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists