Changeset 5376 in josm
- Timestamp:
- 2012-07-28T15:59:38+02:00 (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/AreaElemStyle.java
r5342 r5376 49 49 50 50 fillImage.alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fill-image-alpha", 255)))); 51 Integer pAlpha = Utils.color_float2int(c.get( "fill-opacity", null, float.class));51 Integer pAlpha = Utils.color_float2int(c.get(FILL_OPACITY, null, float.class)); 52 52 if (pAlpha != null) { 53 53 fillImage.alpha = pAlpha; … … 57 57 if (color != null) { 58 58 int alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fillalpha", 50)))); 59 Integer pAlpha = Utils.color_float2int(c.get( "fill-opacity", null, float.class));59 Integer pAlpha = Utils.color_float2int(c.get(FILL_OPACITY, null, float.class)); 60 60 if (pAlpha != null) { 61 61 alpha = pAlpha; -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleKeys.java
r5342 r5376 11 11 public static final String FILL_COLOR = "fill-color"; 12 12 public static final String FILL_IMAGE = "fill-image"; 13 public static final String FILL_OPACITY = "fill-opacity"; 13 14 public static final String ICON_IMAGE = "icon-image"; 14 15 public static final String MODIFIER = "modifier"; -
trunk/styles/standard/potlatch2.mapcss
r5218 r5376 373 373 way[boundary=administrative] { z-index: 5; color: purple; width: 2; opacity: 0.2; dashes: 24,4; z-index: 4;} 374 374 way[boundary=administrative][waterway] { z-index: 5; opacity: 0.8; z-index: 4; dashes: 24,4; width: 6; } 375 area[landuse=cemetery]:closed { color: #664466; width: 2; fill-color: color:#664466; opacity: 0.2; prop_area_small_name : 1;}375 area[landuse=cemetery]:closed { color: #664466; width: 2; fill-color: #664466; opacity: 0.2; prop_area_small_name : 1;} 376 376 /* Addressing. Nodes with addresses *and* match POIs should have a poi icon, so we put addressing first */ 377 377 /* Route relations */ -
trunk/styles_nodist/potlatch2/patched/core_landuse.css
r5215 r5376 44 44 way[boundary=administrative] { z-index: 5; color: purple; width: 2; opacity: 0.2; dashes: 24,4; z-index: 4;} 45 45 way[boundary=administrative][waterway] { z-index: 5; opacity: 0.8; z-index: 4; dashes: 24,4; width: 6; } 46 area[landuse=cemetery]:closed { color: #664466; width: 2; fill-color: color:#664466; opacity: 0.2; prop_area_small_name : 1;}46 area[landuse=cemetery]:closed { color: #664466; width: 2; fill-color: #664466; opacity: 0.2; prop_area_small_name : 1;} 47 47 /* Addressing. Nodes with addresses *and* match POIs should have a poi icon, so we put addressing first */ -
trunk/styles_nodist/potlatch2/source/core_landuse.css
r5215 r5376 40 40 way[boundary=administrative] { color: purple; width: 2; opacity: 0.2; dashes: 24,4; z-index: 4;} 41 41 way[boundary=administrative][waterway] { opacity: 0.8; z-index: 4; dashes: 24,4; width: 6; } 42 way[landuse=cemetery] { color: #664466; width: 2; fill-color: color:#664466; opacity: 0.2; set .area_small_name;}42 way[landuse=cemetery] { color: #664466; width: 2; fill-color: #664466; opacity: 0.2; set .area_small_name;} 43 43 /* Addressing. Nodes with addresses *and* match POIs should have a poi icon, so we put addressing first */
Note:
See TracChangeset
for help on using the changeset viewer.