Changeset 9253 in josm for trunk/src/org
- Timestamp:
- 2016-01-02T02:06:16+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r8958 r9253 25 25 */ 26 26 public class SideButton extends JButton implements Destroyable { 27 private static final int iconHeight = 20;27 private static final int iconHeight = ImageProvider.getImageSizes(ImageProvider.ImageSizes.SIDEBUTTON).height; 28 28 29 29 private transient PropertyChangeListener propertyChangeListener; -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r9239 r9253 1060 1060 if (i != null) { 1061 1061 b.setIcon(i); 1062 Dimension s = b.getPreferredSize(); 1063 /* make squared toolbar icons */ 1064 if (s.width < s.height) { 1065 s.width = s.height; 1066 b.setMinimumSize(s); 1067 b.setMaximumSize(s); 1068 //b.setSize(s); 1069 } else if (s.height < s.width) { 1070 s.height = s.width; 1071 b.setMinimumSize(s); 1072 b.setMaximumSize(s); 1073 } 1062 1074 } else { 1063 1075 // hide action text if an icon is set later (necessary for delayed/background image loading) -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r9147 r9253 150 150 * @since 8323 151 151 */ 152 LAYER 152 LAYER, 153 /** Toolbar button icon size 154 * @since 9253 155 */ 156 TOOLBAR, 157 /** Side button maximum height 158 * @since 9253 159 */ 160 SIDEBUTTON 153 161 } 154 162 … … 348 356 case MAPMAX: sizeval = Main.pref.getInteger("iconsize.mapmax", 48); break; 349 357 case MAP: sizeval = Main.pref.getInteger("iconsize.mapmax", 16); break; 358 case SIDEBUTTON: sizeval = Main.pref.getInteger("iconsize.sidebutton", 20); break; 359 case TOOLBAR: /* TOOLBAR is LARGELICON - only provided in case of future changes */ 350 360 case POPUPMENU: /* POPUPMENU is LARGELICON - only provided in case of future changes */ 351 361 case LARGEICON: sizeval = Main.pref.getInteger("iconsize.largeicon", 24); break;
Note:
See TracChangeset
for help on using the changeset viewer.