tweak colors in welcome script

This commit is contained in:
Dmytro Meleshko 2018-12-02 17:19:28 +02:00
parent ed96623fb6
commit f0af4e3261
2 changed files with 4 additions and 4 deletions

2
welcome/main.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import re
from colors import Style, COLORS

View File

@ -14,7 +14,7 @@ def get_system_info():
info_lines = []
def info(name, value, *format_args):
line = colored(name + ":", Style.BRIGHT, Fore.YELLOW) + " " + value
line = bright_colored(name + ":", Fore.YELLOW) + " " + value
if format_args:
line = line % format_args
info_lines.append(line)
@ -88,9 +88,7 @@ def _get_users():
terminals = users[name]
colored_name = bright_colored(name, Fore.BLUE)
colored_terminals = [
colored(term, Style.BRIGHT, Fore.BLACK) for term in terminals
]
colored_terminals = [colored(term, Style.DIM, Fore.WHITE) for term in terminals]
terminals_str = ", ".join(colored_terminals)
if len(colored_terminals) > 1: