-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automatically build source SVG icons to PNG for GAMA interface usage #5
Comments
Actually the most useful link is: https://github.com/eclipse-platform/eclipse.platform.images (contains the Maven Mojos that can be triggered). |
I have committed a first batch of icons produced using an algorithm similar to the one used in the link above (passing |
This workflow can be triggered either Manually or when a commit modify ummisco.gama.ui.shared/svg folder It uses eclipse-platform/eclipse.platform.images to generate every svg icons used in GAMA and deploy them in needed places in the repository (this generation is outside the JAVA project source, therefore the batik library isn't needed for that in the project) Doesn't do anything yet as it's a WIP, feel free to trigger it at your will for testing Related #3647
Hi @AlexisDrogoul ! I have a first step to generate icons from SVG inside GAMA 🥳 It's an automatic workflow triggered when editing files in I haven't finished and enabled this workflow (doesn't commit anything yet) as I noticed some issues :
|
disabled icons are produced on the fly. And it seems that the original eclipse images jar is a bit too sensitive to SVG peculiarities. I wonder if we should not produce our own independent jar that would include GamaIconsLoader and its dependencies. Should probably be reworked a bit (with files operations rather than bundle operations, etc.) but it would probably be safer. What do you think ? I could maybe try this and produce either a Mojo or a main... |
I am producing a version of |
- no dependencies towards GAMA and/or SWT / Eclipse - can be run inside a jar - a simple main() has been implemented
Hi, 2 points/questions on this :
|
EDIT: I forgot to commit the last changes -- I do it now. Hi,
Alex |
After that, to be totally honest, there are some issues (one open, gama-platform/gama2#27 and several closed, e.g. gama-platform/gama#1487, gama-platform/gama#1119) that require a better support of SVG in GAMA, and I suspect Batik would be the best library to do so... |
I can see the interest of having better SVG support in GAMA, but (at least for the still open issue), it doesn't seem to be target for the next release but for the future rewriting GAMA base. Also, not the old issues nor the Therefore, I only see the benefice of removing batik from the project 🤷 |
OK ok... Just saying. I think I'm gonna work on my own plugin then ! Let me one more hour so that I can completely isolate the production of icons into a nice little self-contained Eclipse project (not OSGI, just plain Java project + source files like SVG and Graffle), and after that you'll do what you want with it. |
Done. It's available from there : https://github.com/gama-platform/gama.resources/tree/2b59e18a7e3af8b5d22f20b2b0bb6dfe6b1273a4/icons/ummisco.gama.icons.producer The two arguments are the input and output paths. If none are specified, then I attached a launch configuration to it so that it can also be run from Eclipse. |
This one is put on Standby for the moment, as there is no real urgency in having an integrated pipeline immediately, now that we have a runnable project (in the gama.resources) repository. |
Is your request related to a problem? Please describe.
Right now, every source icons file have been pushed under the SVG format in
ummisco.gama.ui.shared/svg
, but Eclipse doesn't support this format and requires PNG ones.Describe the improvement you'd like
Creating a Github Action which would be triggered everytime this sub-folder is edited and regenerate every icons for GAMA (with the support of zoomed format x1 x1.5 and x2).
Additional context
Eclipse provides a custom java tool to generate those icons from svg files to png for this exact purpose ( 3d-p tutorial there : https://www.vogella.com/tutorials/Eclipse4Notes/article.html )
The text was updated successfully, but these errors were encountered: