From 622974a8b427e597e7befde3aaab286bf17de79a Mon Sep 17 00:00:00 2001 From: Yiyi Wang Date: Fri, 19 Jun 2020 21:08:35 +0800 Subject: [PATCH] feat: Try to support caret color. But doesn't work as expected --- src/components/Editor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index ce10e4d..c9e5913 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -605,6 +605,9 @@ export default function Editor(props: Props) { } .cm-fat-cursor-mark.cm-fat-cursor-mark { background-color: ${settingsContainer.editorCursorColor || "#333"}; +} +.CodeMirror.CodeMirror { + caret-color: ${settingsContainer.editorCursorColor || "#333"} !important; } `; }, [settingsContainer.editorCursorColor]);