diff options
| author | DH4 | 2017-06-03 14:38:21 -0500 |
|---|---|---|
| committer | DH4 | 2017-06-03 14:38:21 -0500 |
| commit | aae04194a0cebaa156c29fa3d9b3405a51b75092 (patch) | |
| tree | 0941226a24630450a9770d3fa94fb91d69d40f85 | |
| parent | d417833193882acef0023a1c8e1f82b8222f89ae (diff) | |
Better text defaults
| -rw-r--r-- | components/text.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/text.py b/components/text.py index bfc9701..7efde39 100644 --- a/components/text.py +++ b/components/text.py @@ -20,19 +20,14 @@ class Component(__base__.Component): self.title = 'Text' self.titleFont = None self.alignment = 1 - self.fontSize = height / 16 + self.fontSize = height / 13.5 self.xPosition = width / 2 - self.yPosition = height / 2 + self.yPosition = height / 2 * 1.036 page = uic.loadUi(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'text.ui')) page.comboBox_textAlign.addItem("Left") page.comboBox_textAlign.addItem("Middle") page.comboBox_textAlign.addItem("Right") - page.comboBox_textAlign.setCurrentIndex(1) - - page.spinBox_fontSize.setValue(int(int(parent.settings.value("outputHeight")) / 14 )) - page.spinBox_xTextAlign.setValue(int(int(parent.settings.value('outputWidth'))/2)) - page.spinBox_yTextAlign.setValue(int(int(parent.settings.value('outputHeight'))/2)) page.lineEdit_textColor.setText('%s,%s,%s' % self.textColor) page.pushButton_textColor.clicked.connect(lambda: self.pickColor()) |
