This article documents shows you how to change the appearance of a menu or sub-menu, like the If you are trying to customize the appearance of a menu item such as the |
For each item in an action bar menu or sub-menu, you can:
-
Specify an icon
-
Determine whether the menu item displays text or not
You need the configuration file prefix to change the appearance of a menu. To figure out the configuration file prefix, you
can enable the |
Specify a menu icon
You specify a menu icon with the prefix.menu.xxx.smallIcon
key.
Replace the xxx
part in the key with a dot-separated list of the menu path items leading to the menu.
For example, to define an icon for the sub-menu Map → Data
, use the property:
prefix.menu.Map.Data.smallIcon = path/to/the/icon.png
.
Display or hide menu item text
You hide the name of a menu item by setting the value for key prefix.menu.xxx.showActionName
to false
.
You must replace the xxx
part in the key with a dot-separated list of the menu path items leading to the menu.
For example, to remove the text for the sub-menu Map → Data
, use the property:
prefix.menu.Map.Data.showActionName = false
.