remove button styling

qt5.7 loses system styling when zoom applied
This commit is contained in:
Damien Elmes 2016-07-04 16:24:43 +10:00
parent 94463991bc
commit 704610ef8f

View File

@ -140,18 +140,10 @@ class AnkiWebView(QWebEngineView):
return max(1, dpi / 96.0)
def stdHtml(self, body, css="", bodyClass="", js=None, head=""):
if isMac:
button = "zoom: 120%;"
else:
button = "font-weight: normal;"
self.setHtml("""
<!doctype html>
<html><head><style>
body { zoom: %f; }
button {
%s
}
%s</style>
<script>
%s
@ -160,7 +152,7 @@ button {
</head>
<body class="%s">%s</body></html>""" % (
self.zoomFactor(), button, css, js or anki.js.jquery+anki.js.browserSel,
self.zoomFactor(), css, js or anki.js.jquery+anki.js.browserSel,
head, bodyClass, body))
def setCanFocus(self, canFocus=False):