mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
Switch to the system default monospaced font for the config editor area
This commit is contained in:
parent
6c982ac05b
commit
11f3d77eb1
1 changed files with 5 additions and 0 deletions
|
|
@ -474,6 +474,7 @@ class ConfigEditor(QDialog):
|
|||
self.form.setupUi(self)
|
||||
restore = self.form.buttonBox.button(QDialogButtonBox.RestoreDefaults)
|
||||
restore.clicked.connect(self.onRestoreDefaults)
|
||||
self.setupFonts()
|
||||
self.updateHelp()
|
||||
self.updateText(self.conf)
|
||||
self.show()
|
||||
|
|
@ -482,6 +483,10 @@ class ConfigEditor(QDialog):
|
|||
default_conf = self.mgr.addonConfigDefaults(self.addon)
|
||||
self.updateText(default_conf)
|
||||
|
||||
def setupFonts(self):
|
||||
font_mono = QFontDatabase.systemFont(QFontDatabase.FixedFont)
|
||||
self.form.editor.setFont(font_mono)
|
||||
|
||||
def updateHelp(self):
|
||||
txt = self.mgr.addonConfigHelp(self.addon)
|
||||
if txt:
|
||||
|
|
|
|||
Loading…
Reference in a new issue