mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-29 17:19:50 +12:00
Fixes: Contrast Problem in Notes/Refences with Dark Background #143
This commit is contained in:
parent
f2aa9abc85
commit
79f2321128
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue