On 9/19/20 2:42 AM, Jaroslav Tulach wrote:
Dne pátek 18. září 2020 18:54:35 CEST, Neil C Smith napsal(a):
2. Add some API around the icon names, so the place of the usage would
be decoupled from the place of the storage.
Some time ago I wanted to add an API that allowed for pluggable
API. Let me know what you have one. Don't forget NetBeans is supposed to be
modular. Not by cluster, but by each module. Try to not over design, please.
Well, I do not have anything solid in my mind one or two methods or an
interface/static class with some constant and a spec like the one Neil
mentioned:
https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
Otherwise we end up with `SVGLoader` (plus enormous amount of currently
useless Batik libraries) without any SVG icon to render[1]!
People say that it doesn't make sense to create an API unless there are at
least three usages. I'd suggest to create hundred SVG icons first, render them
and then, based on the experience, try to design some API.
The idea of having an icon pack module per cluster is actually coming
from the time when I was developing my Gradle plugin outside of
NetBeans. I wished, that I could depend on some module which has
standard icons, for wait, options, restart, javadoc, artifacts, etc.
For example we have 28, hopefully the same, wait.gif in our current
codebase (also there is 4 incarnation of a wait.png)
So I think the need of some kind of API is there.
I know redrawing icons is no fun, and creating fancy new ideas feel som much
better. But, dear like to be architects, somebody has to do the real work!
-jt
That's also true. Unfortunately I can't contribute graphics to the
cause. I do, what I can do in my humble ways, sharing my insights.
[1] I beg your pardon, there are four(!) SVG icons!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists