From 76ba4b4e7e0c203f92aea377f0e22f315cd8ef9c Mon Sep 17 00:00:00 2001 From: edgar1016 Date: Tue, 23 Jan 2024 03:27:32 -0700 Subject: [PATCH] added version number to titlebar --- nHentaiGUI/CustomTitleBar.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nHentaiGUI/CustomTitleBar.py b/nHentaiGUI/CustomTitleBar.py index e5c3e05..b588872 100644 --- a/nHentaiGUI/CustomTitleBar.py +++ b/nHentaiGUI/CustomTitleBar.py @@ -19,9 +19,12 @@ def __init__(self, main_window, settings): self.title_layout = QHBoxLayout() + version = '1.02' + # Title label with style if isinstance(self.parent, QMainWindow): - self.title_label = QLabel('nHentai GUI') + self.title_label = QLabel('nHentai GUI' + f' v{version}') + self.title_label.setStyleSheet("font-size: 18px;") else: self.title_label = QLabel('Cookies 🍪') @@ -46,8 +49,8 @@ def __init__(self, main_window, settings): self.title_layout.addWidget(self.title_label) # Add the title_label - self.title_layout.addWidget(self.title_label) self.title_layout.addStretch(1) + self.title_layout.addWidget(self.title_label) # Spacer to push buttons to the right self.title_layout.addSpacerItem(QSpacerItem(0, 0, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed))