mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
use a better font for field names
This commit is contained in:
parent
db64251026
commit
35b366872b
1 changed files with 7 additions and 6 deletions
|
@ -10,7 +10,7 @@ from anki.hooks import runHook, runFilter
|
||||||
from aqt.sound import getAudio
|
from aqt.sound import getAudio
|
||||||
from aqt.webview import AnkiWebView
|
from aqt.webview import AnkiWebView
|
||||||
from aqt.utils import shortcut, showInfo, showWarning, getBase, getFile, \
|
from aqt.utils import shortcut, showInfo, showWarning, getBase, getFile, \
|
||||||
openHelp
|
openHelp, fontForPlatform
|
||||||
import aqt
|
import aqt
|
||||||
import anki.js
|
import anki.js
|
||||||
from BeautifulSoup import BeautifulSoup
|
from BeautifulSoup import BeautifulSoup
|
||||||
|
@ -36,7 +36,8 @@ _html = """
|
||||||
clear: both;
|
clear: both;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
.fname { font-size: 12px; vertical-align: middle; padding: 0; }
|
.fname { font-size: 10px; vertical-align: middle; padding: 0;
|
||||||
|
font-family: "%s"; }
|
||||||
#dupes { font-size: 12px; }
|
#dupes { font-size: 12px; }
|
||||||
img { max-width: 100%%; max-height: 90%%; }
|
img { max-width: 100%%; max-height: 90%%; }
|
||||||
body { margin: 5px; }
|
body { margin: 5px; }
|
||||||
|
@ -487,10 +488,10 @@ class Editor(object):
|
||||||
self.currentField = 0
|
self.currentField = 0
|
||||||
# change timer
|
# change timer
|
||||||
if self.note:
|
if self.note:
|
||||||
self.web.setHtml(_html % (getBase(self.mw.col), anki.js.jquery,
|
self.web.setHtml(_html % (
|
||||||
|
getBase(self.mw.col), fontForPlatform(), anki.js.jquery,
|
||||||
(isMac or isWin) and 1 or 0,
|
(isMac or isWin) and 1 or 0,
|
||||||
_("Show Duplicates")),
|
_("Show Duplicates")), loadCB=self._loadFinished)
|
||||||
loadCB=self._loadFinished)
|
|
||||||
self.updateTagsAndDeck()
|
self.updateTagsAndDeck()
|
||||||
self.updateKeyboard()
|
self.updateKeyboard()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue