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.

Bug 53456 - Better support of branding icons
Summary: Better support of branding icons
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on: 53461
Blocks:
  Show dependency tree
 
Reported: 2005-01-14 23:29 UTC by Peter Zavadsky
Modified: 2008-12-22 19:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2005-01-14 23:29:53 UTC
This is an umbrella issue.
Up to now the branding of icons is supported by
Utilities.loadImage(iconResource, boolean). 
Which is good, and is supposed to work for
SystemAction impl's.
I.e. it works the way:
1) original image is specified by ->
"somePath/image.gif"
   branded image is specified by ->
"somePath/image_brandName.gif"

We'd need to enhance this to be able to brand
another type of image than the original. i.e.:
2) to be able brand like ->
"somePath/image_brandName.png"


3) Also there are a lot of usages in the code
where is not used the branded ability, i.e.
instead of calling Utilities.loadImage("resPath",
true); it ususally called the nonlocalizable
(non-brand method) .. if my assumption is right.
Comment 1 Peter Zavadsky 2005-01-14 23:59:50 UTC
I realized there is probably a way how to allow to brand the stuff
with different extension.

If the hardcoded strings whic provide the path are in Bundle's (with
NOI18N flag), then it would be possible.
Please, review this possibility, and if acceptable, move all the
hardcoded stuff there.
Comment 2 Peter Zavadsky 2005-02-09 13:03:06 UTC
Closing this, since the braning of icons is solved (the trick with
renaminng .png files to .gif, it is ugly, but it works).