Centralize title

This commit is contained in:
Dimitris Zlatanidis 2023-02-26 21:22:40 +02:00
parent a4df3df10b
commit a6961587a7

View file

@ -51,7 +51,7 @@ class Ascii(Configs):
def draw_package_title_box(self, message, title):
""" Drawing package title box. """
middle_title = int((self.columns / 2) - len(title) + 2)
middle_title = int((self.columns / 2) - len(title) + 6)
print(f'{self.bgreen}{self.upper_left_corner}' + f'{self.horizontal_line}' * (self.columns - 2) +
f'{self.upper_right_corner}')