Replace red syntax highlighting with blueish color (#1261)

* remove bolding
* change highlight color from red to blueish
This commit is contained in:
Itay Cohen 2019-03-10 15:09:02 +02:00 committed by GitHub
parent 8b7d795a15
commit 1af9195e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -11,7 +11,6 @@ Highlighter::Highlighter(QTextDocument *parent) :
core = Core();
keywordFormat.setForeground(QColor(65, 131, 215));
keywordFormat.setFontWeight(QFont::Bold);
for (const QString &pattern : this->core->opcodes) {
rule.pattern = QRegExp("\\b" + pattern + "\\b");
@ -21,7 +20,6 @@ Highlighter::Highlighter(QTextDocument *parent) :
}
regFormat.setForeground(QColor(236, 100, 75));
regFormat.setFontWeight(QFont::Bold);
for (const QString &pattern : this->core->regs) {
rule.pattern = QRegExp("\\b" + pattern + "\\b");

View File

@ -22,8 +22,7 @@ SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent)
<< "\\static\\b" << "\\while\\b";
QTextCharFormat keywordFormat;
keywordFormat.setForeground(Qt::red);
keywordFormat.setFontWeight(QFont::Bold);
keywordFormat.setForeground(QColor(80, 200, 215));
for ( const auto &pattern : keywordPatterns ) {
rule.pattern.setPattern(pattern);