diff options
| -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 |
