mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Use system-default fixed font for debug entry and log
This commit is contained in:
parent
3037bf6ef8
commit
d629ceb3b5
2 changed files with 4 additions and 5 deletions
|
@ -1171,6 +1171,10 @@ will be lost. Continue?"""))
|
||||||
d.silentlyClose = True
|
d.silentlyClose = True
|
||||||
frm = aqt.forms.debug.Ui_Dialog()
|
frm = aqt.forms.debug.Ui_Dialog()
|
||||||
frm.setupUi(d)
|
frm.setupUi(d)
|
||||||
|
font = QFontDatabase.systemFont(QFontDatabase.FixedFont)
|
||||||
|
font.setPointSize(frm.text.font().pointSize() + 1)
|
||||||
|
frm.text.setFont(font)
|
||||||
|
frm.log.setFont(font)
|
||||||
s = self.debugDiagShort = QShortcut(QKeySequence("ctrl+return"), d)
|
s = self.debugDiagShort = QShortcut(QKeySequence("ctrl+return"), d)
|
||||||
s.activated.connect(lambda: self.onDebugRet(frm))
|
s.activated.connect(lambda: self.onDebugRet(frm))
|
||||||
s = self.debugDiagShort = QShortcut(
|
s = self.debugDiagShort = QShortcut(
|
||||||
|
|
|
@ -41,11 +41,6 @@
|
||||||
<verstretch>8</verstretch>
|
<verstretch>8</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Courier</family>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::ClickFocus</enum>
|
<enum>Qt::ClickFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue