Add dark theme

This commit is contained in:
Ramires Viana authored and Henrique Dias committed 2020-01-09 17:24:59 +00:00
1 parent cc7ec4f0c5
commit 55a9d945cc
9 files changed
+183 -1

No files matched your search

+5
View File
@@ -10,6 +10,7 @@ import buttons from '@/utils/buttons'
import ace from 'ace-builds/src-min-noconflict/ace.js'
import modelist from 'ace-builds/src-min-noconflict/ext-modelist.js'
import 'ace-builds/webpack-resolver'
import { theme } from '@/utils/constants'
export default {
name: 'editor',
@@ -45,6 +46,10 @@ export default {
mode: modelist.getModeForPath(this.req.name).mode,
wrap: true
})
if (theme == 'dark') {
this.editor.setTheme("ace/theme/twilight");
}
},
methods: {
keyEvent (event) {