mirror of https://gitlab.com/ceda_ei/wish
Add rgb_gradient theme
This commit is contained in:
parent
cb119e2437
commit
1ac232d791
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
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
|
||||||
|
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
|
Loading…
Reference in New Issue