@@ -5,7 +5,7 @@ import { replace, goBack } from 'react-router-redux';
5
5
import { CircularProgress } from 'material-ui/Progress' ;
6
6
import ActionHome from 'material-ui-icons/Home' ;
7
7
import ActionSettings from 'material-ui-icons/Settings' ;
8
- import BottomNavigation , { BottomNavigationButton } from 'material-ui/BottomNavigation' ;
8
+ import BottomNavigation , { BottomNavigationAction } from 'material-ui/BottomNavigation' ;
9
9
import Button from 'material-ui/Button' ;
10
10
import Paper from 'material-ui/Paper' ;
11
11
import Snackbar from 'material-ui/Snackbar' ;
@@ -28,7 +28,7 @@ const styles = theme => ({
28
28
height : '100vh' ,
29
29
width : '100vw' ,
30
30
overflow : 'hidden' ,
31
- backgroundColor : theme . palette . background . contentFrame ,
31
+ backgroundColor : theme . palette . background . default ,
32
32
position : 'relative' ,
33
33
display : 'flex' ,
34
34
flexDirection : 'column' ,
@@ -48,7 +48,7 @@ const styles = theme => ({
48
48
fakeTitleBar : {
49
49
flexBasis : 22 ,
50
50
height : 22 ,
51
- backgroundColor : theme . palette . primary [ 700 ] ,
51
+ backgroundColor : theme . palette . primary . dark ,
52
52
color : '#fff' ,
53
53
textAlign : 'center' ,
54
54
fontSize : 13 ,
@@ -106,7 +106,7 @@ class App extends React.Component {
106
106
}
107
107
108
108
setAppTitleBar ( primaryColorId ) {
109
- const color = colorPairs [ primaryColorId ] [ 700 ] ;
109
+ const color = colorPairs [ primaryColorId ] . dark ;
110
110
111
111
if ( getPlatform ( ) === 'windows' ) {
112
112
/* global Windows */
@@ -149,7 +149,7 @@ class App extends React.Component {
149
149
children,
150
150
classes,
151
151
fullPageLoading,
152
- onBottomNavigationButtonClick ,
152
+ onBottomNavigationActionClick ,
153
153
onRequestCloseSnackbar,
154
154
shouldShowBottomNav,
155
155
snackbarMessage,
@@ -177,7 +177,7 @@ class App extends React.Component {
177
177
autoHideDuration = { 4000 }
178
178
onRequestClose = { onRequestCloseSnackbar }
179
179
action = { (
180
- < Button color = "accent" dense onClick = { onRequestCloseSnackbar } >
180
+ < Button color = "secondary" size = "small" onClick = { onRequestCloseSnackbar } >
181
181
{ strings . close }
182
182
</ Button >
183
183
) }
@@ -186,20 +186,20 @@ class App extends React.Component {
186
186
{ bottomNavigationSelectedIndex > - 1 && shouldShowBottomNav && (
187
187
< Paper elevation = { 2 } style = { { zIndex : 1000 } } >
188
188
< BottomNavigation value = { bottomNavigationSelectedIndex } showLabels >
189
- < BottomNavigationButton
189
+ < BottomNavigationAction
190
190
label = { strings . home }
191
191
icon = { < ActionHome className = { classes . icon } /> }
192
- onClick = { ( ) => onBottomNavigationButtonClick ( '/' ) }
192
+ onClick = { ( ) => onBottomNavigationActionClick ( '/' ) }
193
193
/>
194
- < BottomNavigationButton
194
+ < BottomNavigationAction
195
195
label = { strings . phrasebook }
196
196
icon = { < ToggleStar className = { classes . icon } /> }
197
- onClick = { ( ) => onBottomNavigationButtonClick ( '/phrasebook' ) }
197
+ onClick = { ( ) => onBottomNavigationActionClick ( '/phrasebook' ) }
198
198
/>
199
- < BottomNavigationButton
199
+ < BottomNavigationAction
200
200
label = { strings . settings }
201
201
icon = { < ActionSettings className = { classes . icon } /> }
202
- onClick = { ( ) => onBottomNavigationButtonClick ( '/settings' ) }
202
+ onClick = { ( ) => onBottomNavigationActionClick ( '/settings' ) }
203
203
/>
204
204
</ BottomNavigation >
205
205
</ Paper >
@@ -216,7 +216,7 @@ App.propTypes = {
216
216
classes : PropTypes . object . isRequired ,
217
217
fullPageLoading : PropTypes . bool ,
218
218
onBackClick : PropTypes . func . isRequired ,
219
- onBottomNavigationButtonClick : PropTypes . func . isRequired ,
219
+ onBottomNavigationActionClick : PropTypes . func . isRequired ,
220
220
onRequestCloseSnackbar : PropTypes . func . isRequired ,
221
221
onResize : PropTypes . func . isRequired ,
222
222
primaryColorId : PropTypes . string ,
@@ -263,7 +263,7 @@ const mapDispatchToProps = dispatch => ({
263
263
dispatch ( screenResize ( window . innerWidth ) ) ;
264
264
dispatch ( updateImeMode ( null ) ) ;
265
265
} ,
266
- onBottomNavigationButtonClick : pathname => dispatch ( replace ( pathname ) ) ,
266
+ onBottomNavigationActionClick : pathname => dispatch ( replace ( pathname ) ) ,
267
267
onBackClick : ( ) => dispatch ( goBack ( ) ) ,
268
268
onRequestCloseSnackbar : ( ) => dispatch ( closeSnackbar ( ) ) ,
269
269
} ) ;
0 commit comments