This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
We need to have a possibility to brand the actions icon, see the umbrella issue, beside the plain branding (using Utilities.loadImage(String, boolean), there is a need to be able to brand different extension (png) too.
Created attachment 19714 [details] Edited diff of hack
I was probably misleading, the Utilities.loadImage(str, boolean) is used from action. Here is needed to provide the resource path from Bundle, so it is possible to brand.
No need to touch the openide code at all. Just provide your own image in file named org/openide/resources/actions/pageSetup_yourbranding.gif and once you start the app using yourbranding, it will use your icon as well.
You've missed the point (see the diff). The problem is, there is a desire to be able to brand it by another extension, in this case by .png file, instead of the .gif
OK, I changed the icon to gif and branded it. Closing this, and leaving the possible solution for using diff formats to the umbrella issue.
I forgot to tell you that you can use an icon in PNG format, you just need to _rename_ it to .gif ;-) We're using it in NB regulary, otehrwise we won't have shaded icons. (see e.g. openide/resources/actions/paste.gif)
Yes, I realized that you are using that trick. Is the rationale behind that java loads the image and recognizes the format based on its content? Will it be somehow solved in future, so there is avoided this 'trick'?
Yes, java recognizes the file header. For future, we may switch to .pngs entirely, but: 1. Trying both extensions is too expensive. 2. The change to .png only would be a big trouble for branders.