This commit is contained in:
恍兮惚兮 2024-06-24 19:35:17 +08:00
parent 183a825bdb
commit 962ed218c0
2 changed files with 5 additions and 6 deletions

View File

@ -1049,6 +1049,10 @@ class MAINUI:
+ (globalconfig["settingfonttype"]) + (globalconfig["settingfonttype"])
+ "' ; }" + "' ; }"
) )
style += f"""
QListWidget {{
font:{globalconfig["settingfontsize"] + 4}pt {globalconfig["settingfonttype"]}; }}
"""
self.commonstylebase.setStyleSheet(style) self.commonstylebase.setStyleSheet(style)
def loadui(self): def loadui(self):

View File

@ -137,14 +137,9 @@ class Setting(closeashidewindow):
) )
self.setCentralWidget(self.tab_widget) self.setCentralWidget(self.tab_widget)
do() do()
self.tab_widget.setStyleSheet(
f"""QListWidget {{
font:{globalconfig["settingfontsize"] + 2}pt {globalconfig["settingfonttype"]}; }}
"""
)
width = 0 width = 0
fn = QFont() fn = QFont()
fn.setPointSizeF(globalconfig["settingfontsize"] + 2) fn.setPointSizeF(globalconfig["settingfontsize"] + 4)
fn.setFamily(globalconfig["settingfonttype"]) fn.setFamily(globalconfig["settingfonttype"])
fm = QFontMetrics(fn) fm = QFontMetrics(fn)
for title in self.tab_widget.titles: for title in self.tab_widget.titles: