Ignore:
Timestamp:
2017-10-12T16:02:15+02:00 (3 months ago)
Author:
bastiK
Message:

see #15410 - change preferences scheme for named colors - makes runtime color name registry obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj

    r12620 r12987  
    1818import java.util.Locale;
    1919
    20 import org.openstreetmap.josm.data.preferences.ColorProperty;
     20import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    2121import org.openstreetmap.josm.gui.mappaint.Keyword;
    2222import org.openstreetmap.josm.gui.mappaint.mapcss.Condition;
     
    11341134        LOOKAHEAD(2)
    11351135        pref=ident() t=<HEXCOLOR>
    1136         { return new ColorProperty("mappaint." + (sheet == null ? "MapCSS" : sheet.title) + "." + pref, t.image).get(); }
     1136        {
     1137            return new NamedColorProperty(
     1138                    NamedColorProperty.COLOR_CATEGORY_MAPPAINT,
     1139                    sheet == null ? "MapCSS" : sheet.title, pref,
     1140                    ColorHelper.html2color(t.image)).get();
     1141        }
    11371142    |
    11381143        t=<IDENT> { return new Keyword(t.image); }
Note: See TracChangeset for help on using the changeset viewer.