diff --git a/ankiqt/config.py b/ankiqt/config.py index 1d3f384f9..f983c0caf 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -48,7 +48,7 @@ class Config(dict): 'interfaceLang': "", 'syncUsername': "", 'syncPassword': "", - 'showFontPreview': True, + 'showFontPreview': False, 'showToolbar': True, 'recentDeckPaths': [], 'saveAfterAnswer': True, diff --git a/ankiqt/ui/displayproperties.py b/ankiqt/ui/displayproperties.py index 3f83f06ad..e66f7fc02 100644 --- a/ankiqt/ui/displayproperties.py +++ b/ankiqt/ui/displayproperties.py @@ -68,8 +68,7 @@ class DisplayProperties(QDialog): self.main.config['showFontPreview'] = True else: self.dialog.previewGroup.hide() - self.setMinimumWidth(350) - self.setMaximumWidth(350) + self.setFixedWidth(340) self.main.config['showFontPreview'] = False def setupCards(self): diff --git a/designer/displayproperties.ui b/designer/displayproperties.ui index ee3d57d5f..789533e51 100644 --- a/designer/displayproperties.ui +++ b/designer/displayproperties.ui @@ -5,22 +5,16 @@ 0 0 - 794 - 700 + 763 + 399 - + 0 0 - - - 0 - 700 - - Fonts & Colours @@ -28,7 +22,7 @@ :/icons/fonts.png:/icons/fonts.png - + 6 @@ -46,23 +40,11 @@ - + 0 0 - - - 330 - 16 - - - - - 330 - 16777215 - - QFrame::NoFrame @@ -84,16 +66,6 @@ 0 - - - - 6 - - - 0 - - - @@ -105,405 +77,459 @@ 6 - - + + + + + + - + 0 0 - - Card: + + 0 + + + + 0 + 0 + 297 + 289 + + + + Card + + + + + + + + + 0 + 0 + + + + Card: + + + + + + + + + + + + Qt::Horizontal + + + + + + + 0 + + + 5 + + + + + Question font + + + + + + + + + + false + + + + + + + Answer size + + + + + + + Answer colour + + + + + + + Answer font + + + + + + + + + + Question alignment + + + + + + + Question size + + + + + + + 300 + + + + + + + + + + + + + false + + + + + + + 300 + + + + + + + Question colour + + + + + + + Answer alignment + + + + + + + + + + + 0 + 0 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + 0 + 0 + 297 + 437 + + + + Fields + + + + + + + 0 + 0 + + + + + 0 + 60 + + + + + + + + <b>When quizzing/adding/editing</b> + + + + + + + 0 + + + 5 + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Use custom size + + + + + + + + 0 + 25 + + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Use custom font + + + + + + + 5 + + + 300 + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Use custom colour + + + + + + + true + + + + + + false + + + + + + + + + <b>When adding/editing</b> + + + + + + + 0 + + + 5 + + + + + 5 + + + 300 + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Use custom size + + + + + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Use custom font + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + - - + + + + + + Help + + + false + + + + + + + Show preview + + + true + + + false + + + + + + + Close + + + + - - - - Card properties - - - - 6 - - - 3 - - - - - 0 - - - 5 - - - - - Question font - - - - - - - - - - false - - - - - - - Answer size - - - - - - - Answer colour - - - - - - - Answer font - - - - - - - - - - Question alignment - - - - - - - Question size - - - - - - - 300 - - - - - - - - - - - - - false - - - - - - - 300 - - - - - - - Question colour - - - - - - - Answer alignment - - - - - - - - - - - 0 - 0 - - - - - - - - - - - - - Fields - - - - 6 - - - 3 - - - - - - 0 - 0 - - - - - 0 - 60 - - - - - - - - <b>When quizzing/adding/editing</b> - - - - - - - 0 - - - 5 - - - - - - 0 - 0 - - - - - 0 - 25 - - - - Use custom size - - - - - - - - 0 - 25 - - - - - - - - - 0 - 0 - - - - - 0 - 25 - - - - Use custom font - - - - - - - 5 - - - 300 - - - - - - - - 0 - 0 - - - - - 0 - 25 - - - - Use custom colour - - - - - - - true - - - - - - false - - - - - - - - - <b>When adding/editing</b> - - - - - - - 0 - - - 5 - - - - - 5 - - - 300 - - - - - - - - 0 - 0 - - - - - 0 - 25 - - - - Use custom size - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 0 - 25 - - - - Use custom font - - - - - - - - - - - Help - - - false - - - - - - - Show preview - - - true - - - false - - - - - - - Close - - - - - - - - @@ -524,7 +550,7 @@ - + 0 0 @@ -543,7 +569,7 @@ - + 0 0 @@ -561,26 +587,6 @@ - cardList - questionFont - questionSize - questionColour - questionAlign - answerFont - answerSize - answerColour - answerAlign - fieldList - useFamily - fontFamily - useSize - fontSize - useColour - fontColour - useFamilyEdit - fontFamilyEdit - useSizeEdit - fontSizeEdit question answer @@ -588,86 +594,6 @@ - - useFamily - toggled(bool) - fontFamily - setShown(bool) - - - 118 - 503 - - - 329 - 503 - - - - - useSize - toggled(bool) - fontSize - setShown(bool) - - - 155 - 533 - - - 329 - 533 - - - - - useColour - toggled(bool) - fontColour - setShown(bool) - - - 129 - 563 - - - 329 - 562 - - - - - useFamilyEdit - toggled(bool) - fontFamilyEdit - setShown(bool) - - - 138 - 617 - - - 329 - 617 - - - - - useSizeEdit - toggled(bool) - fontSizeEdit - setShown(bool) - - - 126 - 647 - - - 326 - 647 - - - closeButton clicked() @@ -675,12 +601,12 @@ reject() - 294 - 667 + 275 + 522 - 388 - -16 + 325 + 525