Ignore:
Timestamp:
2017-11-19T20:12:24+01:00 (18 months ago)
Author:
Don-vip
Message:

fix #15572 - use ImageProvider attach API for all JOSM actions to ensure proper icon size everywhere

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java

    r12636 r13130  
    240240            putValue(NAME, tr("Zoom to node"));
    241241            putValue(SHORT_DESCRIPTION, tr("Zoom to this node in the current data layer"));
    242             putValue(SMALL_ICON, ImageProvider.get("dialogs", "zoomin"));
     242            new ImageProvider("dialogs", "zoomin").getResource().attachImageIcon(this, true);
    243243        }
    244244
     
    285285            putValue(NAME, tr("Show history"));
    286286            putValue(SHORT_DESCRIPTION, tr("Open a history browser with the history of this node"));
    287             putValue(SMALL_ICON, ImageProvider.get("dialogs", "history"));
     287            new ImageProvider("dialogs", "history").getResource().attachImageIcon(this, true);
    288288        }
    289289
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r13014 r13130  
    307307
    308308        OpenChangesetDialogAction(Class<? extends JComponent> componentToSelect) {
    309             super(tr("Changeset"), new ImageProvider("dialogs/changeset", "changesetmanager").resetMaxSize(new Dimension(16, 16)).get());
     309            super(tr("Changeset"));
     310            new ImageProvider("dialogs/changeset", "changesetmanager").resetMaxSize(new Dimension(16, 16))
     311                .getResource().attachImageIcon(this, true);
    310312            putValue(SHORT_DESCRIPTION, tr("Opens the Changeset Manager window for the selected changesets"));
    311313            this.componentToSelect = componentToSelect;
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java

    r12846 r13130  
    155155            putValue(NAME, tr("Changeset info"));
    156156            putValue(SHORT_DESCRIPTION, tr("Launch browser with information about the changeset"));
    157             putValue(SMALL_ICON, ImageProvider.get("data/changeset"));
     157            new ImageProvider("data/changeset").getResource().attachImageIcon(this, true);
    158158        }
    159159
     
    192192            putValue(NAME, tr("User info"));
    193193            putValue(SHORT_DESCRIPTION, tr("Launch browser with information about the user"));
    194             putValue(SMALL_ICON, ImageProvider.get("data/user"));
     194            new ImageProvider("data/user").getResource().attachImageIcon(this, true);
    195195        }
    196196
Note: See TracChangeset for help on using the changeset viewer.