mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix spacing of answer text on osx, make type answer field smaller
This commit is contained in:
parent
e16647c86a
commit
90388239f1
1 changed files with 3 additions and 2 deletions
|
@ -528,6 +528,8 @@ new:
|
||||||
lambda i=i: self.cardAnswered(i))
|
lambda i=i: self.cardAnswered(i))
|
||||||
# type answer
|
# type answer
|
||||||
outer = QHBoxLayout()
|
outer = QHBoxLayout()
|
||||||
|
outer.setSpacing(0)
|
||||||
|
outer.setContentsMargins(0,0,0,0)
|
||||||
outer.addStretch(0)
|
outer.addStretch(0)
|
||||||
class QLineEditNoUndo(QLineEdit):
|
class QLineEditNoUndo(QLineEdit):
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
|
@ -544,8 +546,6 @@ new:
|
||||||
self.typeAnswerField.setObjectName("typeAnswerField")
|
self.typeAnswerField.setObjectName("typeAnswerField")
|
||||||
self.typeAnswerField.setFixedWidth(351)
|
self.typeAnswerField.setFixedWidth(351)
|
||||||
f = QFont()
|
f = QFont()
|
||||||
if sys.platform.startswith("darwin"):
|
|
||||||
self.typeAnswerField.setFixedHeight(40)
|
|
||||||
f.setPixelSize(self.config['typeAnswerFontSize'])
|
f.setPixelSize(self.config['typeAnswerFontSize'])
|
||||||
self.typeAnswerField.setFont(f)
|
self.typeAnswerField.setFont(f)
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
|
@ -554,6 +554,7 @@ new:
|
||||||
vbox.addWidget(self.typeAnswerField)
|
vbox.addWidget(self.typeAnswerField)
|
||||||
self.typeAnswerShowButton = QPushButton(_("Show Answer"))
|
self.typeAnswerShowButton = QPushButton(_("Show Answer"))
|
||||||
hbox = QHBoxLayout()
|
hbox = QHBoxLayout()
|
||||||
|
hbox.setContentsMargins(0,0,0,0)
|
||||||
hbox.addStretch(0)
|
hbox.addStretch(0)
|
||||||
hbox.addWidget(self.typeAnswerShowButton)
|
hbox.addWidget(self.typeAnswerShowButton)
|
||||||
hbox.addStretch(0)
|
hbox.addStretch(0)
|
||||||
|
|
Loading…
Reference in a new issue