changed the var location color

pull/1742/head
lianahus 3 years ago
parent 2eb29023b5
commit 4529bf8c9e
  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 warningColor = window.getComputedStyle(document.documentElement).getPropertyValue('--warning').trim()
const yellowColor = window.getComputedStyle(document.documentElement).getPropertyValue('--yellow').trim() const yellowColor = window.getComputedStyle(document.documentElement).getPropertyValue('--yellow').trim()
const pinkColor = window.getComputedStyle(document.documentElement).getPropertyValue('--pink').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 purpleColor = window.getComputedStyle(document.documentElement).getPropertyValue('--purple').trim()
const dangerColor = window.getComputedStyle(document.documentElement).getPropertyValue('--danger').trim() const dangerColor = window.getComputedStyle(document.documentElement).getPropertyValue('--danger').trim()
@ -133,9 +133,9 @@ export const EditorUI = (props: EditorUIProps) => {
{ token: 'keyword.immutable', foreground: warningColor }, { token: 'keyword.immutable', foreground: warningColor },
// data location // data location
{ token: 'keyword.memory', foreground: primaryColor }, { token: 'keyword.memory', foreground: locationColor },
{ token: 'keyword.storage', foreground: primaryColor }, { token: 'keyword.storage', foreground: locationColor },
{ token: 'keyword.calldata', foreground: primaryColor }, { token: 'keyword.calldata', foreground: locationColor },
// // forf functions and modifiers // // forf functions and modifiers
{ token: 'keyword.virtual', foreground: purpleColor }, { token: 'keyword.virtual', foreground: purpleColor },

Loading…
Cancel
Save