1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

unfinished syntaxHighLightCheck

This commit is contained in:
Sosuke Suzuki
2017-02-04 14:41:26 +09:00
parent 27265e210f
commit 743b220953
2 changed files with 65 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import styles from './ConfigTab.styl'
import ConfigManager from 'browser/main/lib/ConfigManager'
import store from 'browser/main/store'
import consts from 'browser/lib/consts'
import CheckHighlghtEditor from '../PreferencesModal/CheckHighlightEditor'
const OSX = global.process.platform === 'darwin'
@@ -18,7 +19,6 @@ class UiTab extends React.Component {
handleUIChange (e) {
let { config } = this.state
config.ui = {
theme: this.refs.uiTheme.value,
disableDirectWrite: this.refs.uiD2w != null
@@ -62,7 +62,6 @@ class UiTab extends React.Component {
render () {
const themes = consts.THEMES
const { config } = this.state
return (
<div styleName='root'>
<div styleName='group'>
@@ -113,6 +112,11 @@ class UiTab extends React.Component {
})
}
</select>
<CheckHighlghtEditor
value="var a = 3"
ref='code'
theme={this.state.config.editor.theme}
/>
</div>
</div>
<div styleName='group-section'>