Improved color palette

This commit is contained in:
dylan
2023-05-07 13:58:55 -07:00
parent c53373ea47
commit 5ed92b5ff4
6 changed files with 126 additions and 28 deletions

View File

@@ -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 {