From e3668fbcd4d4288c0e91aa090efc09279db88d40 Mon Sep 17 00:00:00 2001 From: CBYellowstone Date: Sat, 4 Jan 2025 04:32:51 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E6=9B=B4=E6=96=B0GUI=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E4=B8=BA=E5=BE=AE=E8=BD=AF=E9=9B=85=E9=BB=91=E5=B9=B6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9B=B8=E5=85=B3=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GUI_style.py | 21 ++++++++++++++------- GUI_style.ui | 23 ++++++++++++++++------- GUI_style_ui.py | 21 ++++++++++++++------- 3 files changed, 44 insertions(+), 21 deletions(-) diff --git a/GUI_style.py b/GUI_style.py index adcf6a0..5aa21cc 100644 --- a/GUI_style.py +++ b/GUI_style.py @@ -1,6 +1,6 @@ # Form implementation generated from reading ui file '.\GUI_style.ui' # -# Created by: PyQt6 UI code generator 6.5.1 +# Created by: PyQt6 UI code generator 6.8.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. @@ -18,6 +18,9 @@ def setupUi(self, AutoSubtitle): sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(AutoSubtitle.sizePolicy().hasHeightForWidth()) AutoSubtitle.setSizePolicy(sizePolicy) + font = QtGui.QFont() + font.setFamily("微软雅黑") + AutoSubtitle.setFont(font) AutoSubtitle.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) AutoSubtitle.setUnifiedTitleAndToolBarOnMac(False) self.centralwidget = QtWidgets.QWidget(parent=AutoSubtitle) @@ -25,6 +28,7 @@ def setupUi(self, AutoSubtitle): self.startButton = QtWidgets.QPushButton(parent=self.centralwidget) self.startButton.setGeometry(QtCore.QRect(120, 150, 331, 41)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(12) font.setBold(False) font.setItalic(False) @@ -35,7 +39,7 @@ def setupUi(self, AutoSubtitle): self.Title.setEnabled(True) self.Title.setGeometry(QtCore.QRect(20, 10, 341, 31)) font = QtGui.QFont() - font.setFamily("等线") + font.setFamily("微软雅黑") font.setPointSize(15) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) @@ -50,6 +54,7 @@ def setupUi(self, AutoSubtitle): self.OpenFilePathEdit = DragAcceptableQLine(parent=self.centralwidget) self.OpenFilePathEdit.setGeometry(QtCore.QRect(20, 70, 481, 31)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(10) self.OpenFilePathEdit.setFont(font) self.OpenFilePathEdit.setStatusTip("") @@ -57,6 +62,7 @@ def setupUi(self, AutoSubtitle): self.SaveFilePathEdit = QtWidgets.QLineEdit(parent=self.centralwidget) self.SaveFilePathEdit.setGeometry(QtCore.QRect(20, 110, 481, 31)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(10) self.SaveFilePathEdit.setFont(font) self.SaveFilePathEdit.setObjectName("SaveFilePathEdit") @@ -67,7 +73,7 @@ def setupUi(self, AutoSubtitle): self.Title_2.setEnabled(True) self.Title_2.setGeometry(QtCore.QRect(230, 40, 141, 21)) font = QtGui.QFont() - font.setFamily("等线") + font.setFamily("微软雅黑") font.setPointSize(13) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) @@ -76,6 +82,7 @@ def setupUi(self, AutoSubtitle): self.setSavePathToDefaultButton = QtWidgets.QPushButton(parent=self.centralwidget) self.setSavePathToDefaultButton.setGeometry(QtCore.QRect(460, 140, 41, 20)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(9) font.setBold(False) font.setItalic(False) @@ -83,14 +90,14 @@ def setupUi(self, AutoSubtitle): self.setSavePathToDefaultButton.setFont(font) self.setSavePathToDefaultButton.setObjectName("setSavePathToDefaultButton") self.FlagOPcomboBox = QtWidgets.QComboBox(parent=self.centralwidget) - self.FlagOPcomboBox.setGeometry(QtCore.QRect(530, 10, 71, 22)) + self.FlagOPcomboBox.setGeometry(QtCore.QRect(510, 10, 91, 22)) self.FlagOPcomboBox.setObjectName("FlagOPcomboBox") self.Title_3 = QtWidgets.QLabel(parent=self.centralwidget) self.Title_3.setEnabled(True) - self.Title_3.setGeometry(QtCore.QRect(370, 10, 151, 21)) + self.Title_3.setGeometry(QtCore.QRect(370, 10, 131, 21)) font = QtGui.QFont() - font.setFamily("等线") - font.setPointSize(11) + font.setFamily("微软雅黑") + font.setPointSize(10) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) self.Title_3.setFont(font) diff --git a/GUI_style.ui b/GUI_style.ui index 5832b72..17429c1 100644 --- a/GUI_style.ui +++ b/GUI_style.ui @@ -16,6 +16,11 @@ 0 + + + 微软雅黑 + + Qt::NoContextMenu @@ -37,6 +42,7 @@ + 微软雅黑 12 false false @@ -61,7 +67,7 @@ - 等线 + 微软雅黑 15 PreferDefault true @@ -108,6 +114,7 @@ + 微软雅黑 10 @@ -129,6 +136,7 @@ + 微软雅黑 10 @@ -160,7 +168,7 @@ - 等线 + 微软雅黑 13 PreferDefault true @@ -181,6 +189,7 @@ + 微软雅黑 9 false false @@ -194,9 +203,9 @@ - 530 + 510 10 - 71 + 91 22 @@ -209,14 +218,14 @@ 370 10 - 151 + 131 21 - 等线 - 11 + 微软雅黑 + 10 PreferDefault true diff --git a/GUI_style_ui.py b/GUI_style_ui.py index c5a85bb..28be70f 100644 --- a/GUI_style_ui.py +++ b/GUI_style_ui.py @@ -1,6 +1,6 @@ # Form implementation generated from reading ui file 'd:\Code\AutoSubtitle\GUI_style.ui' # -# Created by: PyQt6 UI code generator 6.5.1 +# Created by: PyQt6 UI code generator 6.8.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. @@ -18,6 +18,9 @@ def setupUi(self, AutoSubtitle): sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(AutoSubtitle.sizePolicy().hasHeightForWidth()) AutoSubtitle.setSizePolicy(sizePolicy) + font = QtGui.QFont() + font.setFamily("微软雅黑") + AutoSubtitle.setFont(font) AutoSubtitle.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) AutoSubtitle.setUnifiedTitleAndToolBarOnMac(False) self.centralwidget = QtWidgets.QWidget(parent=AutoSubtitle) @@ -25,6 +28,7 @@ def setupUi(self, AutoSubtitle): self.startButton = QtWidgets.QPushButton(parent=self.centralwidget) self.startButton.setGeometry(QtCore.QRect(120, 150, 331, 41)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(12) font.setBold(False) font.setItalic(False) @@ -35,7 +39,7 @@ def setupUi(self, AutoSubtitle): self.Title.setEnabled(True) self.Title.setGeometry(QtCore.QRect(20, 10, 341, 31)) font = QtGui.QFont() - font.setFamily("等线") + font.setFamily("微软雅黑") font.setPointSize(15) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) @@ -50,6 +54,7 @@ def setupUi(self, AutoSubtitle): self.OpenFilePathEdit = DragAcceptableQLine(parent=self.centralwidget) self.OpenFilePathEdit.setGeometry(QtCore.QRect(20, 70, 481, 31)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(10) self.OpenFilePathEdit.setFont(font) self.OpenFilePathEdit.setStatusTip("") @@ -57,6 +62,7 @@ def setupUi(self, AutoSubtitle): self.SaveFilePathEdit = QtWidgets.QLineEdit(parent=self.centralwidget) self.SaveFilePathEdit.setGeometry(QtCore.QRect(20, 110, 481, 31)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(10) self.SaveFilePathEdit.setFont(font) self.SaveFilePathEdit.setObjectName("SaveFilePathEdit") @@ -67,7 +73,7 @@ def setupUi(self, AutoSubtitle): self.Title_2.setEnabled(True) self.Title_2.setGeometry(QtCore.QRect(230, 40, 141, 21)) font = QtGui.QFont() - font.setFamily("等线") + font.setFamily("微软雅黑") font.setPointSize(13) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) @@ -76,6 +82,7 @@ def setupUi(self, AutoSubtitle): self.setSavePathToDefaultButton = QtWidgets.QPushButton(parent=self.centralwidget) self.setSavePathToDefaultButton.setGeometry(QtCore.QRect(460, 140, 41, 20)) font = QtGui.QFont() + font.setFamily("微软雅黑") font.setPointSize(9) font.setBold(False) font.setItalic(False) @@ -83,14 +90,14 @@ def setupUi(self, AutoSubtitle): self.setSavePathToDefaultButton.setFont(font) self.setSavePathToDefaultButton.setObjectName("setSavePathToDefaultButton") self.FlagOPcomboBox = QtWidgets.QComboBox(parent=self.centralwidget) - self.FlagOPcomboBox.setGeometry(QtCore.QRect(530, 10, 71, 22)) + self.FlagOPcomboBox.setGeometry(QtCore.QRect(510, 10, 91, 22)) self.FlagOPcomboBox.setObjectName("FlagOPcomboBox") self.Title_3 = QtWidgets.QLabel(parent=self.centralwidget) self.Title_3.setEnabled(True) - self.Title_3.setGeometry(QtCore.QRect(370, 10, 151, 21)) + self.Title_3.setGeometry(QtCore.QRect(370, 10, 131, 21)) font = QtGui.QFont() - font.setFamily("等线") - font.setPointSize(11) + font.setFamily("微软雅黑") + font.setPointSize(10) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault) self.Title_3.setFont(font)