diff options
author | Johan FitiƩ <jfitie@gmail.com> | 2020-06-18 16:16:29 +0200 |
---|---|---|
committer | Johan FitiƩ <jfitie@gmail.com> | 2020-06-18 16:16:29 +0200 |
commit | b8a80160657b6d88e2b60575e1408a1f34966c37 (patch) | |
tree | e2ae4b216901722877891c6067e83b45f98d750f | |
parent | 4320c95c64f799c91ba4240fbc693881734a1b72 (diff) | |
download | navit-b8a80160657b6d88e2b60575e1408a1f34966c37.tar.gz |
Spacing
-rwxr-xr-x | navit/navit_layout_car_generatedarkxml.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/navit_layout_car_generatedarkxml.sh b/navit/navit_layout_car_generatedarkxml.sh index e7878f7b0..9c3aa70ca 100755 --- a/navit/navit_layout_car_generatedarkxml.sh +++ b/navit/navit_layout_car_generatedarkxml.sh @@ -61,13 +61,13 @@ do if [[ $l =~ .*color=\"#[0-9a-fA-F]{6}.* ]]; then # Contains rgb(a) color coll=$(echo $l | cut -d# -f2 | cut -c-6) # Get rgb color and convert - cold=$(printf '%02x' $(echo $(printf "%d" 0x${coll:0:2})/16+16 | bc)) + cold=$( printf '%02x' $(echo $(printf "%d" 0x${coll:0:2})/16+16 | bc)) cold=$cold$(printf '%02x' $(echo $(printf "%d" 0x${coll:2:2})/10+14 | bc)) - cold=$cold$(printf '%02x' $(echo $(printf "%d" 0x${coll:4:2})/8+12 | bc)) + cold=$cold$(printf '%02x' $(echo $(printf "%d" 0x${coll:4:2})/8+12 | bc)) l=$(echo $l | sed "s/#$coll/#$cold/") # Replace color fi - l=$(echo $l | sed "s/<text/<text color=\"#55c4bd\" background_color=\"#000000\"/") # Add text color + l=$(echo $l | sed "s/<text /<text color=\"#55c4bd\" background_color=\"#000000\" /") # Add text color echo $l >> $ofd # (Modified) line from light input file to dark output file |