From aae04194a0cebaa156c29fa3d9b3405a51b75092 Mon Sep 17 00:00:00 2001 From: DH4 Date: Sat, 3 Jun 2017 14:38:21 -0500 Subject: Better text defaults --- components/text.py | 9 ++------- 1 file 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()) -- cgit v1.2.3