Modify

Opened 18 years ago

Closed 18 years ago

#135 closed defect (fixed)

Segment order numbers do not respect user's colour prefs

Reported by: anonymous Owned by: imi
Priority: trivial Milestone:
Component: unspecified Version: latest
Keywords: Cc:

Description

The background colour of segment order numbers is fixed as black but it should match the user's colour preferences.

Attachments (0)

Change History (2)

comment:1 by anonymous, 18 years ago

Index: src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
===================================================================
--- src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java (revision 219)
+++ src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java (working copy)
@@ -104,7 +104,7 @@

int x = (p1.x+p2.x)/2 - 4*strlen;

int y = (p1.y+p2.y)/2 + 4;

Color c = g.getColor();

  • g.setColor(Color.black);

+ g.setColor(getPreferencesColor("background", Color.black));

g.fillRect(x-1,y-12,8*strlen+1,14);

g.setColor(c);

g.drawString(""+orderNumber,x,y);

comment:2 by anonymous, 18 years ago

Resolution: fixed
Status: newclosed

fixed in @221 as part of rendering speedup patch submitted by eai@…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain imi.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.