out of date content - available for reference purposes only
IGB, like all software with a graphic user interface, uses icons to depict actions. Commonly icons are square. As of this writing, common sizes are 16, 22, 32, 48, 64, and 128. IGB uses 16x16 icons for actions that appear in menus. 22x22 icons are used for the toolbar. Some actions can appear in either place and have both icon sizes. Icons meant for menu items are added to actions with the SMALL_ICON key. Icons for the toolbar are added with the LARGE_ICON_KEY. Icons are kept in core/jar_extensions/icons/resources/. Icons in there are put into the correct places in the correct jar for distribution. ant-build includes this.
For example:
Code Block |
---|
ourAction.setValue(Action.SMALL_ICON, '16x16/actions/ouraction.png');
ourAction.setValue(Action.LARGE_ICON_KEY, '22x22/actions/ouraction.png');
|
...