mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-03-18 17:40:20 +00:00
155 lines
3.4 KiB
TypeScript
155 lines
3.4 KiB
TypeScript
import BaseTheme from '../../../ui/components/BaseTheme.native';
|
|
|
|
const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
|
|
const BUTTON_HEIGHT = BaseTheme.spacing[7];
|
|
const BUTTON_WIDTH = BaseTheme.spacing[7];
|
|
|
|
export const AVATAR_SIZE = 65;
|
|
export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
|
|
|
|
const SECTION_LIST_STYLES = {
|
|
/**
|
|
* The style of the avatar container that makes the avatar rounded.
|
|
*/
|
|
avatarContainer: {
|
|
alignItems: 'center',
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-around',
|
|
padding: 5
|
|
},
|
|
|
|
/**
|
|
* Simple {@code Text} content of the avatar (the actual initials).
|
|
*/
|
|
avatarContent: {
|
|
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
color: OVERLAY_FONT_COLOR,
|
|
fontSize: Math.floor(AVATAR_SIZE / 2),
|
|
fontWeight: '100',
|
|
textAlign: 'center'
|
|
},
|
|
|
|
/**
|
|
* The top level container style of the list.
|
|
*/
|
|
container: {
|
|
flex: 1,
|
|
width: '100%'
|
|
},
|
|
|
|
list: {
|
|
flex: 1,
|
|
flexDirection: 'column'
|
|
},
|
|
|
|
listItem: {
|
|
alignItems: 'center',
|
|
flex: 1,
|
|
flexDirection: 'row',
|
|
marginHorizontal: BaseTheme.spacing[3],
|
|
marginVertical: BaseTheme.spacing[2]
|
|
},
|
|
|
|
listItemDetails: {
|
|
flex: 1,
|
|
flexDirection: 'column',
|
|
overflow: 'hidden',
|
|
paddingHorizontal: 5
|
|
},
|
|
|
|
listItemText: {
|
|
color: OVERLAY_FONT_COLOR,
|
|
fontSize: 14
|
|
},
|
|
|
|
listItemTitle: {
|
|
fontWeight: 'bold',
|
|
fontSize: 16
|
|
},
|
|
|
|
listSection: {
|
|
alignItems: 'center',
|
|
backgroundColor: BaseTheme.palette.ui02,
|
|
flex: 1,
|
|
flexDirection: 'row',
|
|
paddingVertical: BaseTheme.spacing[1],
|
|
paddingHorizontal: BaseTheme.spacing[2]
|
|
},
|
|
|
|
listSectionText: {
|
|
color: OVERLAY_FONT_COLOR,
|
|
fontSize: 14,
|
|
fontWeight: 'normal',
|
|
marginLeft: BaseTheme.spacing[2]
|
|
},
|
|
|
|
pullToRefresh: {
|
|
alignItems: 'center',
|
|
flex: 1,
|
|
flexDirection: 'column',
|
|
justifyContent: 'center',
|
|
padding: 20
|
|
},
|
|
|
|
pullToRefreshIcon: {
|
|
backgroundColor: 'transparent',
|
|
color: OVERLAY_FONT_COLOR,
|
|
fontSize: 20
|
|
},
|
|
|
|
pullToRefreshText: {
|
|
backgroundColor: 'transparent',
|
|
color: OVERLAY_FONT_COLOR
|
|
},
|
|
|
|
touchableView: {
|
|
flexDirection: 'row'
|
|
}
|
|
};
|
|
|
|
export const TINTED_VIEW_DEFAULT = {
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
opacity: 0.8
|
|
};
|
|
|
|
export const BASE_INDICATOR = {
|
|
alignItems: 'center',
|
|
justifyContent: 'center'
|
|
};
|
|
|
|
const iconButtonContainer = {
|
|
alignItems: 'center',
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
height: BUTTON_HEIGHT,
|
|
width: BUTTON_WIDTH
|
|
};
|
|
|
|
/**
|
|
* The styles of the generic React {@code Component}s implemented by the feature
|
|
* base/react.
|
|
*/
|
|
export default {
|
|
...SECTION_LIST_STYLES,
|
|
|
|
iconButtonContainer: {
|
|
...iconButtonContainer
|
|
},
|
|
|
|
iconButtonContainerPrimary: {
|
|
...iconButtonContainer,
|
|
backgroundColor: BaseTheme.palette.action01
|
|
},
|
|
|
|
iconButtonContainerSecondary: {
|
|
...iconButtonContainer,
|
|
backgroundColor: BaseTheme.palette.action02
|
|
},
|
|
|
|
iconButtonContainerDisabled: {
|
|
...iconButtonContainer,
|
|
backgroundColor: BaseTheme.palette.disabled01
|
|
}
|
|
};
|