主窗口支持小字体

This commit is contained in:
2023-08-13 21:30:15 +08:00
parent 5fb2bdf5f9
commit ef8c115df2
2 changed files with 31 additions and 5 deletions

View File

@@ -2163,11 +2163,11 @@ def get_now_lang()->"获取当前语言":
def SetFont(size):
font = QtGui.QFont(defaultFont)
if size == 1:
window.setFont(defaultFont)
app.setFont(defaultFont)
return
font.setPixelSize(int(defaultFont.pixelSize() / size))
font.setPointSize(int(defaultFont.pointSize() / size))
window.setFont(font)
app.setFont(font)
bottleNameLock = False