Changeset 7110 in josm for trunk


Ignore:
Timestamp:
2014-05-12T20:44:42+02:00 (6 years ago)
Author:
simon04
Message:

fix #10014 - MapCSS: Add support for canvas{fill-color}, deprecate canvas{background-color}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r7089 r7110  
    203203    private void loadCanvas() {
    204204        Cascade c = constructSpecial("canvas");
    205         backgroundColorOverride = c.get("background-color", null, Color.class);
     205        backgroundColorOverride = c.get("fill-color", null, Color.class);
     206        if (backgroundColorOverride == null) {
     207            backgroundColorOverride = c.get("background-color", null, Color.class);
     208            if (backgroundColorOverride != null) {
     209                Main.warn(tr("Detected deprecated {0} in {1} which will be removed shortly.", "canvas{background-color}", url));
     210            }
     211        }
    206212    }
    207213
Note: See TracChangeset for help on using the changeset viewer.