From f0af4e3261eca227c57e53db555b08e43915b175 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 2 Dec 2018 17:19:28 +0200 Subject: [PATCH] tweak colors in welcome script --- welcome/main.py | 2 ++ welcome/system_info.py | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 welcome/main.py diff --git a/welcome/main.py b/welcome/main.py old mode 100644 new mode 100755 index c9ff6e0..160f359 --- a/welcome/main.py +++ b/welcome/main.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import re from colors import Style, COLORS diff --git a/welcome/system_info.py b/welcome/system_info.py index 771199d..ce2993d 100644 --- a/welcome/system_info.py +++ b/welcome/system_info.py @@ -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: