+
-
-
-
-
+
+
+
+
diff --git a/components/Toggle.js b/components/Toggle.js
index 1768e92..4e510e3 100644
--- a/components/Toggle.js
+++ b/components/Toggle.js
@@ -10,6 +10,7 @@ export default class extends React.Component {
toggle() {
this.setState({ isEnabled: !this.state.isEnabled })
+ this.props.onChange(this.state.isEnabled)
}
render() {
diff --git a/components/Toolbar.js b/components/Toolbar.js
index dae638b..c83c9b2 100644
--- a/components/Toolbar.js
+++ b/components/Toolbar.js
@@ -32,7 +32,7 @@ const Toolbar = (props) => (
position: relative;
z-index: 3;
font-size: 14px;
- color: #4F6875;
+ color: #fff;
}
.buttons {
diff --git a/pages/index.js b/pages/index.js
index 0e16b85..3109bb1 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -30,7 +30,11 @@ class Index extends React.Component {
this.state = {
background: '#111111',
theme: THEMES[0].id,
- language: 'javascript' // TODO LANGUAGES[0]
+ language: 'javascript', // TODO LANGUAGES[0]
+ dropShadow: false,
+ windowControls: true,
+ paddingVertical: '48px',
+ paddingHorizontal: '32px'
}
}
@@ -69,7 +73,7 @@ class Index extends React.Component {
onBGChange={color => this.setState({ background: color })}
onThemeChange={theme => this.setState({ theme: theme.id })}
onLanguageChange={language => this.setState({ language })}
- onSettingsChange={settings => this.setState({ settings })}
+ onSettingsChange={(key, value) => this.setState({ key: value })}
bg={this.state.background}
/>