Ticket #19574: 19574.style_pref_consistency.patch

File 19574.style_pref_consistency.patch, 893 bytes (added by taylor.smock, 4 years ago)

Use logic from MapCSSParser to create the NamedColorProperty

  • src/org/openstreetmap/josm/gui/mappaint/StyleSettingFactory.java

     
    5050            case "color":
    5151                return forLabelAndDefault(c, Color.class, (label, defaultValue) -> {
    5252                    final NamedColorProperty property = new NamedColorProperty(NamedColorProperty.COLOR_CATEGORY_MAPPAINT,
    53                             parentStyle.getFileNamePart(), label, defaultValue);
     53                            parentStyle.title == null ? "MapCSS" : parentStyle.title, label, defaultValue);
    5454                    return new StyleSetting.ColorStyleSetting(parentStyle, label, property);
    5555                });
    5656            default: