fixing selection color
This commit is contained in:
@ -81,8 +81,8 @@ export const getCodeMirrorTheme = (theme: {[key: string]: string}): Extension =>
|
|||||||
},
|
},
|
||||||
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
|
||||||
{
|
{
|
||||||
backgroundColor: selection_foreground,
|
backgroundColor: brightwhite,
|
||||||
border: `0.5px solid ${selection_background}`,
|
border: `1px solid ${brightwhite}`,
|
||||||
},
|
},
|
||||||
".cm-panels": {
|
".cm-panels": {
|
||||||
backgroundColor: selection_background,
|
backgroundColor: selection_background,
|
||||||
@ -98,18 +98,15 @@ export const getCodeMirrorTheme = (theme: {[key: string]: string}): Extension =>
|
|||||||
backgroundColor: red,
|
backgroundColor: red,
|
||||||
},
|
},
|
||||||
".cm-activeLine": {
|
".cm-activeLine": {
|
||||||
// backgroundColor: highlightBackground
|
backgroundColor: `rgba(${(parseInt(selection_background.slice(1,3), 16))}, ${(parseInt(selection_background.slice(3,5), 16))}, ${(parseInt(selection_background.slice(5,7), 16))}, 0.25)`,
|
||||||
backgroundColor: `${selection_foreground}`,
|
|
||||||
},
|
},
|
||||||
".cm-selectionMatch": {
|
".cm-selectionMatch": {
|
||||||
backgroundColor: yellow,
|
backgroundColor: `rgba(${(parseInt(selection_background.slice(1,3), 16))}, ${(parseInt(selection_background.slice(3,5), 16))}, ${(parseInt(selection_background.slice(5,7), 16))}, 0.25)`,
|
||||||
outline: `1px solid ${red}`,
|
outline: `1px solid ${brightwhite}`,
|
||||||
},
|
},
|
||||||
"&.cm-focused .cm-matchingBracket": {
|
"&.cm-focused .cm-matchingBracket": {
|
||||||
color: yellow,
|
color: `rgba(${(parseInt(selection_background.slice(1,3), 16))}, ${(parseInt(selection_background.slice(3,5), 16))}, ${(parseInt(selection_background.slice(5,7), 16))}, 0.25)`,
|
||||||
// outline: `1px solid ${base02}`,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"&.cm-focused .cm-nonmatchingBracket": {
|
"&.cm-focused .cm-nonmatchingBracket": {
|
||||||
color: yellow,
|
color: yellow,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user