jiti-meet/react/features/conference/components/native/styles.js

204 lines
4.4 KiB
JavaScript
Raw Normal View History

2020-03-20 17:30:46 +00:00
import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
import { BoxModel, fixAndroidViewClipping } from '../../../base/styles';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
2019-02-05 10:10:15 +00:00
2021-12-17 13:05:12 +00:00
export const INSECURE_ROOM_NAME_LABEL_COLOR = BaseTheme.palette.actionDanger;
2019-07-12 08:06:49 +00:00
const NAVBAR_BUTTON_SIZE = 24;
/**
* The styles of the safe area view that contains the navigation bar.
*/
const navBarSafeView = {
left: 0,
position: 'absolute',
right: 0,
top: 0
};
/**
* The styles of the feature conference.
*/
2019-07-12 08:06:49 +00:00
export default {
/**
2021-11-04 21:10:43 +00:00
* {@code Conference} Style.
*/
2017-02-16 21:17:05 +00:00
conference: fixAndroidViewClipping({
alignSelf: 'stretch',
backgroundColor: BaseTheme.palette.uiBackground,
flex: 1
}),
displayNameContainer: {
margin: 10
},
headerNavigationIcon: {
marginLeft: 12
},
headerNavigationButton: {
height: BaseTheme.spacing[6],
marginTop: 20,
width: BaseTheme.spacing[6]
},
2019-02-05 10:10:15 +00:00
/**
* View that contains the indicators.
*/
indicatorContainer: {
flex: 1,
flexDirection: 'row'
2019-02-05 10:10:15 +00:00
},
inviteButtonContainer: {
borderRadius: 3,
height: BaseTheme.spacing[7],
position: 'absolute',
marginTop: BaseTheme.spacing[1],
marginRight: BaseTheme.spacing[1],
top: 0,
right: 0,
zIndex: 1,
width: BaseTheme.spacing[7]
},
inviteButton: {
iconStyle: {
color: BaseTheme.palette.icon01,
padding: 12,
fontSize: NAVBAR_BUTTON_SIZE
},
underlayColor: BaseTheme.spacing.underlay01
},
2019-02-05 10:10:15 +00:00
2020-03-20 17:30:46 +00:00
lonelyButton: {
alignItems: 'center',
borderRadius: 24,
flexDirection: 'row',
height: BaseTheme.spacing[6],
2020-03-20 17:30:46 +00:00
justifyContent: 'space-around',
paddingHorizontal: 12
},
lonelyButtonComponents: {
marginHorizontal: 6
},
lonelyMeetingContainer: {
alignSelf: 'stretch',
alignItems: 'center',
padding: BoxModel.padding * 2
},
lonelyMessage: {
paddingVertical: 12
},
pipButtonContainer: {
borderRadius: 3,
height: BaseTheme.spacing[7],
position: 'absolute',
marginTop: BaseTheme.spacing[1],
marginLeft: BaseTheme.spacing[1],
top: 0,
left: 0,
zIndex: 1,
width: BaseTheme.spacing[7]
},
pipButton: {
2019-01-30 15:43:57 +00:00
iconStyle: {
color: BaseTheme.palette.icon01,
padding: 12,
fontSize: NAVBAR_BUTTON_SIZE
2019-01-30 15:43:57 +00:00
},
underlayColor: BaseTheme.spacing.underlay01
2019-01-30 15:43:57 +00:00
},
navBarSafeViewColor: {
...navBarSafeView,
backgroundColor: BaseTheme.palette.uiBackground
},
navBarSafeViewTransparent: {
...navBarSafeView
2019-01-30 15:43:57 +00:00
},
navBarWrapper: {
alignItems: 'center',
flex: 1,
flexDirection: 'row',
height: BaseTheme.spacing[8],
justifyContent: 'center'
2019-01-30 15:43:57 +00:00
},
2020-01-13 17:12:25 +00:00
roomTimer: {
color: BaseTheme.palette.text01,
fontSize: 12,
fontWeight: '400',
paddingHorizontal: 8
},
roomTimerView: {
backgroundColor: BaseTheme.palette.action02,
borderRadius: 3,
height: 28,
justifyContent: 'center',
minWidth: 50
2020-01-13 17:12:25 +00:00
},
2019-01-30 15:43:57 +00:00
roomName: {
color: BaseTheme.palette.text01,
fontSize: 14,
2019-01-30 15:43:57 +00:00
fontWeight: '400'
},
roomNameView: {
backgroundColor: 'rgba(0,0,0,0.6)',
borderBottomLeftRadius: 3,
borderTopLeftRadius: 3,
flexShrink: 1,
height: 28,
justifyContent: 'center',
paddingHorizontal: 10,
maxWidth: 168
},
roomNameWrapper: {
flexDirection: 'row',
marginHorizontal: 35
},
/**
* The style of the {@link View} which expands over the whole
* {@link Conference} area and splits it between the {@link Filmstrip} and
* the {@link Toolbox}.
*/
toolboxAndFilmstripContainer: {
2019-07-12 08:06:49 +00:00
bottom: 0,
flexDirection: 'column',
justifyContent: 'flex-end',
left: 0,
position: 'absolute',
right: 0,
top: 0
2020-05-18 12:07:09 +00:00
},
insecureRoomNameLabel: {
backgroundColor: INSECURE_ROOM_NAME_LABEL_COLOR
}
2019-07-12 08:06:49 +00:00
};
2020-03-20 17:30:46 +00:00
ColorSchemeRegistry.register('Conference', {
lonelyButton: {
backgroundColor: schemeColor('inviteButtonBackground')
},
lonelyMessage: {
color: schemeColor('onVideoText')
}
});