Update support for right prompt in themes.

This commit is contained in:
Ceda EI 2019-12-29 21:32:03 +05:30
parent b1fe80cef3
commit 343e394d40
3 changed files with 27 additions and 3 deletions

View File

@ -5,7 +5,19 @@ local gradient=(226 118 37 66 60 237 233)
local fg_gradient=(16 16 16 16 16 15 15) local fg_gradient=(16 16 16 16 16 15 15)
local j=0 local j=0
for i in ${WISH_PLUGINS[@]}; do for i in ${WISH_PLUGINS[@]}; do
[[ $i == "newline" ]] && j=0 && continue [[ $i =~ newline$ ]] && j=0 && continue
eval WISH_${i^^}_BG=${gradient[$j]}
eval WISH_${i^^}_FG=${fg_gradient[$j]}
((j++))
if [[ $j -eq ${#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=${gradient[$j]} eval WISH_${i^^}_BG=${gradient[$j]}
eval WISH_${i^^}_FG=${fg_gradient[$j]} eval WISH_${i^^}_FG=${fg_gradient[$j]}
((j++)) ((j++))

View File

@ -5,7 +5,19 @@ local i
local gradient=(e7c547 c0e551 82e35a 62e177 6bdfb3 73d4dd 7aa6da) local gradient=(e7c547 c0e551 82e35a 62e177 6bdfb3 73d4dd 7aa6da)
local j=0 local j=0
for i in ${WISH_PLUGINS[@]}; do for i in ${WISH_PLUGINS[@]}; do
[[ $i == "newline" ]] && j=0 && continue [[ $i =~ newline$ ]] && j=0 && continue
eval WISH_${i^^}_BG=-1
eval WISH_${i^^}_FG=${gradient[$j]}
((j++))
if [[ $j -eq ${#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=-1 eval WISH_${i^^}_BG=-1
eval WISH_${i^^}_FG=${gradient[$j]} eval WISH_${i^^}_FG=${gradient[$j]}
((j++)) ((j++))

View File

@ -1,7 +1,7 @@
WISH_DEFAULT_BG=-1 WISH_DEFAULT_BG=-1
WISH_DEFAULT_FG=-1 WISH_DEFAULT_FG=-1
WISH_POWERLINE=0 WISH_POWERLINE=0
for i in ${WISH_PLUGINS[@]}; do for i in ${WISH_PLUGINS[@]} ${WISH_RIGHT_PLUGINS[@]}; do
eval WISH_${i^^}_BG=-1 eval WISH_${i^^}_BG=-1
eval WISH_${i^^}_FG=-1 eval WISH_${i^^}_FG=-1
done done