You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
#! /usr/bin/env bash
|
|
|
|
for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Nord' '-Grey'; do
|
|
case "$theme" in
|
|
'')
|
|
theme_color_dark='#1a73e8'
|
|
theme_color_light='#3281ea'
|
|
;;
|
|
-Purple)
|
|
theme_color_dark='#AB47BC'
|
|
theme_color_light='#BA68C8'
|
|
;;
|
|
-Pink)
|
|
theme_color_dark='#EC407A'
|
|
theme_color_light='#F06292'
|
|
;;
|
|
-Red)
|
|
theme_color_dark='#E53935'
|
|
theme_color_light='#F44336'
|
|
;;
|
|
-Orange)
|
|
theme_color_dark='#F57C00'
|
|
theme_color_light='#FB8C00'
|
|
;;
|
|
-Yellow)
|
|
theme_color_dark='#FBC02D'
|
|
theme_color_light='#FFD600'
|
|
;;
|
|
-Green)
|
|
theme_color_dark='#4CAF50'
|
|
theme_color_light='#66BB6A'
|
|
;;
|
|
-Teal)
|
|
theme_color_dark='#009688'
|
|
theme_color_light='#4DB6AC'
|
|
;;
|
|
-Nord)
|
|
theme_color_dark='#8FBCBB'
|
|
theme_color_light='#8FBCBB'
|
|
;;
|
|
-Grey)
|
|
theme_color_dark='#616161'
|
|
theme_color_light='#DDDDDD'
|
|
;;
|
|
esac
|
|
|
|
if [[ "$theme" != '' ]]; then
|
|
rm -rf "theme${theme}"
|
|
cp -rf "theme" "theme${theme}"
|
|
sed -i "s/#1a73e8/${theme_color_dark}/g" "theme${theme}"/*.svg
|
|
sed -i "s/#3281ea/${theme_color_light}/g" "theme${theme}"/*.svg
|
|
fi
|
|
done
|
|
|
|
echo -e "DONE!"
|