From fbe143ec0f66e0b7245db278f44511d2d26ea96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Fiti=C3=A9?= Date: Wed, 17 Jun 2020 13:33:35 +0200 Subject: improvement:layout: Small color tweaks and added polylines (#1024) * Small color tweaks and added polylines * Add color conversion support script * Bring car_dark up-to-date * dark: forgot meadow * Improve color support script * Add comments --- navit/navit_layout_car_convertrgbfordark.sh | 7 +++++++ navit/navit_layout_car_dark_shipped.xml | 29 ++++++++++++++++++++++------- navit/navit_layout_car_shipped.xml | 25 +++++++++++++++++++------ 3 files changed, 48 insertions(+), 13 deletions(-) create mode 100755 navit/navit_layout_car_convertrgbfordark.sh 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 @@ - + + @@ -84,6 +85,7 @@ + @@ -157,7 +159,8 @@ - + + @@ -165,7 +168,8 @@ - + + @@ -185,11 +189,13 @@ - + + + @@ -226,6 +232,7 @@ + @@ -244,7 +251,8 @@ - + + @@ -253,6 +261,7 @@ + @@ -269,12 +278,15 @@ + + - + + @@ -283,14 +295,17 @@ + - + + + 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 @@ + @@ -134,7 +135,8 @@ - + + @@ -142,7 +144,8 @@ - + + @@ -162,11 +165,13 @@ - + + + @@ -199,6 +204,7 @@ + @@ -217,7 +223,8 @@ - + + @@ -226,6 +233,7 @@ + @@ -242,13 +250,15 @@ + - + + @@ -261,14 +271,17 @@ + - + + + -- cgit v1.2.1