From 4b9c2b6982be58c1844d81b1df826ee2c12668cb Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 25 May 2020 17:17:53 +0530 Subject: [PATCH] Add theme luminus --- themes/luminus.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 themes/luminus.sh diff --git a/themes/luminus.sh b/themes/luminus.sh new file mode 100644 index 0000000..2621e0d --- /dev/null +++ b/themes/luminus.sh @@ -0,0 +1,31 @@ +#!/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