mirror of
https://github.com/NinjaCheetah/NUSGet.git
synced 2026-02-27 23:25:29 -05:00
Slightly increase window size, improve about dialog
This commit is contained in:
@@ -11,7 +11,7 @@ from PySide6.QtWidgets import QDialog, QLabel, QVBoxLayout, QPushButton
|
||||
from PySide6.QtGui import QIcon
|
||||
|
||||
class AboutNUSGet(QDialog):
|
||||
def __init__(self, version_str):
|
||||
def __init__(self, versions):
|
||||
super().__init__()
|
||||
self.setWindowTitle(self.tr("About NUSGet"))
|
||||
self.setFixedWidth(450)
|
||||
@@ -83,11 +83,17 @@ class AboutNUSGet(QDialog):
|
||||
title_label.setProperty("class", "title")
|
||||
title_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
|
||||
# Version
|
||||
version_label = QLabel(self.tr("{version_str}".format(version_str=version_str)))
|
||||
# NUSGet Version
|
||||
version_label = QLabel(self.tr("Version {nusget_version}".format(nusget_version=versions[0])))
|
||||
version_label.setProperty("class", "version")
|
||||
version_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
|
||||
# Library Versions
|
||||
libraries_label = QLabel(self.tr("Using libWiiPy {libwiipy_version} & libTWLPy {libtwlpy_version}"
|
||||
.format(libwiipy_version=versions[1], libtwlpy_version=versions[2])))
|
||||
libraries_label.setProperty("class", "version")
|
||||
libraries_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
|
||||
# Copyright
|
||||
copyright_label = QLabel(self.tr("© 2024-2025 NinjaCheetah & Contributors"))
|
||||
copyright_label.setProperty("class", "copyright")
|
||||
@@ -97,6 +103,7 @@ class AboutNUSGet(QDialog):
|
||||
self.layout.addWidget(logo_label)
|
||||
self.layout.addWidget(title_label)
|
||||
self.layout.addWidget(version_label)
|
||||
self.layout.addWidget(libraries_label)
|
||||
self.layout.addWidget(copyright_label)
|
||||
self.layout.addSpacing(15)
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ class Ui_MainWindow(object):
|
||||
def setupUi(self, MainWindow):
|
||||
if not MainWindow.objectName():
|
||||
MainWindow.setObjectName(u"MainWindow")
|
||||
MainWindow.resize(1010, 625)
|
||||
MainWindow.setMinimumSize(QSize(1010, 625))
|
||||
MainWindow.setMaximumSize(QSize(1010, 625))
|
||||
MainWindow.resize(1010, 675)
|
||||
MainWindow.setMinimumSize(QSize(1010, 675))
|
||||
MainWindow.setMaximumSize(QSize(1010, 675))
|
||||
self.actionAbout = QAction(MainWindow)
|
||||
self.actionAbout.setObjectName(u"actionAbout")
|
||||
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.HelpAbout))
|
||||
@@ -310,7 +310,7 @@ class Ui_MainWindow(object):
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QMenuBar(MainWindow)
|
||||
self.menubar.setObjectName(u"menubar")
|
||||
self.menubar.setGeometry(QRect(0, 0, 1010, 21))
|
||||
self.menubar.setGeometry(QRect(0, 0, 1010, 30))
|
||||
self.menuHelp = QMenu(self.menubar)
|
||||
self.menuHelp.setObjectName(u"menuHelp")
|
||||
MainWindow.setMenuBar(self.menubar)
|
||||
@@ -359,7 +359,7 @@ class Ui_MainWindow(object):
|
||||
"hr { height: 1px; border-width: 0; }\n"
|
||||
"li.unchecked::marker { content: \"\\2610\"; }\n"
|
||||
"li.checked::marker { content: \"\\2612\"; }\n"
|
||||
"</style></head><body style=\" font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
|
||||
"</style></head><body style=\" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
|
||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;\"><br /></p></body></html>", None))
|
||||
self.menuHelp.setTitle(QCoreApplication.translate("MainWindow", u"Help", None))
|
||||
# retranslateUi
|
||||
|
||||
Reference in New Issue
Block a user