Skip to content

Commit f272f65

Browse files
committed
white cursor for dark theme
1 parent 00220e3 commit f272f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpage/editor/line.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Line {
8989
}
9090
j++;
9191
}
92-
ctx.fillStyle = "black";
92+
ctx.fillStyle = theme === "dark" ? "white" : "black";
9393
if (drawCursors) {
9494
for (const cursor of cursors) {
9595
ctx.fillRect(x + this.moveCursor(cursor, 0) * charWidth, y, 1, this.owner.fontSize);

0 commit comments

Comments
 (0)