use other theme for editor

pull/3094/head
yann300 6 years ago
parent 31179645d7
commit 73d4fd5ad0
  1. 4
      src/app/editor/editor.js
  2. 2
      src/app/ui/card.js

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

@ -43,7 +43,7 @@ module.exports = class Card {
// HTML
self._view.el = yo`
<div class="list-group-item ${css.cardContainer}">
<div class="${css.cardContainer} list-group-item">
${self._view.cardHeader}
${self._view.cardBody}
</div>`

Loading…
Cancel
Save