mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Improve terminal colors on light-colored terminal backgrounds
This commit is contained in:
parent
14fe8add58
commit
f8381749c3
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue