lbry-react-native/src/styles/mediaPlayer.js
2019-08-15 09:58:43 +01:00

168 lines
3 KiB
JavaScript

import { StyleSheet } from 'react-native';
import Colors from './colors';
const mediaPlayerStyle = StyleSheet.create({
player: {
flex: 1,
width: '100%',
height: '100%',
},
playerThumbnail: {
position: 'absolute',
left: 0,
top: 0,
width: '100%',
height: '100%',
},
container: {
flex: 1,
paddingBottom: 16,
},
fullscreenContainer: {
flex: 1,
justifyContent: 'center',
},
progress: {
flex: 1,
flexDirection: 'row',
height: 3,
},
innerProgressCompleted: {
height: 4,
backgroundColor: Colors.LbryGreen,
},
innerProgressRemaining: {
height: 4,
backgroundColor: '#2c2c2c',
},
trackingControls: {
height: 3,
position: 'absolute',
bottom: 14,
},
containedTrackingControls: {
left: 0,
width: '100%',
},
fullscreenTrackingControls: {
alignSelf: 'center',
width: '60%',
},
playerControls: {
position: 'absolute',
left: 0,
top: 0,
width: '100%',
height: '100%',
},
playerControlsContainer: {
backgroundColor: '#00000020',
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
playPauseButton: {
position: 'absolute',
width: 64,
height: 64,
alignItems: 'center',
justifyContent: 'center',
},
toggleFullscreenButton: {
position: 'absolute',
width: 36,
height: 36,
alignItems: 'center',
justifyContent: 'center',
right: 4,
bottom: 14,
},
elapsedDuration: {
fontFamily: 'Inter-UI-Regular',
position: 'absolute',
left: 8,
bottom: 24,
fontSize: 12,
color: '#ffffff',
},
totalDuration: {
fontFamily: 'Inter-UI-Regular',
position: 'absolute',
right: 48,
bottom: 24,
fontSize: 12,
color: '#ffffff',
},
seekerCircle: {
borderRadius: 12,
position: 'relative',
left: 15,
height: 12,
width: 12,
backgroundColor: Colors.LbryGreen,
},
seekerCircleTop: {
top: 14,
},
seekerCircleTopFs: {
top: 15,
},
seekerHandle: {
backgroundColor: 'transparent',
position: 'absolute',
height: 36,
width: 48,
marginLeft: -18,
zIndex: 20,
},
seekerHandleContained: {
bottom: -17,
},
seekerHandleFs: {
bottom: 0,
},
seekerTouchArea: {
position: 'absolute',
height: 30,
width: '100%',
zIndex: 10,
},
seekerTouchAreaContained: {
bottom: -15,
},
seekerTouchAreaFs: {
bottom: 0,
},
bigSeekerCircle: {
borderRadius: 24,
position: 'relative',
top: 8,
left: 15,
height: 24,
width: 24,
backgroundColor: Colors.LbryGreen,
},
loadingContainer: {
alignItems: 'center',
justifyContent: 'center',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
},
backButton: {
position: 'absolute',
left: 0,
top: 0,
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
},
backButtonIcon: {
color: Colors.White,
},
});
export default mediaPlayerStyle;