Color preferences overhaul
Color name registration (
ColorPreference could do with some updates.
- It relies heavily on fragile string matching and several things are no longer working as intended.
- Color names are only registered at runtime for the current session, but the table shows all colors from the preference defaults. Now that JOSM remembers default preferences from the previous sessions, this leads to a mix of color names and raw preference keys in the GUI table.
- The table model relies on a
Mapfrom translated names to preference keys (error prone).