diff --git a/ankiqt/ui/displayproperties.py b/ankiqt/ui/displayproperties.py
index e66f7fc02..5f603088a 100644
--- a/ankiqt/ui/displayproperties.py
+++ b/ankiqt/ui/displayproperties.py
@@ -209,26 +209,29 @@ class DisplayProperties(QDialog):
self.fwidget("useFamily", type).setCheckState(Qt.Checked)
self.fwidget("fontFamily", type).setCurrentFont(QFont(
getattr(field, type + 'FontFamily')))
+ self.fwidget("fontFamily", type).setEnabled(True)
else:
self.fwidget("useFamily", type).setCheckState(Qt.Unchecked)
- self.fwidget("fontFamily", type).hide()
+ self.fwidget("fontFamily", type).setEnabled(False)
# size
if getattr(field, type + 'FontSize'):
self.fwidget("useSize", type).setCheckState(Qt.Checked)
self.fwidget("fontSize", type).setValue(
getattr(field, type + 'FontSize'))
+ self.fwidget("fontSize", type).setEnabled(True)
else:
self.fwidget("useSize", type).setCheckState(Qt.Unchecked)
- self.fwidget("fontSize", type).hide()
+ self.fwidget("fontSize", type).setEnabled(False)
# colour
if type == "quiz":
if getattr(field, type + 'FontColour'):
self.fwidget("useColour", type).setCheckState(Qt.Checked)
self.fwidget("fontColour", type).setPalette(QPalette(QColor(
getattr(field, type + 'FontColour'))))
+ self.fwidget("fontColour", type).setEnabled(True)
else:
self.fwidget("useColour", type).setCheckState(Qt.Unchecked)
- self.fwidget("fontColour", type).hide()
+ self.fwidget("fontColour", type).setEnabled(False)
self.currentField = field
def saveField(self, *args):
diff --git a/designer/displayproperties.ui b/designer/displayproperties.ui
index 789533e51..0c1d45f5c 100644
--- a/designer/displayproperties.ui
+++ b/designer/displayproperties.ui
@@ -102,7 +102,7 @@
- Card
+ Cards
-
@@ -272,7 +272,7 @@
0
0
297
- 437
+ 289
@@ -298,7 +298,7 @@
-
- <b>When quizzing/adding/editing</b>
+ <b>When reviewing and editing:</b>
@@ -366,6 +366,9 @@
300
+
+ 14
+
-
@@ -405,7 +408,7 @@
-
- <b>When adding/editing</b>
+ <b>When editing (overrides above):</b>
@@ -601,8 +604,8 @@
reject()
- 275
- 522
+ 315
+ 385
325
@@ -610,5 +613,85 @@
+
+ useFamily
+ toggled(bool)
+ fontFamily
+ setEnabled(bool)
+
+
+ 107
+ 187
+
+
+ 178
+ 194
+
+
+
+
+ useSize
+ toggled(bool)
+ fontSize
+ setEnabled(bool)
+
+
+ 134
+ 226
+
+
+ 205
+ 224
+
+
+
+
+ useColour
+ toggled(bool)
+ fontColour
+ setEnabled(bool)
+
+
+ 93
+ 256
+
+
+ 175
+ 253
+
+
+
+
+ useFamilyEdit
+ toggled(bool)
+ fontFamilyEdit
+ setEnabled(bool)
+
+
+ 122
+ 299
+
+
+ 215
+ 301
+
+
+
+
+ useSizeEdit
+ toggled(bool)
+ fontSizeEdit
+ setEnabled(bool)
+
+
+ 129
+ 340
+
+
+ 210
+ 337
+
+
+