diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index 385390149..dfda85119 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -4,6 +4,7 @@ from aqt.qt import * from aqt.utils import askUser, getOnlyText, openLink, showWarning +from anki.utils import isWin import aqt class DeckBrowser(object): @@ -148,7 +149,7 @@ Are you sure you wish to delete all of the cards in %s?""")%deck['name']): for b in links: buf += "" % tuple(b) self.bottom.draw(buf) - self.bottom.web.setFixedHeight(32) + self.bottom.web.setFixedHeight(isWin and 36 or 32) self.bottom.web.setLinkHandler(self._linkHandler) def _onShared(self): diff --git a/aqt/editor.py b/aqt/editor.py index f336947c6..a3d3604ca 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -277,7 +277,10 @@ class Editor(object): self.widget.setStyle(self.plastiqueStyle) # icons self.iconsBox = QHBoxLayout() - self.iconsBox.setMargin(0) + if isWin: + self.iconsBox.setMargin(6) + else: + self.iconsBox.setMargin(0) self.iconsBox.setSpacing(0) self.outerLayout.addLayout(self.iconsBox) b = self._addButton diff --git a/aqt/overview.py b/aqt/overview.py index c2d469feb..b2318bd97 100644 --- a/aqt/overview.py +++ b/aqt/overview.py @@ -7,6 +7,7 @@ from aqt.qt import * from anki.consts import NEW_CARDS_RANDOM from anki.hooks import addHook from aqt.utils import showInfo, openLink +from anki.utils import isWin import aqt class Overview(object): @@ -120,7 +121,6 @@ class Overview(object): h3 { margin-bottom: 0; } .fin { font-size: 12px; font-weight: normal; } td { font-size: 14px; } -button { font-weight: bold; } .descfont { font-size: 12px; padding: 1em; color: #333; @@ -150,5 +150,5 @@ text-align: left; for b in links: buf += "" % tuple(b) self.bottom.draw(buf) - self.bottom.web.setFixedHeight(32) + self.bottom.web.setFixedHeight(isWin and 36 or 32) self.bottom.web.setLinkHandler(self._linkHandler) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 956fc0970..7d80d4cca 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -343,6 +343,9 @@ margin: 0; padding: 0px; padding-left: 5px; padding-right: 5px; } +button { +min-width: 60px; +} td { font-weight: bold; font-size: 12px; } .hitem { margin-top: 2px; } .stat { padding-top: 5px; } diff --git a/aqt/webview.py b/aqt/webview.py index cc166570d..7d5cc9f5a 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -85,7 +85,7 @@ class AnkiWebView(QWebView): if isMac: button = "font-weight: bold; height: 24px;" else: - button = "" + button = "font-weight: normal; font-size: 12px;" self.setHtml("""