mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-26 19:58:50 +01:00
Change the version color
This commit is contained in:
parent
551d97b7c0
commit
b1d4c5b972
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ class ViewMessage:
|
|||
self.red = self.color['red']
|
||||
self.grey = self.color['grey']
|
||||
self.violet = self.color['violet']
|
||||
self.blue = self.color['blue']
|
||||
self.endc = self.color['endc']
|
||||
self.installed_packages = []
|
||||
self.columns, self.rows = shutil.get_terminal_size()
|
||||
|
@ -82,7 +83,8 @@ class ViewMessage:
|
|||
color = self.violet
|
||||
|
||||
print(f'{self.bgreen}{self.vl} {self.bold}{color}{package}{self.endc}' + ' ' * (35 - len(package)) +
|
||||
f'{version}' + ' ' * ((self.columns - 37) - len(version) - 1) + f'{self.bgreen}{self.vl}{self.endc}')
|
||||
f'{self.blue}{version}' + ' ' * ((self.columns - 37) - len(version) - 1) +
|
||||
f'{self.bgreen}{self.vl}{self.endc}')
|
||||
|
||||
def draw_bottom_line(self):
|
||||
""" Drawing the bottom line. """
|
||||
|
|
Loading…
Add table
Reference in a new issue