[code] Use named colors

This commit is contained in:
Romain Goyet
2018-06-04 14:55:37 +02:00
committed by EmilieNumworks
parent 6cd18cca89
commit b52590e2f7

View File

@@ -92,8 +92,8 @@ void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char
fromColumn,
text + fromColumn,
min(length - fromColumn, toColumn - fromColumn),
KDColorBlack,
KDColorWhite
StringColor,
BackgroundColor
);
return;
}
@@ -129,7 +129,7 @@ void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char
text + tokenFrom, // text
tokenLength, // length
tokenColor,
KDColorWhite
BackgroundColor
);
mp_lexer_to_next(lex);
@@ -144,7 +144,7 @@ void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char
text + tokenFrom, // text
length - tokenFrom, // length
CommentColor,
KDColorWhite
BackgroundColor
);
}