Skip to content

Commit

Permalink
added version number to titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar1016 committed Jan 23, 2024
1 parent e97fcf9 commit 76ba4b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nHentaiGUI/CustomTitleBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('<span style="color: #ed2553;">n</span>Hentai GUI')
self.title_label = QLabel('<span style="color: #ed2553;">n</span>Hentai GUI' + f' v{version}')
self.title_label.setStyleSheet("font-size: 18px;")
else:
self.title_label = QLabel('Cookies 🍪')

Expand All @@ -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))
Expand Down

0 comments on commit 76ba4b4

Please sign in to comment.