diff options
author | Stefan Wildemann <metalstrolch@users.noreply.github.com> | 2020-06-15 14:16:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 14:16:55 +0200 |
commit | 173fb1a0ae96056667afadd2fa3c90365bef0b06 (patch) | |
tree | a0e57c89b0b647f3748b14369a387fcaaaa7f75d | |
parent | b6e75bdac1ef6912a80776cbec3e367ec17a1b4d (diff) | |
download | navit-173fb1a0ae96056667afadd2fa3c90365bef0b06.tar.gz |
Enhancement:layout_car:Add stripes to danger_area (#1020)
Add red diagonal stripes to danger_area. Only visible on graphics supporting textured polygon.
-rw-r--r-- | navit/navit_layout_car_shipped.xml | 9 | ||||
-rw-r--r-- | navit/textures/diagonal-stripes.svg | 70 |
2 files changed, 75 insertions, 4 deletions
diff --git a/navit/navit_layout_car_shipped.xml b/navit/navit_layout_car_shipped.xml index 6f4dee338..44e321c80 100644 --- a/navit/navit_layout_car_shipped.xml +++ b/navit/navit_layout_car_shipped.xml @@ -189,10 +189,6 @@ <polygon color="#998877"/> <text text_size="5"/> </itemgra> - <itemgra item_types="poly_danger_area" order="10-"> - <polygon color="#f2ba1b"/> - <text text_size="5"/> - </itemgra> <itemgra item_types="poly_common" order="10-"> <polygon color="#7bab36"/> <text text_size="5"/> @@ -516,6 +512,11 @@ <polygon color="#ecd3cf66"/> <text text_size="5"/> </itemgra> + <itemgra item_types="poly_danger_area" order="8-"> + <polygon color="#f2ba1b33" src="diagonal-stripes.png" w="16" h="16"/> + <polyline color="#ff0000b5"/> + <text text_size="5"/> + </itemgra> </layer> <layer name="heightlines"> <itemgra item_types="height_line_1" order="7"> diff --git a/navit/textures/diagonal-stripes.svg b/navit/textures/diagonal-stripes.svg new file mode 100644 index 000000000..a5ba67996 --- /dev/null +++ b/navit/textures/diagonal-stripes.svg @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="16" + height="16" + viewBox="0 0 16 16" + version="1.1" + id="svg8" + inkscape:version="0.92.4 5da689c313, 2019-01-14" + sodipodi:docname="diagonal-stripes.svg"> + <defs + id="defs2" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="31.678384" + inkscape:cx="7.0056832" + inkscape:cy="7.0756723" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + units="px" + inkscape:window-width="1889" + inkscape:window-height="1025" + inkscape:window-x="31" + inkscape:window-y="0" + inkscape:window-maximized="1" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Ebene 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,93.566687)"> + <path + style="fill:none;stroke:#ff0000;stroke-width:1.0015748;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.70980394;stroke-miterlimit:4;stroke-dasharray:none" + d="m 0,-81.566687 12,-12" + id="path817" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + <path + style="fill:none;stroke:#ff0000;stroke-width:1.0015748;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.70980394;stroke-miterlimit:4;stroke-dasharray:none" + d="m 12,-77.566687 4,-4" + id="path821" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + </g> +</svg> |