Ignore:
Timestamp:
2011-08-21T13:12:53+02:00 (13 years ago)
Author:
xeen
Message:

updates visual appearance of highlights and adds them to select and delete action

in more detail:

  • add target highlighting to select action
  • add target cursor to select action
  • add target highlighting to delete action
  • unify ctrl/alt/shift modifier detection in MapMode actions
  • highlights are now a halo around the way/node instead of a color change
  • default highlight color is now the same as the select color (red)
  • ability to highlight WaySegments and VirtualNodes
  • various style/whitespace nits
  • fixes #2411

This patch touches a lot of areas, so please report any regressions in the map mode
tools. Also please add a comment to #2411 if you find to highlighting in select
mode distracting, so it can be fine tuned (or turned off by default).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java

    r3896 r4327  
    1010import org.openstreetmap.josm.data.Preferences.ColorKey;
    1111import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
     12import org.openstreetmap.josm.gui.mappaint.StyleSource;
    1213import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.MapPaintSylesUpdateListener;
    13 import org.openstreetmap.josm.gui.mappaint.StyleSource;
    1414
    1515public enum PaintColors implements ColorKey {
     
    2626    INCOMPLETE_WAY(marktr("incomplete way"), new Color(0,0,96)), // darker blue
    2727    BACKGROUND(marktr("background"), Color.BLACK),
    28     HIGHLIGHT(marktr("highlight"), new Color(0, 255, 186)), // lighteal
     28    HIGHLIGHT(marktr("highlight"), SELECTED.get()),
    2929
    3030    UNTAGGED(marktr("untagged"),Color.GRAY),
Note: See TracChangeset for help on using the changeset viewer.