mirror of https://gitlab.com/ceda_ei/wish
Add theme icy_candy
This commit is contained in:
parent
61ade4610c
commit
869a754ede
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function wish_icy_candy_theme {
|
||||||
|
local i
|
||||||
|
local l_gradient=(f5a9b8 f6b7c3 f8c5cf fad4db fbe2e7 fdf0f3 ffffff)
|
||||||
|
local r_gradient=(5bcefa 76d6fa 91defb ade6fc c8eefd e3f6fe ffffff)
|
||||||
|
local fg_gradient=(000000 000000 000000 000000 000000 000000 000000)
|
||||||
|
local j=0
|
||||||
|
for i in "${WISH_PLUGINS[@]}"; do
|
||||||
|
[[ $i =~ newline$ ]] && j=0 && continue
|
||||||
|
eval "WISH_${i^^}_FG=${fg_gradient[$j]}"
|
||||||
|
eval "WISH_${i^^}_BG=${l_gradient[$j]}"
|
||||||
|
((j++))
|
||||||
|
if [[ $j -eq ${#l_gradient[@]} ]]; then
|
||||||
|
j=0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
j=0
|
||||||
|
for ((idx=$((${#WISH_RIGHT_PLUGINS[@]} - 1)); idx >= 0; idx--)); do
|
||||||
|
i=${WISH_RIGHT_PLUGINS[$idx]}
|
||||||
|
[[ $i =~ newline$ ]] && j=0 && continue
|
||||||
|
eval "WISH_${i^^}_BG=${r_gradient[$j]}"
|
||||||
|
eval "WISH_${i^^}_FG=${fg_gradient[$j]}"
|
||||||
|
((j++))
|
||||||
|
if [[ $j -eq ${#r_gradient[@]} ]]; then
|
||||||
|
j=0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
wish_icy_candy_theme
|
Loading…
Reference in New Issue