This commit is contained in:
Marc Beninca 2024-08-26 14:58:34 +02:00
parent 060f5f5f5b
commit 33480c3702
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -74,7 +74,7 @@ _spcd_banner_add() {
else else
spcd_banner_open spcd_banner_open
fi fi
spcd_banner_append \ _spcd_banner_append \
"${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}" "${spcd_ba__filler}" "${spcd_ba__text}" "${spcd_ba__filler}"
fi fi
} }
@ -95,7 +95,7 @@ _spcd_banner_add_index() {
_spcd_banner_add "${spcd_bai__label}" _spcd_banner_add "${spcd_bai__label}"
} }
spcd_banner_append() { _spcd_banner_append() {
if [ -n "${3}" ]; then if [ -n "${3}" ]; then
SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}" SPCD_BANNER_TOP="${SPCD_BANNER_TOP}${1}"
SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}" SPCD_BANNER_MIDDLE="${SPCD_BANNER_MIDDLE}${2}"
@ -104,7 +104,7 @@ spcd_banner_append() {
} }
spcd_banner_close() { spcd_banner_close() {
spcd_banner_append \ _spcd_banner_append \
"${SPCD_BANNER_DOWN_AND_LEFT}" \ "${SPCD_BANNER_DOWN_AND_LEFT}" \
"${SPCD_BANNER_VERTICAL}" \ "${SPCD_BANNER_VERTICAL}" \
"${SPCD_BANNER_UP_AND_LEFT}" "${SPCD_BANNER_UP_AND_LEFT}"
@ -118,7 +118,7 @@ ${SPCD_BANNER_BOTTOM}"
} }
spcd_banner_open() { spcd_banner_open() {
spcd_banner_append \ _spcd_banner_append \
"${SPCD_BANNER_DOWN_AND_RIGHT}" \ "${SPCD_BANNER_DOWN_AND_RIGHT}" \
"${SPCD_BANNER_VERTICAL}" \ "${SPCD_BANNER_VERTICAL}" \
"${SPCD_BANNER_UP_AND_RIGHT}" "${SPCD_BANNER_UP_AND_RIGHT}"
@ -143,7 +143,7 @@ spcd_banner_render() {
} }
spcd_banner_split() { spcd_banner_split() {
spcd_banner_append \ _spcd_banner_append \
"${SPCD_BANNER_DOWN_AND_HORIZONTAL}" \ "${SPCD_BANNER_DOWN_AND_HORIZONTAL}" \
"${SPCD_BANNER_VERTICAL}" \ "${SPCD_BANNER_VERTICAL}" \
"${SPCD_BANNER_UP_AND_HORIZONTAL}" "${SPCD_BANNER_UP_AND_HORIZONTAL}"