Skip to content

Commit

Permalink
Merge pull request #28 from rundevs/development
Browse files Browse the repository at this point in the history
Add more themes on workbench
  • Loading branch information
LuiSauter authored Aug 14, 2022
2 parents 767f1b1 + 68a9edd commit 389e778
Show file tree
Hide file tree
Showing 8 changed files with 1,062 additions and 22 deletions.
4 changes: 3 additions & 1 deletion components/Playground/Editor/Editor.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useCallback, useRef } from 'react'
import EditorCode from '@monaco-editor/react'
import useThemes from '../../../hooks/useThemes'
import onedark from './onedark.json'
import onedark from './themes/onedark.json'
import onelight from './themes/onelight.json'
import style from './editor.module.css'
import useSettings from 'hooks/useSettings'

Expand All @@ -19,6 +20,7 @@ const Editor = ({ initialDoc, onChange }) => {
const handleEditorDidMount = (editor, monaco) => {
editorRef.current = editor
monaco.editor.defineTheme("atom-one-dark", onedark)
monaco.editor.defineTheme("atom-one-light", onelight)
monaco.editor.setTheme(colorTheme === '' ? themeSystem : colorTheme)
}

Expand Down
File renamed without changes.
Loading

1 comment on commit 389e778

@vercel
Copy link

@vercel vercel bot commented on 389e778 Aug 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rundev – ./

rundev-git-main-rundev.vercel.app
rundevs.vercel.app
rundev-rundev.vercel.app

Please sign in to comment.