Added title color

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-09-20 22:13:45 +03:00
parent 3bce3c2afc
commit 7230613ee9
2 changed files with 3 additions and 2 deletions

View file

@ -21,6 +21,7 @@ class DialogBox(Configs):
self.more_kwargs: dict = {} self.more_kwargs: dict = {}
self.d = Dialog(dialog="dialog") self.d = Dialog(dialog="dialog")
self.d.add_persistent_args(["--colors"])
self.d.set_background_title(f'{self.prog_name} {Version().version} - Software Package Manager') self.d.set_background_title(f'{self.prog_name} {Version().version} - Software Package Manager')
def checklist(self, text: str, title: str, height: int, width: int, # pylint: disable=[R0913] def checklist(self, text: str, title: str, height: int, width: int, # pylint: disable=[R0913]

View file

@ -146,9 +146,9 @@ class RemovePackages(Configs): # pylint: disable=[R0902]
width: int = 70 width: int = 70
list_height: int = 0 list_height: int = 0
choices: list = [] choices: list = []
title: str = " Choose dependencies you want to remove " title: str = "\\Z1 Choose dependencies you want to remove \\Zn"
if upgrade: if upgrade:
title: str = ' Choose packages you want to remove ' title: str = '\\Z1 Choose packages you want to remove \\Zn'
for package in packages: for package in packages:
installed_package: str = self.utils.is_package_installed(package) installed_package: str = self.utils.is_package_installed(package)