Ignore:
Timestamp:
2016-06-14T17:23:20+02:00 (3 years ago)
Author:
stoecker
Message:

see #9995 - patch by strump - improve HIDPI

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AboutAction.java

    r10234 r10369  
    105105        JPanel panel = new JPanel(new GridBagLayout());
    106106        panel.setPreferredSize(new Dimension(890, 300));
    107         panel.add(new JLabel("", new ImageIcon(ImageProvider.get("logo.svg").getImage().getScaledInstance(256, 258, Image.SCALE_SMOOTH)),
     107        panel.add(new JLabel("", new ImageProvider("logo.svg").setSize(ImageProvider.ImageSizes.ABOUT_LOGO).get(),
    108108                JLabel.CENTER), GBC.std().insets(0, 5, 0, 0));
    109109        panel.add(about, GBC.std().fill());
  • trunk/src/org/openstreetmap/josm/actions/AbstractSelectAction.java

    r10356 r10369  
    2020        putValue(NAME, tr("Select"));
    2121        putValue(SHORT_DESCRIPTION,  tr("Set the selected elements on the map to the selected items in the list above."));
    22         new ImageProvider("dialogs", "select").getResource().getImageIcon(this, true);
     22        new ImageProvider("dialogs", "select").getResource().attachImageIcon(this, true);
    2323    }
    2424}
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r10318 r10369  
    6363                                    @Override
    6464                                    public void run() {
    65                                         result.getImageIcon(AddImageryLayerAction.this);
     65                                        result.attachImageIcon(AddImageryLayerAction.this);
    6666                                    }
    6767                                });
  • trunk/src/org/openstreetmap/josm/actions/JosmAction.java

    r10354 r10369  
    7373        super(name);
    7474        if (icon != null)
    75             icon.getResource().getImageIcon(this);
     75            icon.getResource().attachImageIcon(this);
    7676        setHelpId();
    7777        sc = shortcut;
Note: See TracChangeset for help on using the changeset viewer.