mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
use platform font for graphs
This commit is contained in:
parent
5cc6ebd120
commit
21a21a3f7b
1 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,8 @@
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
import os
|
import os
|
||||||
from aqt.webview import AnkiWebView
|
from aqt.webview import AnkiWebView
|
||||||
from aqt.utils import saveGeom, restoreGeom, maybeHideClose, openFolder
|
from aqt.utils import saveGeom, restoreGeom, maybeHideClose, openFolder, \
|
||||||
|
fontForPlatform
|
||||||
from anki.utils import namedtmp
|
from anki.utils import namedtmp
|
||||||
from anki.hooks import addHook
|
from anki.hooks import addHook
|
||||||
import aqt
|
import aqt
|
||||||
|
@ -131,5 +132,6 @@ class DeckStats(QDialog):
|
||||||
stats = self.mw.col.stats()
|
stats = self.mw.col.stats()
|
||||||
stats.wholeCollection = self.wholeCollection
|
stats.wholeCollection = self.wholeCollection
|
||||||
self.report = stats.report(type=self.period)
|
self.report = stats.report(type=self.period)
|
||||||
self.form.web.setHtml(self.report)
|
css = '<style>body { font-family: "%s"; } </style>' % fontForPlatform()
|
||||||
|
self.form.web.setHtml(css + self.report)
|
||||||
self.mw.progress.finish()
|
self.mw.progress.finish()
|
||||||
|
|
Loading…
Reference in a new issue