Some posts earlier it was mentioned that halo colors were different. The reason for the latter is that the token popup menu uses its own list of colors instead of the colors defined by MapToolUtil.COLOR_MAP.Azhrei wrote:+For Gray colors, use Gray{25,50,75} instead of {Light,Dark,}Gray http://forums.rptools.net/viewtopic.php ... 65#p214965
The patch fixes the halo color list and adds the three additional grays. It also improves the drop down lists of the combo boxes for macro button configuration to display the colors. In addition, I've added color name internationalization in this patch.
patch description
- added three colors to MapToolsUtil.COLOR_MAP called "gray25", "gray 50", and "gray 75".
- added a set of text properties for color names to i18n.properties (German translation included)
- added a new class net.rptools.maptool.client.ui.ColorComboBoxRenderer that sets the background color for combo box items to the one specified by its value. The combo box item also displays the translated color name instead of the color code from MapToolUtil.COLOR_MAP.
- set the renderer for the drop down boxes displayed when editing a macro button. Since it is an editable combo box the colors are only displayed in the drop down list and not in the input field.
- changed TokenPopupMenu to use MapToolUtil.getColorNames() and color name I18N instead of its own array of colors.
- added a set of text properties for color names to i18n.properties (German translation included)
- added a new class net.rptools.maptool.client.ui.ColorComboBoxRenderer that sets the background color for combo box items to the one specified by its value. The combo box item also displays the translated color name instead of the color code from MapToolUtil.COLOR_MAP.
- set the renderer for the drop down boxes displayed when editing a macro button. Since it is an editable combo box the colors are only displayed in the drop down list and not in the input field.
- changed TokenPopupMenu to use MapToolUtil.getColorNames() and color name I18N instead of its own array of colors.