diff options
author | Johan FitiƩ <jfitie@gmail.com> | 2020-06-23 19:39:56 +0200 |
---|---|---|
committer | Johan FitiƩ <jfitie@gmail.com> | 2020-06-23 19:39:56 +0200 |
commit | 69704b63a2059a6b56072026fe2282268545691f (patch) | |
tree | 9d48dfa16f45bedc612b49a2c7062406eb16f3e6 | |
parent | a19dd15c8f0a70fd99fe5970b92b26147b0daba2 (diff) | |
download | navit-69704b63a2059a6b56072026fe2282268545691f.tar.gz |
Variable
-rwxr-xr-x | navit/navit_layout_car_generatedarkxml.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/navit/navit_layout_car_generatedarkxml.sh b/navit/navit_layout_car_generatedarkxml.sh index 2707a60a0..dc87a7855 100755 --- a/navit/navit_layout_car_generatedarkxml.sh +++ b/navit/navit_layout_car_generatedarkxml.sh @@ -5,6 +5,10 @@ # navit_layout_car_dark_shipped.xml. # It's a bit of a mess, but gets the job done. +# Variables +defcol='55c4bd' + +# Settings IFS='' # Keep whitespace # Light and dark input files @@ -86,8 +90,8 @@ do # Misc. modifications l=$(echo $l | sed -r "s/_bk\./_wh\./") # Black to white icons - l=$(echo $l | sed -r "s/(<text )/\1color=\"#55c4bd\" background_color=\"#000000\" /") # Add text color - l=$(echo $l | sed -r "s/(<circle color=\"#[0-9a-fA-F]{6,8}\" )/\1background_color=\"#55c4bd\" /") # Add circle bg color + l=$(echo $l | sed -r "s/(<text )/\1color=\"#$defcol\" background_color=\"#000000\" /") # Add text color + l=$(echo $l | sed -r "s/(<circle color=\"#[0-9a-fA-F]{6,8}\" )/\1background_color=\"#$defcol\" /") # Add circle bg color echo $l >> $ofd # Modified line from light input file to dark output file |