Improve terminal colors on light-colored terminal backgrounds

This commit is contained in:
Micah Lee 2021-06-22 10:49:51 -07:00
parent 14fe8add58
commit f8381749c3
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ from .common import Common
def print_header(s):
click.echo("")
click.echo(Style.BRIGHT + Fore.LIGHTWHITE_EX + s)
click.echo(Style.BRIGHT + s)
def exec_container(global_common, args):
@ -22,7 +22,7 @@ def exec_container(global_common, args):
# Hack to add colors to the command executing
if line.startswith(b"> "):
print(
Fore.YELLOW + "> " + Fore.LIGHTCYAN_EX + line.decode()[2:],
Style.DIM + "> " + Style.NORMAL + Fore.CYAN + line.decode()[2:],
end="",
)
else:

View file

@ -441,7 +441,7 @@ class GlobalCommon(object):
def exec_dangerzone_container(self, args):
args = [self.dz_container_path] + args
args_str = " ".join(pipes.quote(s) for s in args)
print(Fore.YELLOW + "> " + Fore.CYAN + args_str)
print(Style.DIM + "> " + Style.NORMAL + Fore.CYAN + args_str)
# Execute dangerzone-container
return subprocess.Popen(

View file

@ -21,7 +21,7 @@ class TaskBase(QtCore.QThread):
if line.startswith(b"> "):
print(
Fore.YELLOW + "> " + Fore.LIGHTCYAN_EX + line.decode()[2:],
Style.DIM + "> " + Style.NORMAL + Fore.CYAN + line.decode()[2:],
end="",
)
else: