codemirror: set cursor color to "--primary-color", set indent marker color to "--divider-color" (#25045)

* set cursor color to "--primary-color"

* indent markers' color
This commit is contained in:
ildar170975 2025-04-14 09:15:29 +03:00 committed by GitHub
parent 8ad4385d67
commit 43bb9d3401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,12 +59,16 @@ export const haTheme = EditorView.theme({
maxHeight: "var(--code-mirror-max-height, unset)",
},
"&.cm-editor": {
"--indent-marker-active-bg-color": "var(--divider-color)",
},
"&.cm-editor.cm-focused": {
outline: "none",
},
"&.cm-focused .cm-cursor": {
borderLeftColor: "var(--secondary-text-color)",
borderLeftColor: "var(--primary-color)",
},
".cm-selectionBackground, ::selection": {