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

see #9995 - patch by strump - improve HIDPI

Location:
trunk/src/org/openstreetmap/josm/gui/oauth
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r10367 r10369  
    325325        RunAuthorisationAction() {
    326326            putValue(NAME, tr("Authorize now"));
    327             new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
     327            new ImageProvider("oauth", "oauth-small").getResource().attachImageIcon(this);
    328328            putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authorization form on the JOSM web site"));
    329329            updateEnabledState();
     
    362362            putValue(NAME, tr("Back"));
    363363            putValue(SHORT_DESCRIPTION, tr("Run the automatic authorization steps again"));
    364             new ImageProvider("dialogs", "previous").getResource().getImageIcon(this);
     364            new ImageProvider("dialogs", "previous").getResource().attachImageIcon(this);
    365365        }
    366366
     
    377377        TestAccessTokenAction() {
    378378            putValue(NAME, tr("Test Access Token"));
    379             new ImageProvider("logo").getResource().getImageIcon(this);
     379            new ImageProvider("logo").getResource().attachImageIcon(this);
    380380        }
    381381
  • trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java

    r10367 r10369  
    223223        TestAccessTokenAction() {
    224224            putValue(NAME, tr("Test Access Token"));
    225             new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
     225            new ImageProvider("oauth", "oauth-small").getResource().attachImageIcon(this);
    226226            putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token"));
    227227            updateEnabledState();
  • trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java

    r10367 r10369  
    351351        CancelAction() {
    352352            putValue(NAME, tr("Cancel"));
    353             new ImageProvider("cancel").getResource().getImageIcon(this);
     353            new ImageProvider("cancel").getResource().attachImageIcon(this);
    354354            putValue(SHORT_DESCRIPTION, tr("Close the dialog and cancel authorization"));
    355355        }
     
    373373        AcceptAccessTokenAction() {
    374374            putValue(NAME, tr("Accept Access Token"));
    375             new ImageProvider("ok").getResource().getImageIcon(this);
     375            new ImageProvider("ok").getResource().attachImageIcon(this);
    376376            putValue(SHORT_DESCRIPTION, tr("Close the dialog and accept the Access Token"));
    377377            updateEnabledState(null);
  • trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java

    r10367 r10369  
    292292                putValue(NAME, tr("Back"));
    293293                putValue(SHORT_DESCRIPTION, tr("Go back to step 1/3"));
    294                 new ImageProvider("dialogs", "previous").getResource().getImageIcon(this);
     294                new ImageProvider("dialogs", "previous").getResource().attachImageIcon(this);
    295295            }
    296296
     
    368368                putValue(NAME, tr("Restart"));
    369369                putValue(SHORT_DESCRIPTION, tr("Go back to step 1/3"));
    370                 new ImageProvider("dialogs", "previous").getResource().getImageIcon(this);
     370                new ImageProvider("dialogs", "previous").getResource().attachImageIcon(this);
    371371            }
    372372
     
    389389        RetrieveRequestTokenAction() {
    390390            putValue(NAME, tr("Retrieve Request Token"));
    391             new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
     391            new ImageProvider("oauth", "oauth-small").getResource().attachImageIcon(this);
    392392            putValue(SHORT_DESCRIPTION, tr("Click to retrieve a Request Token"));
    393393        }
     
    425425        RetrieveAccessTokenAction() {
    426426            putValue(NAME, tr("Retrieve Access Token"));
    427             new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
     427            new ImageProvider("oauth", "oauth-small").getResource().attachImageIcon(this);
    428428            putValue(SHORT_DESCRIPTION, tr("Click to retrieve an Access Token"));
    429429        }
     
    462462        TestAccessTokenAction() {
    463463            putValue(NAME, tr("Test Access Token"));
    464             new ImageProvider("oauth", "oauth-small").getResource().getImageIcon(this);
     464            new ImageProvider("oauth", "oauth-small").getResource().attachImageIcon(this);
    465465            putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token"));
    466466        }
Note: See TracChangeset for help on using the changeset viewer.