2017-12-20 00:49:36 +00:00
|
|
|
import { createStyleSheet, BoxModel } from '../../base/styles';
|
2017-12-13 10:35:42 +00:00
|
|
|
|
|
|
|
const AVATAR_OPACITY = 0.4;
|
2017-12-20 00:49:36 +00:00
|
|
|
|
2017-12-13 10:35:42 +00:00
|
|
|
const AVATAR_SIZE = 65;
|
2017-12-20 00:49:36 +00:00
|
|
|
|
2017-12-13 10:35:42 +00:00
|
|
|
const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
|
|
|
|
|
|
|
|
export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The styles of the React {@code Component}s of the feature recent-list i.e.
|
2017-12-13 10:35:42 +00:00
|
|
|
* {@code RecentList}.
|
|
|
|
*/
|
|
|
|
export default createStyleSheet({
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of the actual avatar.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
avatar: {
|
|
|
|
alignItems: 'center',
|
|
|
|
backgroundColor: `rgba(23, 160, 219, ${AVATAR_OPACITY})`,
|
2017-12-20 00:49:36 +00:00
|
|
|
borderRadius: AVATAR_SIZE,
|
|
|
|
height: AVATAR_SIZE,
|
2017-12-13 10:35:42 +00:00
|
|
|
justifyContent: 'center',
|
2017-12-20 00:49:36 +00:00
|
|
|
width: AVATAR_SIZE
|
2017-12-13 10:35:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of the avatar container that makes the avatar rounded.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
avatarContainer: {
|
2017-12-20 00:49:36 +00:00
|
|
|
alignItems: 'center',
|
2017-12-13 10:35:42 +00:00
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'space-around',
|
|
|
|
paddingTop: 5
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* Simple {@code Text} content of the avatar (the actual initials).
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
avatarContent: {
|
2017-12-20 00:49:36 +00:00
|
|
|
backgroundColor: 'rgba(0, 0, 0, 0)',
|
2017-12-13 10:35:42 +00:00
|
|
|
color: OVERLAY_FONT_COLOR,
|
|
|
|
fontSize: 32,
|
|
|
|
fontWeight: '100',
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* List of styles of the avatar of a remote meeting (not the default
|
|
|
|
* server). The number of colors are limited because they should match
|
|
|
|
* nicely.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
avatarRemoteServer1: {
|
|
|
|
backgroundColor: `rgba(232, 105, 156, ${AVATAR_OPACITY})`
|
|
|
|
},
|
|
|
|
|
|
|
|
avatarRemoteServer2: {
|
|
|
|
backgroundColor: `rgba(255, 198, 115, ${AVATAR_OPACITY})`
|
|
|
|
},
|
|
|
|
|
|
|
|
avatarRemoteServer3: {
|
|
|
|
backgroundColor: `rgba(128, 128, 255, ${AVATAR_OPACITY})`
|
|
|
|
},
|
|
|
|
|
|
|
|
avatarRemoteServer4: {
|
|
|
|
backgroundColor: `rgba(105, 232, 194, ${AVATAR_OPACITY})`
|
|
|
|
},
|
|
|
|
|
|
|
|
avatarRemoteServer5: {
|
|
|
|
backgroundColor: `rgba(234, 255, 128, ${AVATAR_OPACITY})`
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of the conference length (if rendered).
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
confLength: {
|
|
|
|
color: OVERLAY_FONT_COLOR,
|
|
|
|
fontWeight: 'normal'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The top level container style of the list.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
container: {
|
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* Second line of the list (date). May be extended with server name later.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
date: {
|
|
|
|
color: OVERLAY_FONT_COLOR
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of the details container (right side) of the list.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
detailsContainer: {
|
2017-12-20 00:49:36 +00:00
|
|
|
alignItems: 'flex-start',
|
2017-12-13 10:35:42 +00:00
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center',
|
2017-12-20 00:49:36 +00:00
|
|
|
marginLeft: 2 * BoxModel.margin
|
2017-12-13 10:35:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The container for an info line with an inline icon.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
infoWithIcon: {
|
2017-12-20 00:49:36 +00:00
|
|
|
alignItems: 'center',
|
2017-12-13 10:35:42 +00:00
|
|
|
flexDirection: 'row',
|
2017-12-20 00:49:36 +00:00
|
|
|
justifyContent: 'flex-start'
|
2017-12-13 10:35:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of an inline icon in an info line.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
inlineIcon: {
|
|
|
|
color: OVERLAY_FONT_COLOR,
|
|
|
|
marginRight: 5
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* First line of the list (room name).
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
roomName: {
|
2017-12-20 00:49:36 +00:00
|
|
|
color: OVERLAY_FONT_COLOR,
|
2017-12-13 10:35:42 +00:00
|
|
|
fontSize: 18,
|
2017-12-20 00:49:36 +00:00
|
|
|
fontWeight: 'bold'
|
2017-12-13 10:35:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of one single row in the list.
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
row: {
|
2017-12-20 00:49:36 +00:00
|
|
|
alignItems: 'center',
|
2017-12-13 10:35:42 +00:00
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
2017-12-20 00:49:36 +00:00
|
|
|
padding: 8,
|
|
|
|
paddingBottom: 0
|
2017-12-13 10:35:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-12-20 00:49:36 +00:00
|
|
|
* The style of the server name component (if rendered).
|
|
|
|
*/
|
2017-12-13 10:35:42 +00:00
|
|
|
serverName: {
|
|
|
|
color: OVERLAY_FONT_COLOR,
|
|
|
|
fontWeight: 'normal'
|
|
|
|
}
|
|
|
|
});
|