mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
style
This commit is contained in:
parent
183a825bdb
commit
962ed218c0
@ -1049,6 +1049,10 @@ class MAINUI:
|
||||
+ (globalconfig["settingfonttype"])
|
||||
+ "' ; }"
|
||||
)
|
||||
style += f"""
|
||||
QListWidget {{
|
||||
font:{globalconfig["settingfontsize"] + 4}pt {globalconfig["settingfonttype"]}; }}
|
||||
"""
|
||||
self.commonstylebase.setStyleSheet(style)
|
||||
|
||||
def loadui(self):
|
||||
|
@ -137,14 +137,9 @@ class Setting(closeashidewindow):
|
||||
)
|
||||
self.setCentralWidget(self.tab_widget)
|
||||
do()
|
||||
self.tab_widget.setStyleSheet(
|
||||
f"""QListWidget {{
|
||||
font:{globalconfig["settingfontsize"] + 2}pt {globalconfig["settingfonttype"]}; }}
|
||||
"""
|
||||
)
|
||||
width = 0
|
||||
fn = QFont()
|
||||
fn.setPointSizeF(globalconfig["settingfontsize"] + 2)
|
||||
fn.setPointSizeF(globalconfig["settingfontsize"] + 4)
|
||||
fn.setFamily(globalconfig["settingfonttype"])
|
||||
fm = QFontMetrics(fn)
|
||||
for title in self.tab_widget.titles:
|
||||
|
Loading…
x
Reference in New Issue
Block a user