Ignore:
Timestamp:
2015-06-02T14:58:03+02:00 (5 years ago)
Author:
Don-vip
Message:

Fix #11266 - SVG versions of JOSM and OAuth logos + some other buttons (patch by floscher)

File:
1 edited

Legend:

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

    r8378 r8442  
    66import java.awt.Dimension;
    77import java.awt.GridBagLayout;
     8import java.awt.Image;
    89import java.awt.event.ActionEvent;
    910import java.awt.event.KeyEvent;
    1011
    1112import javax.swing.BorderFactory;
     13import javax.swing.ImageIcon;
    1214import javax.swing.JLabel;
    1315import javax.swing.JOptionPane;
     
    3032
    3133/**
    32  * Nice about screen. I guess every application need one these days.. *sigh*
     34 * Nice about screen.
    3335 *
    34  * The REVISION resource is read and if present, it shows the revision
    35  * information of the jar-file.
     36 * The REVISION resource is read and if present, it shows the revision information of the jar-file.
    3637 *
    3738 * @author imi
     
    9091        info.add(GBC.glue(0,5), GBC.eol());
    9192        info.add(new JLabel(tr("Bug Reports")), GBC.std().insets(10,0,10,0));
    92         info.add(BugReportExceptionHandler.getBugReportUrlLabel(Utils.strip(ShowStatusReportAction.getReportHeader())), GBC.eol().fill(GBC.HORIZONTAL));
     93        info.add(BugReportExceptionHandler.getBugReportUrlLabel(Utils.strip(ShowStatusReportAction.getReportHeader())),
     94                GBC.eol().fill(GBC.HORIZONTAL));
    9395
    9496        about.addTab(tr("Info"), info);
     
    105107
    106108        GuiHelper.prepareResizeableOptionPane(panel, panel.getPreferredSize());
    107         JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."),
    108                 JOptionPane.INFORMATION_MESSAGE, ImageProvider.get("logo"));
     109        JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."), JOptionPane.INFORMATION_MESSAGE,
     110                new ImageIcon(ImageProvider.get("logo.svg").getImage().getScaledInstance(256, 258, Image.SCALE_SMOOTH)));
    109111    }
    110112
Note: See TracChangeset for help on using the changeset viewer.