Improved color palette
This commit is contained in:
@@ -351,9 +351,9 @@ const valueColor = COLOR.ORANGE;
|
||||
const stringColor = COLOR.GREEN;
|
||||
const regexColor = stringColor;
|
||||
const punctuationColor = COLOR.LIGHTGRAY;
|
||||
const commentColor = COLOR.GRAY;
|
||||
const identifierColor = COLOR.REDDISH;
|
||||
const invalidColor = COLOR.RED;
|
||||
const commentColor = COLOR.DARKGREEN;
|
||||
const identifierColor = COLOR.RED;
|
||||
const invalidColor = COLOR.DARKRED;
|
||||
|
||||
const tokenColors = {
|
||||
"StringLiteral": stringColor,
|
||||
@@ -382,7 +382,7 @@ const drawCodeField = (code: string, x: number, y: number, w: number, h: number)
|
||||
focusX,
|
||||
focusY,
|
||||
} = state;
|
||||
fillRect(x, y, w, h, COLOR.DARKBLUE);
|
||||
fillRect(x, y, w, h, COLOR.DARKERBLUE);
|
||||
if (anchor === focus) {
|
||||
fillRect(x+focusX*fontWidth-scrollX, y+focusY*(fontHeight+1)-scrollY, fontWidth+1, fontHeight+1, COLOR.YELLOW);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user