Ignore:
Timestamp:
2020-09-29T18:19:41+02:00 (4 years ago)
Author:
Mkyral
Message:

PointInfo: Switch to SVG icons

Location:
applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java

    r34545 r35565  
    4141
    4242    PointInfoAction() {
    43         super(tr("Point info"), "info-sml", tr("Point info."),
     43        super(tr("Point info"), "pointinfo", tr("Point info."),
    4444                Shortcut.registerShortcut("tools:pointInfo", tr("Tool: {0}", tr("Point info")), KeyEvent.VK_X, Shortcut.CTRL_SHIFT),
    4545                getCursor());
     
    6363
    6464    private static Cursor getCursor() {
    65         return ImageProvider.getCursor("crosshair", "info-sml");
     65        return ImageProvider.getCursor("crosshair", "pointinfo");
    6666    }
    6767
     
    110110                        JScrollPane scrollPane = new JScrollPane(msgLabel);
    111111                        Object[] objects = {scrollPane};
    112                         final ImageIcon icon = new ImageIcon(getClass().getResource("/images/dialogs/info-sml.png"));
     112                        final ImageIcon icon = ImageProvider.get("dialogs/pointinfo", ImageProvider.ImageSizes.SETTINGS_TAB);
    113113                        JOptionPane.showMessageDialog(
    114114                                null, objects, tr("PointInfo") + " " + coordinatesText, JOptionPane.PLAIN_MESSAGE, icon);
  • applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoPreference.java

    r34545 r35565  
    3434
    3535    @Override
    36     public String getIconName() {
    37         return "info-sml.png";
    38     }
    39 
    40     @Override
    4136    public void addGui(PreferenceTabbedPane gui) {
    4237        JPanel panel = new JPanel(new GridBagLayout());
Note: See TracChangeset for help on using the changeset viewer.