diff options
| author | DH4 | 2017-07-01 00:01:29 -0500 |
|---|---|---|
| committer | DH4 | 2017-07-01 00:01:29 -0500 |
| commit | 0a9002b42cbfa51fb826868a215202c83c97c330 (patch) | |
| tree | b26bfcfdd9bdda0082a8a6558ae212dc8cea2017 /src/components | |
| parent | a95ecd7e42b3e6b199f7bcdbe363faa8e765f869 (diff) | |
Fixed Text Colors & update button color on manual value change.
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/text.py | 5 |
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() |
