From ff43eb39a5cf9e7694a4d99478c1dbbad5b01b09 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 3 Dec 2016 16:51:56 +1100 Subject: [PATCH] Ascii: --ascii_colors, don't color text colors --- neofetch | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index dabee931..d44dbd11 100755 --- a/neofetch +++ b/neofetch @@ -2645,12 +2645,13 @@ get_distro_colors() { # Overwrite distro colors if '$ascii_colors' doesn't # equal 'distro'. - [[ "${ascii_colors[0]}" != "distro" ]] && \ + if [[ "${ascii_colors[0]}" != "distro" ]]; then + color_text="off" set_colors ${ascii_colors[@]} + fi } set_colors() { - # Ascii colors c1="$(color "$1")${ascii_bold}" c2="$(color "$2")${ascii_bold}" c3="$(color "$3")${ascii_bold}" @@ -2658,7 +2659,10 @@ set_colors() { c5="$(color "$5")${ascii_bold}" c6="$(color "$6")${ascii_bold}" - # Text colors + [[ "$color_text" != "off" ]] && set_text_colors $@ +} + +set_text_colors() { if [[ "${colors[0]}" == "distro" ]]; then title_color="$(color "$1")" at_color="$reset"