From 66370603e650742438126d63eeae18d1cc66176f Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 19 Oct 2021 11:18:58 +0200 Subject: [PATCH] fix line border theme --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index a01860ca81..354f1b0e8d 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -220,6 +220,7 @@ export const EditorUI = (props: EditorUIProps) => { // see https://microsoft.github.io/monaco-editor/playground.html#customizing-the-appearence-exposed-colors 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() monaco.editor.defineTheme('remix-dark', { base: 'vs-dark', inherit: true, // can also be false to completely replace the builtin rules @@ -228,7 +229,8 @@ export const EditorUI = (props: EditorUIProps) => { 'editor.background': backgroundColor, 'editorSuggestWidget.background': backgroundColor, 'editorSuggestWidget.selectedBackground': backgroundColor, - 'editorSuggestWidget.highlightForeground': infoColor + 'editorSuggestWidget.highlightForeground': infoColor, + 'editor.lineHighlightBorder': darkColor } }) }