Changeset 17901 in josm


Ignore:
Timestamp:
2021-05-17T20:12:50+02:00 (3 years ago)
Author:
simon04
Message:

fix #20862 - Notifications: Help button icon too big and lots of empty space

File:
1 edited

Legend:

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

    r17628 r17901  
    212212
    213213            ShowNoteHelpAction(Notification note) {
     214                super(tr("Help"));
     215                putValue(SHORT_DESCRIPTION, tr("Show help information"));
     216                new ImageProvider("help").getResource().attachImageIcon(this, true);
    214217                this.note = note;
    215218            }
     
    248251            JToolBar tbHelp = null;
    249252            if (note.getHelpTopic() != null) {
    250                 JButton btnHelp = new JButton(tr("Help"));
    251                 btnHelp.setIcon(ImageProvider.get("help"));
    252                 btnHelp.setToolTipText(tr("Show help information"));
     253                JButton btnHelp = new JButton(new ShowNoteHelpAction(note));
    253254                HelpUtil.setHelpContext(btnHelp, note.getHelpTopic());
    254                 btnHelp.addActionListener(new ShowNoteHelpAction(note));
    255255                btnHelp.setOpaque(false);
    256256                tbHelp = new JToolBar();
Note: See TracChangeset for help on using the changeset viewer.