Ignore:
Timestamp:
2012-08-22T00:06:22+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7865 - Map icons should be less prominent when disabled or inactive (patch by mrwojo)

File:
1 edited

Legend:

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

    r5257 r5470  
    66import java.awt.Image;
    77import java.awt.Rectangle;
     8import java.awt.Toolkit;
    89import java.awt.image.BufferedImage;
     10import java.awt.image.FilteredImageSource;
     11import java.awt.image.ImageProducer;
    912
    1013import javax.swing.GrayFilter;
     
    4649        if (img == null)
    4750            getImage(); // fix #7498 ?
    48         return disabledImg = GrayFilter.createDisabledImage(img);
     51        ImageProducer ip = new FilteredImageSource(img.getSource(), new GrayFilter(true, 20));
     52        disabledImg = Toolkit.getDefaultToolkit().createImage(ip);
     53        return disabledImg;
    4954    }
    5055
Note: See TracChangeset for help on using the changeset viewer.