Updated for default

This commit is contained in:
Dimitris Zlatanidis 2023-04-24 19:58:55 +03:00
parent ab77226972
commit e486283416

View file

@ -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'