summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2020-06-17 21:45:29 +0200
committerGitHub <noreply@github.com>2020-06-17 21:45:29 +0200
commitb63e3eca502a19da0ed0da71797ff8022eff7021 (patch)
tree3880f04727f4f88bc032269e23c41e3792d77be3
parenta9337cae4e1f5eecb1fa8dc0e83e7bf837f7e351 (diff)
parentfbe143ec0f66e0b7245db278f44511d2d26ea96e (diff)
downloadnavit-multipolygon_duplicate.tar.gz
Merge branch 'trunk' into multipolygon_duplicatemultipolygon_duplicate
-rwxr-xr-xnavit/navit_layout_car_convertrgbfordark.sh7
-rw-r--r--navit/navit_layout_car_dark_shipped.xml29
-rw-r--r--navit/navit_layout_car_shipped.xml25
3 files changed, 48 insertions, 13 deletions
diff --git a/navit/navit_layout_car_convertrgbfordark.sh b/navit/navit_layout_car_convertrgbfordark.sh
new file mode 100755
index 000000000..3d4e5daf6
--- /dev/null
+++ b/navit/navit_layout_car_convertrgbfordark.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+if [[ $1 =~ ^[0-9a-fA-F]{6}$ ]]; then
+ echo Light: $1
+ echo Dark:\ $(printf '%02x' $(echo $(printf "%d" 0x${1:0:2})/34 | bc))$(printf '%02x' $(echo $(printf "%d" 0x${1:2:2})/8 | bc))$(printf '%02x' $(echo $(printf "%d" 0x${1:4:2})/9 | bc))
+else
+ echo Usage: $0 RRGGBB
+fi
diff --git a/navit/navit_layout_car_dark_shipped.xml b/navit/navit_layout_car_dark_shipped.xml
index d96e969f9..f1eeca27d 100644
--- a/navit/navit_layout_car_dark_shipped.xml
+++ b/navit/navit_layout_car_dark_shipped.xml
@@ -67,7 +67,8 @@
</itemgra>
</cursor>
<layer name="polygons">
- <!-- Colors based on Car layout; R/34 G/8 B/9 -->
+ <!-- Colors based on car_shipped layout; R/34 G/8 B/9 -->
+ <!-- Use navit_layout_car_convertrgbfordark.sh script for color conversion -->
<itemgra item_types="image" order="0-">
<image/>
</itemgra>
@@ -84,6 +85,7 @@
</itemgra>
<itemgra item_types="poly_industry,poly_place" order="0-">
<polygon color="#061b18"/>
+ <polyline color="#051714"/>
</itemgra>
<itemgra item_types="poly_naval_base" order="10-">
<polygon color="#03140f"/>
@@ -157,7 +159,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_camp_site" order="10-">
- <polygon color="#041909"/>
+ <polygon color="#031b0d"/>
+ <polyline color="#021709"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_caravan_site" order="10-">
@@ -165,7 +168,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_golf_course" order="10-">
- <polygon color="#03190b"/>
+ <polygon color="#031b0f"/>
+ <polyline color="#02170b"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_marsh" order="10-">
@@ -185,11 +189,13 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_park" order="0-">
- <polygon color="#031909"/>
+ <polygon color="#041b0d"/>
+ <polyline color="#031709"/>
<text color="#55c4bd" background_color="#000000" text_size="5"/>
</itemgra>
<itemgra item_types="poly_heath" order="10-">
<polygon color="#061c11"/>
+ <polyline color="#05170d"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_scree" order="10-">
@@ -226,6 +232,7 @@
</itemgra>
<itemgra item_types="poly_sport" order="10-">
<polygon color="#051c0d"/>
+ <polyline color="#041709"/>
</itemgra>
<itemgra item_types="poly_fishing" order="10-">
<polygon color="#030700"/>
@@ -244,7 +251,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_picnic_site" order="10-">
- <polygon color="#030f07"/>
+ <polygon color="#061b11"/>
+ <polyline color="#05170d"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_greenhouse" order="10-">
@@ -253,6 +261,7 @@
</itemgra>
<itemgra item_types="poly_orchard" order="10-">
<polygon color="#041b10"/>
+ <polyline color="#03170d"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_plantnursery" order="10-">
@@ -269,12 +278,15 @@
</itemgra>
<itemgra item_types="poly_car_parking" order="8-">
<polygon color="#071b0d"/>
+ <polyline color="#061709"/>
</itemgra>
<itemgra item_types="poly_meadow" order="0-">
<polygon color="#051d11"/>
+ <polyline color="#031810"/>
</itemgra>
<itemgra item_types="poly_playground" order="10-">
- <polygon color="#05190d"/>
+ <polygon color="#061d11"/>
+ <polyline color="#05190d"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_land" order="0-">
@@ -283,14 +295,17 @@
</itemgra>
<itemgra item_types="poly_flats,poly_scrub,poly_military_zone,poly_marine,plantation,tundra" order="0-">
<polygon color="#041a06"/>
+ <polyline color="#05170f"/>
<text color="#55c4bd" background_color="#000000" text_size="5"/>
</itemgra>
<itemgra item_types="poly_wood" order="0-">
- <polygon color="#041a06"/>
+ <polygon color="#04170f"/>
+ <polyline color="#03130b"/>
<text color="#55c4bd" background_color="#000000" text_size="5"/>
</itemgra>
<itemgra item_types="poly_beach" order="0-">
<polygon color="#071d0d"/>
+ <polyline color="#061909"/>
<text color="#55c4bd" background_color="#000000" text_size="5"/>
</itemgra>
<itemgra item_types="poly_mud" order="0-">
diff --git a/navit/navit_layout_car_shipped.xml b/navit/navit_layout_car_shipped.xml
index c1d78ef93..053dfbb56 100644
--- a/navit/navit_layout_car_shipped.xml
+++ b/navit/navit_layout_car_shipped.xml
@@ -80,6 +80,7 @@
</itemgra>
<itemgra item_types="poly_industry,poly_place" order="0-">
<polygon color="#dddddd"/>
+ <polyline color="#bbbbbb"/>
</itemgra>
<itemgra item_types="poly_naval_base" order="10-">
<polygon color="#6a9993"/>
@@ -134,7 +135,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_camp_site" order="10-">
- <polygon color="#7dc552"/>
+ <polygon color="#77dd77"/>
+ <polyline color="#55bb55"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_caravan_site" order="10-">
@@ -142,7 +144,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_golf_course" order="10-">
- <polygon color="#66cc66"/>
+ <polygon color="#66dd88"/>
+ <polyline color="#44bb66"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_marsh" order="10-">
@@ -162,11 +165,13 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_park" order="0-">
- <polygon color="#77cc55"/>
+ <polygon color="#99dd77"/>
+ <polyline color="#77bb55"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_heath" order="10-">
<polygon color="#d6d99f"/>
+ <polyline color="#bbbb77"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_scree" order="10-">
@@ -199,6 +204,7 @@
</itemgra>
<itemgra item_types="poly_sport" order="10-">
<polygon color="#a5dc72"/>
+ <polyline color="#88bb55"/>
</itemgra>
<itemgra item_types="poly_fishing" order="10-">
<polygon color="#713907"/>
@@ -217,7 +223,8 @@
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_picnic_site" order="10-">
- <polygon color="#797548"/>
+ <polygon color="#dddd99"/>
+ <polyline color="#bbbb77"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_greenhouse" order="10-">
@@ -226,6 +233,7 @@
</itemgra>
<itemgra item_types="poly_orchard" order="10-">
<polygon color="#9edc90"/>
+ <polyline color="#77bb77"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_plantnursery" order="10-">
@@ -242,13 +250,15 @@
</itemgra>
<itemgra item_types="poly_car_parking" order="1-">
<polygon color="#eedd77"/>
+ <polyline color="#ccbb55"/>
</itemgra>
<itemgra item_types="poly_meadow" order="0-">
<polygon color="#bbee99"/>
<polyline color="#79c691"/>
</itemgra>
<itemgra item_types="poly_playground" order="10-">
- <polygon color="#b4c479"/>
+ <polygon color="#ccee99"/>
+ <polyline color="#aacc77"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_water_tiled" order="0-">
@@ -261,14 +271,17 @@
</itemgra>
<itemgra item_types="poly_flats,poly_scrub,poly_marine,plantation,tundra" order="9-">
<polygon color="#c8d7ab" src="scrub.png" w="50" h="50"/>
+ <polyline color="#aabb88"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_wood" order="0-">
- <polygon color="#8ec78d" src="wood.png" w="100" h="100"/>
+ <polygon color="#88bb88" src="wood.png" w="100" h="100"/>
+ <polyline color="#669966"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_beach" order="0-">
<polygon color="#eeee77"/>
+ <polyline color="#cccc55"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_mud" order="0-">