Fixes: Contrast Problem in Notes/Refences with Dark Background #143

This commit is contained in:
Olivier Keshavjee 2017-10-14 12:34:16 +02:00
parent f2aa9abc85
commit 79f2321128

View file

@ -66,6 +66,7 @@ class basicHighlighter(QSyntaxHighlighter):
fmt = self.format(txt.start())
fmt.setFontFixedPitch(True)
fmt.setFontWeight(QFont.DemiBold)
fmt.setForeground(Qt.black) # or text becomes unreadable in some color scheme
if txt.group(1) == Ref.TextLetter:
fmt.setBackground(QBrush(QColor(Qt.blue).lighter(190)))
elif txt.group(1) == Ref.CharacterLetter: