1
0
mirror of https://gitlab.com/ceda_ei/wish synced 2025-05-10 19:56:53 +02:00
wish/themes/luminus.sh
Ceda EI 940e0cf2d7 Revert "Replace all evals with declare"
This reverts commit 315fe0bab7ed5e88bc754fa856fb24bbab92e157.
2025-04-16 16:55:27 +05:30

32 lines
760 B
Bash

#!/usr/bin/env bash
function wish_luminous_theme {
local i
local gradient=(ef7126 f7894c fea16f ffb892 ffd0b5 ffe7da 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=${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^^}_FG=${fg_gradient[$j]}"
((j++))
if [[ $j -eq ${#gradient[@]} ]]; then
j=0
fi
done
}
wish_luminous_theme