- Timestamp:
- 2012-07-28T15:59:38+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 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";
Note:
See TracChangeset
for help on using the changeset viewer.