mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 13:46:06 +00:00
Replace red syntax highlighting with blueish color (#1261)
* remove bolding * change highlight color from red to blueish
This commit is contained in:
parent
8b7d795a15
commit
1af9195e21
@ -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");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user