diff options
author | 2018-12-06 12:46:42 +0100 | |
---|---|---|
committer | 2018-12-06 12:46:42 +0100 | |
commit | 6dcad7469566dcfff0ab4cd7f4d1ee62aa61fb68 (patch) | |
tree | 034a4c061ab66de0b5b8e10c1d8d20604dd020bf /tools | |
parent | 615bec937c7e702f075b7e23aab075ffef9819f6 (diff) | |
download | flat-remix-6dcad7469566dcfff0ab4cd7f4d1ee62aa61fb68.tar.gz flat-remix-6dcad7469566dcfff0ab4cd7f4d1ee62aa61fb68.zip |
Update color palette
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/_colorFixer.sh | 8 | ||||
-rw-r--r-- | tools/paletteColors | 4 |
2 files changed, 7 insertions, 5 deletions
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) diff --git a/tools/paletteColors b/tools/paletteColors index bf796316f..23a19c632 100644 --- a/tools/paletteColors +++ b/tools/paletteColors @@ -12,8 +12,8 @@ #951212 #aa1414 #bf1717 #d41919 #d83030 #dd4747 #e15e5e #b22525 #ca2a2a #e43030 #fd3535 #fd4949 #fd5d5d #fe7171 #b25800 #ca6400 #e47100 #fd7d00 #fd8a19 #fd9733 #fea44c -#b38c22 #cc9f26 #e6b32b #ffc730 #ffcc44 #ffd259 #ffd86e -#ae9c49 #c6b253 #e0c85e #f8de68 #f9e177 #f9e586 #fae895 +#ffc730 #ffcc44 #ffd259 #ffd86e +#f8de68 #f9e177 #f9e586 #fae895 #272a34 #2d303b #333643 #383c4a #4c4f5c #60636e #737680 #000000 #191919 #333333 #4c4c4c #b3b3b3 #cccccc #e6e6e6 #ffffff |