aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDH42017-07-01 00:01:29 -0500
committerDH42017-07-01 00:01:29 -0500
commit0a9002b42cbfa51fb826868a215202c83c97c330 (patch)
treeb26bfcfdd9bdda0082a8a6558ae212dc8cea2017 /src
parenta95ecd7e42b3e6b199f7bcdbe363faa8e765f869 (diff)
Fixed Text Colors & update button color on manual value change.
Diffstat (limited to 'src')
-rw-r--r--src/components/text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/text.py b/src/components/text.py
index 7f4659f..96421e6 100644
--- a/src/components/text.py
+++ b/src/components/text.py
@@ -65,6 +65,9 @@ class Component(__base__.Component):
self.yPosition = self.page.spinBox_yTextAlign.value()
self.textColor = self.RGBFromString(
self.page.lineEdit_textColor.text())
+ btnStyle = "QPushButton { background-color : %s; outline: none; }" \
+ % QColor(*self.textColor).name()
+ self.page.pushButton_textColor.setStyleSheet(btnStyle)
self.parent.drawPreview()
super().update()
@@ -133,7 +136,7 @@ class Component(__base__.Component):
painter = QPainter(image)
self.titleFont.setPixelSize(self.fontSize)
painter.setFont(self.titleFont)
- painter.setPen(QColor(*self.textColor))
+ painter.setPen(QColor(*self.textColor[::-1]))
painter.drawText(x, y, self.title)
painter.end()