Tweak colors of dark theme

This commit is contained in:
Jonatan Heyman 2022-12-30 17:04:42 +01:00
parent 51bb893836
commit 74bb800a4a

View File

@ -41,7 +41,8 @@ const nordTheme = /*@__PURE__*/EditorView.theme({
backgroundColor: background backgroundColor: background
}, },
'.cm-content': { '.cm-content': {
caretColor: cursor caretColor: cursor,
paddingTop: 0,
}, },
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor, borderLeftWidth:'2px', height:'19px !important', marginTop:'-2px !important' }, '.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor, borderLeftWidth:'2px', height:'19px !important', marginTop:'-2px !important' },
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection }, '&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: selection },
@ -74,12 +75,13 @@ const nordTheme = /*@__PURE__*/EditorView.theme({
'.cm-gutters': { '.cm-gutters': {
//backgroundColor: base00, //backgroundColor: base00,
backgroundColor: 'rgba(0,0,0, 0.1)', backgroundColor: 'rgba(0,0,0, 0.1)',
//backgroundColor: 'transparent',
color: lineNumberColor, color: lineNumberColor,
border: 'none' border: 'none'
}, },
'.cm-activeLineGutter': { '.cm-activeLineGutter': {
backgroundColor: highlightBackground, backgroundColor: "transparent",
color: base04 color: 'rgba(255,255,255, 0.6)'
}, },
'.cm-foldPlaceholder': { '.cm-foldPlaceholder': {
backgroundColor: 'transparent', backgroundColor: 'transparent',