From ea5f2bb0ef58fa028741e3b1715b47e191053bd9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Jun 2017 19:15:14 +1000 Subject: [PATCH] don't need to set bgcol when the window is transparent --- aqt/webview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aqt/webview.py b/aqt/webview.py index 14778774a..221d39678 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -149,7 +149,7 @@ class AnkiWebView(QWebEngineView): dpi = screen.logicalDpiX() return max(1, dpi / 96.0) - def stdHtml(self, body, css="", bodyClass="", js=None, head="", bgcol=None): + def stdHtml(self, body, css="", bodyClass="", js=None, head=""): if isWin: buttonspec = "button { font-size: 12px; font-family:'Segoe UI'; }" fontspec = 'font-size:12px;font-family:"Segoe UI";' @@ -169,7 +169,7 @@ border-radius:5px; font-family: Helvetica }""" html=""" %s