Changeset 32717 in osm


Ignore:
Timestamp:
2016-07-26T16:15:45+02:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Update sequence colors to match the mapillary website

Location:
applications/editors/josm/plugins/mapillary
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/config/josm/preferences.xml

    r32693 r32717  
    66    <entry value='apache-http'/>
    77  </list>
     8  <tag key='mapillary.developer' value='true'/>
    89  <tag key='pluginmanager.time-based-update.policy' value='never'/>
    910  <tag key='pluginmanager.version-based-update.policy' value='never'/>
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java

    r32652 r32717  
    6161import org.openstreetmap.josm.plugins.mapillary.mode.SelectMode;
    6262import org.openstreetmap.josm.plugins.mapillary.utils.MapViewGeometryUtil;
     63import org.openstreetmap.josm.plugins.mapillary.utils.MapillaryColorScheme;
    6364import org.openstreetmap.josm.plugins.mapillary.utils.MapillaryUtils;
    6465
     
    334335    // Draw sequence line
    335336    final MapillaryAbstractImage selectedImage = MapillaryLayer.getInstance().getData().getSelectedImage();
    336     String selectedImageKey = null; // Intentionally not null to avoid null-check before .equals()
     337    String selectedImageKey = null;
    337338    if (selectedImage != null && selectedImage.getSequence() != null) {
    338339      selectedImageKey = selectedImage.getSequence().getKey();
     
    341342    for (MapillarySequence seq : getData().getSequences()) {
    342343      if (selectedImageKey != null && selectedImageKey.equals(seq.getKey())) {
    343         g.setColor(Color.MAGENTA.brighter());
     344        g.setColor(MapillaryColorScheme.SEQ_SELECTED);
    344345      } else {
    345         g.setColor(Color.WHITE);
     346        g.setColor(MapillaryColorScheme.SEQ_UNSELECTED);
    346347      }
    347348      g.draw(MapViewGeometryUtil.getSequencePath(mv, seq));
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryColorScheme.java

    r32593 r32717  
    1313
    1414public final class MapillaryColorScheme {
     15  public static final Color SEQ_UNSELECTED = new Color(0x37a860);
     16  public static final Color SEQ_UNSELECTED_VIEW = new Color(0x177542);
     17  public static final Color SEQ_SELECTED = new Color(0x00b5f5);
     18  public static final Color SEQ_SELECTED_VIEW = new Color(0x00769d);
     19  public static final Color SEQ_HIGHLIGHTED_IMAGE = new Color(0xf5811a);
     20  public static final Color SEQ_HIGHLIGHTED_IMG_VIEW = new Color(0xf5b81a);
     21
    1522  public static final Color MAPILLARY_GREEN = new Color(0x35af6d);
    1623  public static final Color TOOLBAR_DARK_GREY = new Color(0x242528);
Note: See TracChangeset for help on using the changeset viewer.