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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java

    r12663 r13130  
    346346    class KeepMyCoordinatesAction extends AbstractAction implements ChangeListener {
    347347        KeepMyCoordinatesAction() {
    348             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagkeepmine"));
     348            new ImageProvider("dialogs/conflict", "tagkeepmine").getResource().attachImageIcon(this, true);
    349349            putValue(Action.SHORT_DESCRIPTION, tr("Keep my coordinates"));
    350350        }
     
    363363    class KeepTheirCoordinatesAction extends AbstractAction implements ChangeListener {
    364364        KeepTheirCoordinatesAction() {
    365             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagkeeptheir"));
     365            new ImageProvider("dialogs/conflict", "tagkeeptheir").getResource().attachImageIcon(this, true);
    366366            putValue(Action.SHORT_DESCRIPTION, tr("Keep their coordinates"));
    367367        }
     
    380380    class UndecideCoordinateConflictAction extends AbstractAction implements ChangeListener {
    381381        UndecideCoordinateConflictAction() {
    382             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagundecide"));
     382            new ImageProvider("dialogs/conflict", "tagundecide").getResource().attachImageIcon(this, true);
    383383            putValue(Action.SHORT_DESCRIPTION, tr("Undecide conflict between different coordinates"));
    384384        }
     
    397397    class KeepMyDeletedStateAction extends AbstractAction implements ChangeListener {
    398398        KeepMyDeletedStateAction() {
    399             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagkeepmine"));
     399            new ImageProvider("dialogs/conflict", "tagkeepmine").getResource().attachImageIcon(this, true);
    400400            putValue(Action.SHORT_DESCRIPTION, tr("Keep my deleted state"));
    401401        }
     
    414414    class KeepTheirDeletedStateAction extends AbstractAction implements ChangeListener {
    415415        KeepTheirDeletedStateAction() {
    416             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagkeeptheir"));
     416            new ImageProvider("dialogs/conflict", "tagkeeptheir").getResource().attachImageIcon(this, true);
    417417            putValue(Action.SHORT_DESCRIPTION, tr("Keep their deleted state"));
    418418        }
     
    431431    class UndecideDeletedStateConflictAction extends AbstractAction implements ChangeListener {
    432432        UndecideDeletedStateConflictAction() {
    433             putValue(Action.SMALL_ICON, ImageProvider.get("dialogs/conflict", "tagundecide"));
     433            new ImageProvider("dialogs/conflict", "tagundecide").getResource().attachImageIcon(this, true);
    434434            putValue(Action.SHORT_DESCRIPTION, tr("Undecide conflict between deleted state"));
    435435        }
Note: See TracChangeset for help on using the changeset viewer.