Commit 8be72682 authored by yann300's avatar yann300

fix editor theme , line highlight

parent efd85a5c
......@@ -221,6 +221,7 @@ export const EditorUI = (props: EditorUIProps) => {
const backgroundColor = window.getComputedStyle(document.documentElement).getPropertyValue('--light').trim()
const infoColor = window.getComputedStyle(document.documentElement).getPropertyValue('--info').trim()
const darkColor = window.getComputedStyle(document.documentElement).getPropertyValue('--dark').trim()
const grayColor = window.getComputedStyle(document.documentElement).getPropertyValue('--gray-dark').trim()
monaco.editor.defineTheme('remix-dark', {
base: 'vs-dark',
inherit: true, // can also be false to completely replace the builtin rules
......@@ -230,7 +231,8 @@ export const EditorUI = (props: EditorUIProps) => {
'editorSuggestWidget.background': backgroundColor,
'editorSuggestWidget.selectedBackground': backgroundColor,
'editorSuggestWidget.highlightForeground': infoColor,
'editor.lineHighlightBorder': darkColor
'editor.lineHighlightBorder': darkColor,
'editor.lineHighlightBackground': grayColor
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment