@@ -4,7 +4,7 @@ import { StyleSheet, css } from 'aphrodite'
44import BaseButton from '../../components/buttons/Base_button'
55import SettingsListItem from './list/SettingsListItem'
66import SettingsCollapsableItem from './collapsable/SettingsCollapsableItem'
7- import { setCurrentCompId , cancelSettings , toggleSettingsValue , updateSettingsValue , toggleExtraComp , goToComps } from '../../redux/actions/compositionActions'
7+ import { setCurrentCompId , cancelSettings , toggleSettingsValue , updateSettingsValue , toggleExtraComp , goToComps , rememberSettings , applySettings } from '../../redux/actions/compositionActions'
88import settings_view_selector from '../../redux/selectors/settings_view_selector'
99import Variables from '../../helpers/styles/variables'
1010
@@ -24,7 +24,36 @@ const styles = StyleSheet.create({
2424 display : 'flex' ,
2525 flexDirection : 'column'
2626 } ,
27- title : {
27+ header : {
28+ width : '100%' ,
29+ height : '60px' ,
30+ alignItems : 'center' ,
31+ display : 'flex' ,
32+ flexGrow : 0 ,
33+ padding : '10px 0' ,
34+ justifyContent : 'space-between'
35+ } ,
36+ headerTitle : {
37+ flexGrow : 0 ,
38+ fontSize : '18px' ,
39+ } ,
40+ headerButtons : {
41+ flexGrow : 0 ,
42+ display : 'inline-block' ,
43+ verticalAlign : 'top' ,
44+ } ,
45+ headerButtonsButton : {
46+ backgroundColor : 'transparent' ,
47+ borderRadius :'4px' ,
48+ color : Variables . colors . green ,
49+ cursor : 'pointer' ,
50+ display : 'inline-block' ,
51+ marginLeft : '4px' ,
52+ padding : '4px 1px' ,
53+ textDecoration : 'underline' ,
54+ verticalAlign : 'top' ,
55+ } ,
56+ headerSpacer : {
2857 width : '100%' ,
2958 flexGrow : 0 ,
3059 fontSize : '18px' ,
@@ -178,7 +207,23 @@ class Settings extends React.PureComponent {
178207 return (
179208 < div className = { css ( styles . wrapper ) } >
180209 < div className = { css ( styles . container ) } >
181- < div className = { css ( styles . title ) } > Settings</ div >
210+ < div className = { css ( styles . header ) } >
211+ < div className = { css ( styles . headerTitle ) } > Settings</ div >
212+ < div className = { css ( styles . headerButtons ) } >
213+ < button
214+ className = { css ( styles . headerButtonsButton ) }
215+ onClick = { this . props . onRememberSettings }
216+ >
217+ Remember Settings
218+ </ button >
219+ < button
220+ className = { css ( styles . headerButtonsButton ) }
221+ onClick = { this . props . onApplySettings }
222+ >
223+ Apply Settings
224+ </ button >
225+ </ div >
226+ </ div >
182227 < ul className = { css ( styles . compsList ) } >
183228 < SettingsListItem
184229 title = 'Split'
@@ -300,6 +345,8 @@ function mapStateToProps(state) {
300345
301346const mapDispatchToProps = {
302347 setCurrentCompId : setCurrentCompId ,
348+ onRememberSettings : rememberSettings ,
349+ onApplySettings : applySettings ,
303350 cancelSettings : cancelSettings ,
304351 goToComps : goToComps ,
305352 toggleSettingsValue : toggleSettingsValue ,
0 commit comments