|
|
@ -16,8 +16,8 @@ require('brace/mode/javascript') |
|
|
|
require('brace/mode/python') |
|
|
|
require('brace/mode/python') |
|
|
|
require('brace/mode/json') |
|
|
|
require('brace/mode/json') |
|
|
|
const themeChooser = require('../ui/styles-guide/theme-chooser') |
|
|
|
const themeChooser = require('../ui/styles-guide/theme-chooser') |
|
|
|
require('brace/theme/solarized_dark') |
|
|
|
require('brace/theme/chaos') |
|
|
|
require('brace/theme/solarized_light') |
|
|
|
require('brace/theme/chrome') |
|
|
|
|
|
|
|
|
|
|
|
const css = csjs` |
|
|
|
const css = csjs` |
|
|
|
.ace-editor { |
|
|
|
.ace-editor { |
|
|
@ -68,8 +68,8 @@ class Editor { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this._themes = { |
|
|
|
this._themes = { |
|
|
|
'light': 'solarized_light', |
|
|
|
'light': 'chrome', |
|
|
|
'dark': 'solarized_dark' |
|
|
|
'dark': 'chaos' |
|
|
|
} |
|
|
|
} |
|
|
|
themeChooser.event.on('switchTheme', (type) => { |
|
|
|
themeChooser.event.on('switchTheme', (type) => { |
|
|
|
this.setTheme(type) |
|
|
|
this.setTheme(type) |
|
|
|