changed the var location color

pull/5370/head
lianahus 3 years ago
parent 1c95f7ed79
commit 86c6913167
  1. 8
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -88,7 +88,7 @@ export const EditorUI = (props: EditorUIProps) => {
const warningColor = window.getComputedStyle(document.documentElement).getPropertyValue('--warning').trim()
const yellowColor = window.getComputedStyle(document.documentElement).getPropertyValue('--yellow').trim()
const pinkColor = window.getComputedStyle(document.documentElement).getPropertyValue('--pink').trim()
const primaryColor = window.getComputedStyle(document.documentElement).getPropertyValue('--primary').trim()
const locationColor = '#9e7e08'
const purpleColor = window.getComputedStyle(document.documentElement).getPropertyValue('--purple').trim()
const dangerColor = window.getComputedStyle(document.documentElement).getPropertyValue('--danger').trim()
@ -133,9 +133,9 @@ export const EditorUI = (props: EditorUIProps) => {
{ token: 'keyword.immutable', foreground: warningColor },
// data location
{ token: 'keyword.memory', foreground: primaryColor },
{ token: 'keyword.storage', foreground: primaryColor },
{ token: 'keyword.calldata', foreground: primaryColor },
{ token: 'keyword.memory', foreground: locationColor },
{ token: 'keyword.storage', foreground: locationColor },
{ token: 'keyword.calldata', foreground: locationColor },
// // forf functions and modifiers
{ token: 'keyword.virtual', foreground: purpleColor },

Loading…
Cancel
Save