- in Preferences, added a control in the General -> GUI Settings to control the font size for the entire application; require an app restart

This commit is contained in:
Marius Stanciu
2023-06-05 18:46:06 +03:00
parent bc1fa4ca94
commit 5708791acc
4 changed files with 51 additions and 7 deletions

View File

@@ -167,6 +167,12 @@ if __name__ == '__main__':
else:
app.setStyle('windowsvista')
if settings.contains("font_size"):
font_size = int(settings.value("font_size", type=str)) # noqa
font = QtGui.QFont()
font.setPointSize(font_size)
app.setFont(font)
fc = App(qapp=app)
# interrupt the Qt loop such that Python events have a chance to be responsive