Changeset 13821 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-05-23T02:59:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r13608 r13821 13 13 import java.awt.event.KeyEvent; 14 14 import java.awt.event.MouseEvent; 15 import java.awt.image.BufferedImage; 15 16 import java.beans.PropertyChangeEvent; 16 17 import java.beans.PropertyChangeListener; … … 80 81 import org.openstreetmap.josm.spi.preferences.Config; 81 82 import org.openstreetmap.josm.tools.ImageProvider; 83 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 82 84 import org.openstreetmap.josm.tools.InputMapUtils; 83 85 import org.openstreetmap.josm.tools.Shortcut; … … 392 394 } 393 395 396 static ImageIcon createBlankIcon() { 397 return new ImageIcon(new BufferedImage( 398 ImageSizes.LAYER.getAdjustedWidth(), ImageSizes.LAYER.getAdjustedHeight(), BufferedImage.TYPE_INT_ARGB)); 399 } 400 394 401 private static class ActiveLayerCheckBox extends JCheckBox { 395 402 ActiveLayerCheckBox() { 396 403 setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 397 ImageIcon blank = ImageProvider.get("dialogs/layerlist", "blank");404 ImageIcon blank = createBlankIcon(); 398 405 ImageIcon active = ImageProvider.get("dialogs/layerlist", "active"); 399 406 setIcon(blank); … … 446 453 NativeScaleLayerCheckBox() { 447 454 setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 448 ImageIcon blank = ImageProvider.get("dialogs/layerlist", "blank");455 ImageIcon blank = createBlankIcon(); 449 456 ImageIcon active = ImageProvider.get("dialogs/layerlist", "scale"); 450 457 setIcon(blank); … … 456 463 OffsetLayerCheckBox() { 457 464 setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 458 ImageIcon blank = ImageProvider.get("dialogs/layerlist", "blank");465 ImageIcon blank = createBlankIcon(); 459 466 ImageIcon withOffset = ImageProvider.get("dialogs/layerlist", "offset"); 460 467 setIcon(blank);
Note:
See TracChangeset
for help on using the changeset viewer.