From 6dcad7469566dcfff0ab4cd7f4d1ee62aa61fb68 Mon Sep 17 00:00:00 2001 From: Daniel Ruiz de Alegría Date: Thu, 6 Dec 2018 12:46:42 +0100 Subject: Update color palette --- tools/_colorFixer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/_colorFixer.sh') diff --git a/tools/_colorFixer.sh b/tools/_colorFixer.sh index 037499ff1..0e3796d44 100755 --- a/tools/_colorFixer.sh +++ b/tools/_colorFixer.sh @@ -46,7 +46,7 @@ function findNearestColor { echo $bestColor } -for file in $(find -name "$FILE_NAME" -maxdepth 1 -type f -printf "%f\n") +for file in $(find -iname "$FILE_NAME" -maxdepth 1 -type f -printf "%f\n") do echo =================================================== echo $file @@ -56,9 +56,11 @@ do do if [[ ${file_color:0:1} = '#' ]] then - file_color=$(hexToRgb $file_color) + file_color_rgb=$(hexToRgb $file_color) + new_color=$(findNearestColor $file_color_rgb) + else + new_color=$(findNearestColor $file_color) fi - new_color=$(findNearestColor $file_color) echo $file_color '->' $new_color svg=$(sed "s/$file_color/$new_color/g" <<< $svg) -- cgit v1.2.3