Ignore:
Timestamp:
2009-01-09T09:42:46+01:00 (15 years ago)
Author:
stoecker
Message:

cleanup color handling

File:
1 edited

Legend:

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

    r1216 r1221  
    8585    Rectangle bbox = new Rectangle();
    8686
    87     protected void getSettings(Boolean virtual) {
    88         inactiveColor = Main.pref.getColor(marktr("inactive"), Color.DARK_GRAY);
    89         selectedColor = Main.pref.getColor(marktr("selected"), Color.WHITE);
    90         nodeColor = Main.pref.getColor(marktr("node"), Color.RED);
     87    public void getColors()
     88    {
     89        inactiveColor = Main.pref.getColor(marktr("inactive"), Color.darkGray);
     90        selectedColor = Main.pref.getColor(marktr("selected"), Color.red);
     91        nodeColor = Main.pref.getColor(marktr("node"), Color.yellow);
    9192        dfltWayColor = Main.pref.getColor(marktr("way"), darkblue);
    9293        relationColor = Main.pref.getColor(marktr("relation"), teal);
     
    9495        incompleteColor = Main.pref.getColor(marktr("incomplete way"), darkerblue);
    9596        backgroundColor = Main.pref.getColor(marktr("background"), Color.BLACK);
     97    }
     98
     99    protected void getSettings(Boolean virtual) {
    96100        showDirectionArrow = Main.pref.getBoolean("draw.segment.direction");
    97101        showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);
Note: See TracChangeset for help on using the changeset viewer.