|
|
@ -25,16 +25,16 @@ class Settings extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="settings-container" onClick={this.toggle}>
|
|
|
|
<div className="settings-container">
|
|
|
|
<div className={`settings-display ${this.state.isVisible ? 'is-visible' : ''}`}>
|
|
|
|
<div className={`settings-display ${this.state.isVisible ? 'is-visible' : ''}`} onClick={this.toggle}>
|
|
|
|
<SettingsIcon />
|
|
|
|
<SettingsIcon />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="settings-settings">
|
|
|
|
<div className="settings-settings">
|
|
|
|
<ThemeSelect onChange={this.props.onChange} />
|
|
|
|
<ThemeSelect onChange={this.props.onChange} />
|
|
|
|
<Toggle label="Drop shadow" onChange={this.props.onChange}/>
|
|
|
|
<Toggle label="Drop shadow" onChange={this.props.onChange.bind(null, 'dropShadow')}/>
|
|
|
|
<Toggle label="Window controls" onChange={this.props.onChange}/>
|
|
|
|
<Toggle label="Window controls" onChange={this.props.onChange.bind(null, 'windowControls')}/>
|
|
|
|
<Slider label="Padding (vertical)" onChange={this.props.onChange}/>
|
|
|
|
<Slider label="Padding (vertical)" initialValue={16} onChange={this.props.onChange.bind(null, 'paddingVertical')}/>
|
|
|
|
<Slider label="Padding (horizontal)" onChange={this.props.onChange}/>
|
|
|
|
<Slider label="Padding (horizontal)" initialValue={32} onChange={this.props.onChange.bind(null, 'paddingHorizontal')}/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style jsx>{`
|
|
|
|
<style jsx>{`
|
|
|
|
.settings-container {
|
|
|
|
.settings-container {
|
|
|
@ -76,7 +76,7 @@ class Settings extends React.Component {
|
|
|
|
width: 184px;
|
|
|
|
width: 184px;
|
|
|
|
border-radius: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: 120px;
|
|
|
|
margin-top: 132px;
|
|
|
|
background: ${PALETTE.EDITOR_BG};
|
|
|
|
background: ${PALETTE.EDITOR_BG};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|