mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for default
This commit is contained in:
parent
ab77226972
commit
e486283416
1 changed files with 22 additions and 22 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue