Changeset 17060 in josm


Ignore:
Timestamp:
2020-09-25T16:40:59+02:00 (4 years ago)
Author:
Klumbumbus
Message:

Add button icons in preferences

Location:
trunk/src/org/openstreetmap/josm/gui/preferences
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java

    r16960 r17060  
    6060import org.openstreetmap.josm.tools.ColorHelper;
    6161import org.openstreetmap.josm.tools.GBC;
     62import org.openstreetmap.josm.tools.ImageProvider;
    6263import org.openstreetmap.josm.tools.I18n;
    6364
     
    264265        setColors(Preferences.main().getAllNamedColors());
    265266
    266         colorEdit = new JButton(tr("Choose"));
     267        colorEdit = new JButton(tr("Choose"), ImageProvider.get("colorchooser", ImageProvider.ImageSizes.SMALLICON));
    267268        colorEdit.addActionListener(e -> {
    268269            int sel = colors.getSelectedRow();
     
    278279            }
    279280        });
    280         defaultSet = new JButton(tr("Reset to default"));
     281        defaultSet = new JButton(tr("Reset to default"), ImageProvider.get("undo", ImageProvider.ImageSizes.SMALLICON));
    281282        defaultSet.addActionListener(e -> {
    282283            int sel = colors.getSelectedRow();
     
    287288            }
    288289        });
    289         JButton defaultAll = new JButton(tr("Set all to default"));
     290        JButton defaultAll = new JButton(tr("Set all to default"), ImageProvider.get("undo", ImageProvider.ImageSizes.SMALLICON));
    290291        defaultAll.addActionListener(e -> {
    291292            List<ColorEntry> data = tableModel.getData();
     
    298299            tableModel.fireTableDataChanged();
    299300        });
    300         remove = new JButton(tr("Remove"));
     301        remove = new JButton(tr("Remove"), ImageProvider.get("dialogs/delete", ImageProvider.ImageSizes.SMALLICON));
    301302        remove.addActionListener(e -> {
    302303            int sel = colors.getSelectedRow();
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r16960 r17060  
    4343import org.openstreetmap.josm.gui.util.TableHelper;
    4444import org.openstreetmap.josm.tools.GBC;
     45import org.openstreetmap.josm.tools.ImageProvider;
    4546import org.openstreetmap.josm.tools.Logging;
    4647
     
    213214            JPanel buttonPanel = new JPanel(new FlowLayout());
    214215
    215             JButton add = new JButton(tr("Add"));
     216            JButton add = new JButton(tr("Add"), ImageProvider.get("dialogs/add", ImageProvider.ImageSizes.SMALLICON));
    216217            buttonPanel.add(add, GBC.std().insets(0, 5, 0, 0));
    217218            add.addActionListener(e -> model.addRow(new OffsetBookmark(ProjectionRegistry.getProjection().toCode(), "", "", "", 0, 0)));
    218219
    219             JButton delete = new JButton(tr("Delete"));
     220            JButton delete = new JButton(tr("Delete"), ImageProvider.get("dialogs/delete", ImageProvider.ImageSizes.SMALLICON));
    220221            buttonPanel.add(delete, GBC.std().insets(0, 5, 0, 0));
    221222            delete.addActionListener(e -> {
Note: See TracChangeset for help on using the changeset viewer.