aboutsummaryrefslogtreecommitdiff
path: root/icon-theme/changeFillColor.sh
blob: 32e76b8ca60cffecadabe03b4b43c52f8a1812a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

THEME=${1}
COLOR=${2}
if [ "z" == "${THEME}z" ] || [ "z" == "${COLOR}z" ]; then
  echo "Usage: changeFillColor.sh <ThemeDir> <HexColor>"
  return 1;
fi

echo "Changing Fill color: ${THEME} files to ${COLOR}"
for i in `find ${THEME} | grep svg`
do
  echo "Found File ${i}"
  sed -i '' "s/ fill=\"#000000\" / fill=\"${COLOR}\" /g" ${i}
done
bgstack15