mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 14:43:46 +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();
|
core = Core();
|
||||||
|
|
||||||
keywordFormat.setForeground(QColor(65, 131, 215));
|
keywordFormat.setForeground(QColor(65, 131, 215));
|
||||||
keywordFormat.setFontWeight(QFont::Bold);
|
|
||||||
|
|
||||||
for (const QString &pattern : this->core->opcodes) {
|
for (const QString &pattern : this->core->opcodes) {
|
||||||
rule.pattern = QRegExp("\\b" + pattern + "\\b");
|
rule.pattern = QRegExp("\\b" + pattern + "\\b");
|
||||||
@ -21,7 +20,6 @@ Highlighter::Highlighter(QTextDocument *parent) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
regFormat.setForeground(QColor(236, 100, 75));
|
regFormat.setForeground(QColor(236, 100, 75));
|
||||||
regFormat.setFontWeight(QFont::Bold);
|
|
||||||
|
|
||||||
for (const QString &pattern : this->core->regs) {
|
for (const QString &pattern : this->core->regs) {
|
||||||
rule.pattern = QRegExp("\\b" + pattern + "\\b");
|
rule.pattern = QRegExp("\\b" + pattern + "\\b");
|
||||||
|
@ -22,8 +22,7 @@ SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent)
|
|||||||
<< "\\static\\b" << "\\while\\b";
|
<< "\\static\\b" << "\\while\\b";
|
||||||
|
|
||||||
QTextCharFormat keywordFormat;
|
QTextCharFormat keywordFormat;
|
||||||
keywordFormat.setForeground(Qt::red);
|
keywordFormat.setForeground(QColor(80, 200, 215));
|
||||||
keywordFormat.setFontWeight(QFont::Bold);
|
|
||||||
|
|
||||||
for ( const auto &pattern : keywordPatterns ) {
|
for ( const auto &pattern : keywordPatterns ) {
|
||||||
rule.pattern.setPattern(pattern);
|
rule.pattern.setPattern(pattern);
|
||||||
|
Loading…
Reference in New Issue
Block a user