From 05cf509fd75bdfedf87b8e087e67e62f187439a7 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 2 Mar 2019 12:38:54 +0530 Subject: [PATCH] Add gradient theme --- themes/gradient.sh | 15 +++++++++++++++ themes/rgb_gradient.sh | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 themes/gradient.sh diff --git a/themes/gradient.sh b/themes/gradient.sh new file mode 100644 index 0000000..e77f42b --- /dev/null +++ b/themes/gradient.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +local i +local gradient=(226 118 37 66 60 237 233) +local fg_gradient=(16 16 16 16 16 15 15) +local j=0 +for i in ${WISH_PLUGINS[@]}; do + [[ $i == "newline" ]] && j=0 && continue + eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_BG=${gradient[$j]} + eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_FG=${fg_gradient[$j]} + ((j++)) + if [[ $j -eq ${#gradient[@]} ]]; then + j=0 + fi +done diff --git a/themes/rgb_gradient.sh b/themes/rgb_gradient.sh index 43c0892..9aa9797 100644 --- a/themes/rgb_gradient.sh +++ b/themes/rgb_gradient.sh @@ -3,7 +3,6 @@ local i local gradient=(ffff5f 7ad767 66b097 5e7388 534d61 3a3338 121212) local fg_gradient=(000000 000000 000000 000000 000000 ffffff ffffff) -# local gradient=(888888 999999) local j=0 for i in ${WISH_PLUGINS[@]}; do [[ $i == "newline" ]] && j=0 && continue