Ignore:
Timestamp:
2016-06-19T18:28:26+02:00 (3 years ago)
Author:
stoecker
Message:

see #9995 - patch mainly by strump - improve HIDPI behaviour

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java

    r10173 r10428  
    3333        super(tr("Open Recent"));
    3434        setToolTipText(tr("List of recently opened files"));
    35         setIcon(new ImageProvider("openrecent").setSize(ImageProvider.ImageSizes.MENU).get());
     35        setIcon(ImageProvider.get("openrecent", ImageProvider.ImageSizes.MENU));
    3636        putClientProperty("help", ht("/Action/OpenRecent"));
    3737
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r10420 r10428  
    384384        private final transient Image save = ImageProvider.get("save").getImage();
    385385        private final transient Image upld = ImageProvider.get("upload").getImage();
    386         private final transient Image saveDis = new BufferedImage(ICON_SIZE, ICON_SIZE, BufferedImage.TYPE_4BYTE_ABGR);
    387         private final transient Image upldDis = new BufferedImage(ICON_SIZE, ICON_SIZE, BufferedImage.TYPE_4BYTE_ABGR);
     386        private final transient Image saveDis = new ImageProvider("save").setDisabled(true).get().getImage();
     387        private final transient Image upldDis = new ImageProvider("upload").setDisabled(true).get().getImage();
    388388
    389389        SaveAndProceedAction() {
    390             // get disabled versions of icons
    391             new JLabel(ImageProvider.get("save")).getDisabledIcon().paintIcon(new JPanel(), saveDis.getGraphics(), 0, 0);
    392             new JLabel(ImageProvider.get("upload")).getDisabledIcon().paintIcon(new JPanel(), upldDis.getGraphics(), 0, 0);
    393390            initForSaveAndExit();
    394391        }
Note: See TracChangeset for help on using the changeset viewer.