mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
remove unused bodyClass arg
This commit is contained in:
parent
82aeb57318
commit
c8e8225395
1 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ class AnkiWebView(QWebEngineView):
|
||||||
dpi = screen.logicalDpiX()
|
dpi = screen.logicalDpiX()
|
||||||
return max(1, dpi / 96.0)
|
return max(1, dpi / 96.0)
|
||||||
|
|
||||||
def stdHtml(self, body, css="", bodyClass="", js=["jquery.js"], head=""):
|
def stdHtml(self, body, css="", js=["jquery.js"], head=""):
|
||||||
if isWin:
|
if isWin:
|
||||||
buttonspec = "button { font-size: 12px; font-family:'Segoe UI'; }"
|
buttonspec = "button { font-size: 12px; font-family:'Segoe UI'; }"
|
||||||
fontspec = 'font-size:12px;font-family:"Segoe UI";'
|
fontspec = 'font-size:12px;font-family:"Segoe UI";'
|
||||||
|
@ -188,13 +188,13 @@ body { zoom: %f; %s }
|
||||||
%s
|
%s
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="%s">%s</body></html>""" % (
|
<body>%s</body></html>""" % (
|
||||||
self.title,
|
self.title,
|
||||||
self.zoomFactor(),
|
self.zoomFactor(),
|
||||||
fontspec,
|
fontspec,
|
||||||
buttonspec,
|
buttonspec,
|
||||||
css, jstxt,
|
css, jstxt,
|
||||||
head, bodyClass, body)
|
head, body)
|
||||||
#print(html)
|
#print(html)
|
||||||
self.setHtml(html)
|
self.setHtml(html)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue