Added colour for tag errors

This commit is contained in:
Veronica K. B. Olsen
2019-05-30 22:09:08 +02:00
parent ce96ac9961
commit f719266846
4 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -44,6 +44,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
self.colKey = QColor(*self.theTheme.colKey)
self.colVal = QColor(*self.theTheme.colVal)
self.colSpell = QColor(*self.theTheme.colSpell)
self.colTagErr = QColor(*self.theTheme.colTagErr)
self.hStyles = {
"header1" : self._makeFormat(self.colHead, "bold",1.8),
@@ -197,7 +198,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
self.setFormat(xPos, xLen, self.hStyles["value"])
else:
kwFmt = self.format(xPos)
kwFmt.setUnderlineColor(self.colSpell)
kwFmt.setUnderlineColor(self.colTagErr)
kwFmt.setUnderlineStyle(QTextCharFormat.SpellCheckUnderline)
self.setFormat(xPos, xLen, kwFmt)