mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
tweak win button size
This commit is contained in:
parent
74de1face7
commit
8fdda2bb9c
1 changed files with 2 additions and 1 deletions
|
|
@ -140,8 +140,8 @@ class AnkiWebView(QWebEngineView):
|
||||||
return max(1, dpi / 96.0)
|
return max(1, dpi / 96.0)
|
||||||
|
|
||||||
def stdHtml(self, body, css="", bodyClass="", js=None, head=""):
|
def stdHtml(self, body, css="", bodyClass="", js=None, head=""):
|
||||||
buttonspec = ""
|
|
||||||
if isWin:
|
if isWin:
|
||||||
|
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";'
|
||||||
elif isMac:
|
elif isMac:
|
||||||
family=".AppleSystemUIFont"
|
family=".AppleSystemUIFont"
|
||||||
|
|
@ -151,6 +151,7 @@ class AnkiWebView(QWebEngineView):
|
||||||
button { font-size: 14px; -webkit-appearance: none; background: #fff; border: 1px solid #ccc;
|
button { font-size: 14px; -webkit-appearance: none; background: #fff; border: 1px solid #ccc;
|
||||||
border-radius:5px;}"""
|
border-radius:5px;}"""
|
||||||
else:
|
else:
|
||||||
|
buttonspec = ""
|
||||||
family = self.font().family()
|
family = self.font().family()
|
||||||
fontspec = 'font-size:14px;font-family:%s;'%\
|
fontspec = 'font-size:14px;font-family:%s;'%\
|
||||||
family
|
family
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue