apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.65k stars 850 forks source link

[NETBEANS-2604] Support SVG icon loading from ImageUtilities #1278

Closed eirikbakke closed 4 years ago

eirikbakke commented 5 years ago

This PR adds support for SVG icon loading from ImageUtilities, and tests it by adding SVG icons for the Undo and Redo actions. See https://issues.apache.org/jira/browse/NETBEANS-2604 and the attached screenshot. This PR depends on https://github.com/apache/netbeans/pull/1273, which must be applied first. This PR can be reviewed more or less independently (just ignore the first commit, which contains all the changes from the other PR).

Some questions for more experienced NetBeans veterans:

Thanks for your help!

Example SVG icons loaded and displayed in the IDE: SVG icon screenshot

Example renderings of other SVG files tested (from Ultorg, an application built on the NetBeans Platform), as displayed using the platform/o.n.swing.tabcontrol/test/unit/src/org/netbeans/swing/tabcontrol/plaf/VectorIconTester.java utility (which was added in an earlier commit): SVG Icons Tested

neilcsmith-net commented 4 years ago

Spurious Travis failures are somewhat par for the course - you can retrigger them from the Travis UI assuming your accounts are connected? Speaking of which, why do the commits show as ultorg rather than you personally? Author email should ideally be your Apache one.

eirikbakke commented 4 years ago

It's my real name and email in the git logs, but it didn't match the email that was associated with this github account. Now fixed to avoid confusion. (I prefer to use a real email address over the Apache one, to avoid a proliferation of email addresses that I have to check or maintain...)

you can retrigger them from the Travis UI assuming your accounts are connected That's easier, will try that next time...

matthiasblaesing commented 4 years ago

The name shown on github is mostly useless, as github tries to be clever. If you need the real information, only git log (or its companions) show the truth. That said, in these cases, where the github data is not useable, "Squash and Merge" must not be used from the github GUI, as it destroys the valid author information (git rebase does this much better).

eirikbakke commented 4 years ago

I did a manual squash, saw no failing Travis tests, and merged. I also tested a private build of the platform with my NetBeans Platform app, which makes extensive use of SVG icon loading.

Added the following issues for the future: