From e4862834167e6dcd4d06404562f535df252f2177 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 24 Apr 2023 19:58:55 +0300 Subject: [PATCH] Updated for default --- slpkg/colors.py | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/slpkg/colors.py b/slpkg/colors.py index 2e100842..6fd83286 100644 --- a/slpkg/colors.py +++ b/slpkg/colors.py @@ -9,26 +9,26 @@ from slpkg.configs import Configs class Colors: configs = Configs() - bold: str = '\033[1m' - red: str = '\x1b[91m' - bred: str = f'{bold}{red}' - green: str = '\x1b[32m' - bgreen: str = f'{bold}{green}' - yellow: str = '\x1b[93m' - byellow: str = f'{bold}{yellow}' - cyan: str = '\x1b[96m' - blue: str = '\x1b[94m' - grey: str = '\x1b[38;5;247m' - violet: str = '\x1b[35m' - endc: str = '\x1b[0m' + bold: str = '' + red: str = '' + green: str = '' + yellow: str = '' + cyan: str = '' + blue: str = '' + grey: str = '' + violet: str = '' + endc: str = '' - if not configs.colors: - bold: str = '' - red: str = '' - green: str = '' - yellow: str = '' - cyan: str = '' - blue: str = '' - grey: str = '' - violet: str = '' - endc: str = '' + if configs.colors: + bold: str = '\033[1m' + red: str = '\x1b[91m' + bred: str = f'{bold}{red}' + green: str = '\x1b[32m' + bgreen: str = f'{bold}{green}' + yellow: str = '\x1b[93m' + byellow: str = f'{bold}{yellow}' + cyan: str = '\x1b[96m' + blue: str = '\x1b[94m' + grey: str = '\x1b[38;5;247m' + violet: str = '\x1b[35m' + endc: str = '\x1b[0m'