mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for colors
This commit is contained in:
parent
29ddc89beb
commit
ac086f188d
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ class ViewMessage(Configs):
|
||||||
if mode == 'upgrade':
|
if mode == 'upgrade':
|
||||||
color: str = self.violet
|
color: str = self.violet
|
||||||
|
|
||||||
if package in self.all_installed and mode == 'install':
|
# If the package is installed and not upgradeable change the color to gray.
|
||||||
|
if (package in self.all_installed and mode == 'install' and
|
||||||
|
not self.utils.is_package_upgradeable(package, self.file_pattern)):
|
||||||
color = self.grey
|
color = self.grey
|
||||||
|
|
||||||
self.ascii.draw_view_package(package, version, color)
|
self.ascii.draw_view_package(package, version, color)
|
||||||
|
|
Loading…
Add table
Reference in a new issue