#8447 closed enhancement (fixed)
Settings for helper "rubber" line
Reported by: | andygol | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
I searched but didn't find settings for helper "rubber" line for adjusting it appearance.
How I can set it colour, width and style (dotted, dashed, solid. etc)? Can somebody add options to adjust it?
Attachments (0)
Change History (14)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
What if I add common options for line style (width, pattern)? (color is separate)
This can be customized in different places (rubber line, extrude, improveWayAccuracy, etc.)
It is not very common to customize them, but if people want...
comment:3 by , 12 years ago
Let us try it:
draw.stroke.helper-line
, draw.anglesnap.stroke.highlight
, draw.anglesnap.stroke.helper
parameters corresponds the stroke: 2 5 10
means 2px width, 5+10px dashed line. 3
means 3px width solid line.
GuiHelper.getCustomizedStroke
is the function that decodes this preference strings.
helper-line
color is also customizable (defaults to selected color).
comment:6 by , 12 years ago
Maybe a mistake in change 5741...
In this line:
rubberLineColor = Main.pref.getColor(marktr("draw.helper-line"), null);
are you sure "draw.helper-line" is translatable?
comment:9 by , 12 years ago
Thank you. Never understood this color-translating features :)
Are you sure that there is only one line called "helper line"?
Are the translations in Extrude action correct?
http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java?rev=5741#L199
comment:10 by , 12 years ago
Color translations is easy. Simply use a user visible translatable string. The code behind will convert it into a color code. There are no hidden colors - all colors are user configurable always.
comment:12 by , 12 years ago
Could you change the name, so a human understands it --> iwa to improve way accuracy?
You can turn it on/off. Color is the select color. Style cannot be changed.