fix editor theme , line highlight

pull/1701/head^2
yann300 3 years ago
parent efd85a5c7e
commit 8be72682e6
  1. 4
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -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
}
})
}

Loading…
Cancel
Save