I have a hard time figuring out how to make a selection well recognizable.
I mainly use the cobalt theme, with the current line slightly darker, thus it’s almost impossible to see the current selection in the current line. The co-appearing words in the document are visually selected fine, and they are recognizable - a very nice feature.
import { createTheme } from "thememirror";
import { cobalt } from "thememirror";
extensions.push(cobalt);
let highlightTheme = EditorView.theme(
{
".cm-selectionMatch": {
backgroundColor: "#511",
},
"&.cm-focused .cm-selectionBackground, ::selection": {
backgroundColor: "#A22",
},
},
{ dark: true }
);
extensions.push(highlightTheme);
Tried to modify the sourcode for the cobalt theme, but no luck. I can only underline with CSS which is a bit odd and unusual annoying workaround. …
Could anyone suggest a proper solution?
Thank you very much.