From bb57d32e7a5368a68e8abca0b3059bf2e491c247 Mon Sep 17 00:00:00 2001 From: spy Date: Wed, 20 Apr 2022 18:28:54 +0100 Subject: [PATCH] Fix black text on black backgrounds --- pridefetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pridefetch b/pridefetch index 9448c7a..8c30e36 100755 --- a/pridefetch +++ b/pridefetch @@ -48,11 +48,10 @@ def draw_fetch(flag_name: str, width: int = None): # Make sure that the row color is different to the color of the hostname row_color = color256(flag[1] if flag[0] != flag[1] else flag[2], "fg") - black = '\x1b[38;5;242m' # The fetch data to be displayed row_data = [ - f"{color256(flag[0], 'fg') if row_color != black else color256(242, 'fg')}" + f"{color256(flag[0], 'fg') if flag[0] != 0 else color256(242, 'fg')}" f"\033[1m{getuser()}@{gethostname()}{reset}", f"{row_color}os {reset}{distribution() or system() or 'N/A'}", # f"{row_color}arch {reset}{architecture() or 'N/A'}",