-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolibre-dark.sh
33 lines (32 loc) · 1.93 KB
/
colibre-dark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
find -name "*.svg" -o -name "*.SVG" | while read i;
do
echo "This $i file will updated to be Colibre Dark style"
fname=$( basename "$i")
# echo "has the name: $fname"
fdir=$( dirname "$i")
# echo "and is in the directory: ${fdir##*/}"
#inkscape -f "$i" -e "${i%.*}.png"
sed -i -e 's/#3a3a38/#3a3a37/g' "$i" #darkest grey to intermediary darkest grey
sed -i -e 's/#fafafa/#3a3a38/g' "$i" #white to darkest grey
sed -i -e 's/#3a3a37/#fafafa/g' "$i" #intermediary darkest grey to white
sed -i -e 's/#797774/#797773/g' "$i" #dark gray to intermediary dark gray
sed -i -e 's/#c8c6c4/#797774/g' "$i" #light gray to dark gray
sed -i -e 's/#797773/#c8c6c4/g' "$i" #intermediary dark grey to light grey
sed -i -e 's/#0063b1/#0063b0/g' "$i" #darkest blue to intermediary darkest blue
sed -i -e 's/#83beec/#0063b1/g' "$i" #light blue to darkest blue
sed -i -e 's/#0063b0/#83beec/g' "$i" #intermediary darkest blue to light blue
sed -i -e 's/#922e9b/#922e9a/g' "$i" #darkest purple to intermediary darkest purple
sed -i -e 's/#d492d8/#922e9b/g' "$i" #light purple to darkest purple
sed -i -e 's/#922e9a/#d492d8/g' "$i" #intermediary darkest purple to light purple
sed -i -e 's/#d42314/#d42313/g' "$i" #darkest red to intermediary darkest red
sed -i -e 's/#ff9198/#d42314/g' "$i" #light red to darkest red
sed -i -e 's/#d42313/#ff9198/g' "$i" #intermediary darkest red to light red
sed -i -e 's/#309048/#309047/g' "$i" #darkest green to intermediary darkest green
sed -i -e 's/#a1ddaa/#309048/g' "$i" #light green to darkest green
sed -i -e 's/#309047/#a1ddaa/g' "$i" #intermediary darkest green to light green
sed -i -e 's/#ed8733/#ed8732/g' "$i" #darkest orange to intermediary darkest orange
sed -i -e 's/#f8db8f/#ed8733/g' "$i" #light orange to darkest orange
sed -i -e 's/#ed8732/#f8db8f/g' "$i" #intermediary darkest orange to light orange
#convert "$i" -quality 75 "$i"
done