From 7230613ee9e8734ae1d614cf223b32f95ab12bb4 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 20 Sep 2024 22:13:45 +0300 Subject: [PATCH] Added title color Signed-off-by: Dimitris Zlatanidis --- slpkg/dialog_box.py | 1 + slpkg/remove_packages.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/slpkg/dialog_box.py b/slpkg/dialog_box.py index cfbf306d..1fd3ce11 100644 --- a/slpkg/dialog_box.py +++ b/slpkg/dialog_box.py @@ -21,6 +21,7 @@ class DialogBox(Configs): self.more_kwargs: dict = {} 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') def checklist(self, text: str, title: str, height: int, width: int, # pylint: disable=[R0913] diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index afd3c77c..b0362c36 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -146,9 +146,9 @@ class RemovePackages(Configs): # pylint: disable=[R0902] width: int = 70 list_height: int = 0 choices: list = [] - title: str = " Choose dependencies you want to remove " + title: str = "\\Z1 Choose dependencies you want to remove \\Zn" if upgrade: - title: str = ' Choose packages you want to remove ' + title: str = '\\Z1 Choose packages you want to remove \\Zn' for package in packages: installed_package: str = self.utils.is_package_installed(package)