@@ -18,6 +18,7 @@ export default class HomeScreen extends Component {
1818 navigator : PropTypes . object ,
1919 settingsStore : PropTypes . object ,
2020 trackStore : PropTypes . object ,
21+ themeStore : PropTypes . object ,
2122 webSocketStore : PropTypes . object
2223 }
2324
@@ -141,6 +142,7 @@ export default class HomeScreen extends Component {
141142 isStopped, currentTime, totalTime, repeatMode, shuffleMode } = this . props . trackStore
142143 const { playlistsDataStore, queueDataStore } = this . props . trackStore
143144 const { isConnected } = this . props . webSocketStore
145+ const { themeStore } = this . props
144146
145147 if ( ! isConnected ) {
146148 title = 'Not Connected'
@@ -166,10 +168,14 @@ export default class HomeScreen extends Component {
166168 ref = "drawer"
167169 drawerWidth = { 300 }
168170 drawerPosition = { DrawerLayoutAndroid . positions . Left }
169- renderNavigationView = { ( ) => < PlaylistNavigation playlistsDataStore = { playlistsDataStore } navigate = { this . _handlePlaylistNavigation } /> }
171+ renderNavigationView = { ( ) =>
172+ < PlaylistNavigation
173+ backgroundColor = { themeStore . backgroundColor ( ) } foreColor = { themeStore . foreColor ( ) }
174+ playlistsDataStore = { playlistsDataStore } navigate = { this . _handlePlaylistNavigation }
175+ /> }
170176 >
171- < View style = { styles . container } >
172- < StatusBar animated hidden = { this . state . bouncing } backgroundColor = { colors . ORANGE_DARK } />
177+ < View style = { [ styles . container , { backgroundColor : this . props . themeStore . backgroundColor ( ) } ] } >
178+ < StatusBar animated hidden = { this . state . bouncing } backgroundColor = { this . props . themeStore . barColor ( ) } />
173179 < View style = { styles . content } >
174180 < View style = { { flex : 1 , alignItems : 'center' } } >
175181 < TouchableWithoutFeedback onPress = { this . _imageTap } >
@@ -192,15 +198,16 @@ export default class HomeScreen extends Component {
192198 : null
193199 }
194200 < Animated . View style = { [ styles . toolbar , { transform : [ { translateY : this . state . bounceUpValue } ] } ] } >
195- < Toolbar title = { 'Home' } navigator = { this . props . navigator } settingsMenu showDrawer drawerFunction = { ( ) => { this . refs . drawer . openDrawer ( ) } } />
201+ < Toolbar title = { 'Home' } color = { themeStore . barColor ( ) } navigator = { this . props . navigator } settingsMenu showDrawer drawerFunction = { ( ) => { this . refs . drawer . openDrawer ( ) } } />
196202 </ Animated . View >
197203 < Animated . View style = { [ styles . toolbarSongInfo , { transform : [ { translateY : this . state . bounceUpValue } ] } ] } >
198204 < SongInfo title = { title } artist = { artist } album = { album } onPress = { this . _handleSongInfoPress } />
199205 </ Animated . View >
200206 < Animated . View style = { [ styles . controlBar , { transform : [ { translateY : this . state . bounceDownValue } ] } ] } >
201207 < ControlBar
208+ backgroundColor = { themeStore . backgroundColor ( ) } foreColor = { themeStore . foreColor ( ) } highlightColor = { themeStore . highlightColor ( ) }
202209 isPlaying = { isPlaying } isStopped = { isStopped } landscape = { this . state . orientation === 'LANDSCAPE' }
203- repeatMode = { repeatMode } shuffleMode = { shuffleMode }
210+ repeatMode = { repeatMode } shuffleMode = { shuffleMode } themeStore = { this . props . themeStore }
204211 onPlayPress = { this . _handlePlayPress } onPrevPress = { this . _handlePrevPress } onNextPress = { this . _handleNextPress }
205212 onShufflePress = { this . _handleShufflePress } onRepeatPress = { this . _handleRepeatPress }
206213 />
@@ -212,7 +219,7 @@ export default class HomeScreen extends Component {
212219 } ] }
213220 >
214221 < ProgressSlider
215- ref = { 'progressSlider' } min = { 0 } max = { totalTime }
222+ ref = { 'progressSlider' } min = { 0 } max = { totalTime } highlightColor = { themeStore . highlightColor ( ) }
216223 value = { currentTime } onValueChange = { this . _handleProgressBarTouch }
217224 />
218225 </ Animated . View >
0 commit comments