2018-03-20 13:51:51 +00:00
|
|
|
import { ColorPalette, createStyleSheet } from '../../base/styles';
|
2021-11-17 12:54:00 +00:00
|
|
|
import BaseTheme from '../../base/ui/components/BaseTheme';
|
2018-02-08 18:50:19 +00:00
|
|
|
|
2018-02-12 15:53:23 +00:00
|
|
|
const NOTIFICATION_SIZE = 55;
|
2018-02-08 18:50:19 +00:00
|
|
|
|
|
|
|
/**
|
2018-02-13 23:33:03 +00:00
|
|
|
* The styles of the React {@code Component}s of the feature meeting-list i.e.
|
2018-08-27 15:13:59 +00:00
|
|
|
* {@code CalendarList}.
|
2018-02-08 18:50:19 +00:00
|
|
|
*/
|
|
|
|
export default createStyleSheet({
|
|
|
|
|
2018-03-20 13:51:51 +00:00
|
|
|
/**
|
|
|
|
* Button style of the open settings button.
|
|
|
|
*/
|
|
|
|
noPermissionMessageButton: {
|
|
|
|
backgroundColor: ColorPalette.blue,
|
|
|
|
borderColor: ColorPalette.blue,
|
|
|
|
borderRadius: 4,
|
|
|
|
borderWidth: 1,
|
|
|
|
height: 30,
|
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 15,
|
|
|
|
paddingHorizontal: 20
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Text style of the open settings button.
|
|
|
|
*/
|
|
|
|
noPermissionMessageButtonText: {
|
|
|
|
color: ColorPalette.white
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Text style of the no permission message.
|
|
|
|
*/
|
|
|
|
noPermissionMessageText: {
|
|
|
|
backgroundColor: 'transparent',
|
2018-06-11 17:28:45 +00:00
|
|
|
color: 'rgba(255, 255, 255, 0.6)',
|
|
|
|
textAlign: 'center'
|
2018-03-20 13:51:51 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Top level view of the no permission message.
|
|
|
|
*/
|
|
|
|
noPermissionMessageView: {
|
|
|
|
alignItems: 'center',
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center',
|
|
|
|
padding: 20
|
|
|
|
},
|
|
|
|
|
2018-02-08 18:50:19 +00:00
|
|
|
/**
|
2018-02-13 23:33:03 +00:00
|
|
|
* The top level container of the notification.
|
2018-02-12 15:53:23 +00:00
|
|
|
*/
|
|
|
|
notificationContainer: {
|
2018-02-13 23:33:03 +00:00
|
|
|
alignSelf: 'flex-start',
|
2018-02-12 15:53:23 +00:00
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
overflow: 'hidden',
|
|
|
|
position: 'absolute'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Additional style for the container when the notification is displayed
|
|
|
|
* on the side (narrow view).
|
|
|
|
*/
|
|
|
|
notificationContainerSide: {
|
|
|
|
top: 100
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Additional style for the container when the notification is displayed
|
|
|
|
* on the top (wide view).
|
|
|
|
*/
|
|
|
|
notificationContainerTop: {
|
|
|
|
justifyContent: 'center',
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
top: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The top level container of the notification.
|
|
|
|
*/
|
|
|
|
notificationContent: {
|
|
|
|
alignSelf: 'flex-start',
|
|
|
|
flexDirection: 'row',
|
|
|
|
height: NOTIFICATION_SIZE,
|
|
|
|
justifyContent: 'center',
|
|
|
|
paddingHorizontal: 10
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for upcoming meeting notification.
|
|
|
|
*/
|
|
|
|
notificationContentNext: {
|
|
|
|
backgroundColor: '#eeb231'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for already ongoing meeting notifications.
|
|
|
|
*/
|
|
|
|
notificationContentPast: {
|
|
|
|
backgroundColor: 'red'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Additional style for the content when the notification is displayed
|
|
|
|
* on the side (narrow view).
|
|
|
|
*/
|
|
|
|
notificationContentSide: {
|
|
|
|
borderBottomRightRadius: NOTIFICATION_SIZE,
|
|
|
|
borderTopRightRadius: NOTIFICATION_SIZE
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Additional style for the content when the notification is displayed
|
|
|
|
* on the top (wide view).
|
|
|
|
*/
|
|
|
|
notificationContentTop: {
|
|
|
|
borderBottomLeftRadius: NOTIFICATION_SIZE / 2,
|
|
|
|
borderBottomRightRadius: NOTIFICATION_SIZE / 2,
|
|
|
|
paddingHorizontal: 20
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The icon of the notification.
|
|
|
|
*/
|
|
|
|
notificationIcon: {
|
|
|
|
color: 'white',
|
|
|
|
fontSize: 25
|
|
|
|
},
|
|
|
|
|
2018-02-13 23:33:03 +00:00
|
|
|
/**
|
|
|
|
* The container that contains the icon.
|
|
|
|
*/
|
2018-02-12 15:53:23 +00:00
|
|
|
notificationIconContainer: {
|
|
|
|
alignItems: 'center',
|
|
|
|
flexDirection: 'row',
|
|
|
|
height: NOTIFICATION_SIZE,
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
2018-02-13 23:33:03 +00:00
|
|
|
/**
|
|
|
|
* A single line of text of the notification.
|
|
|
|
*/
|
2018-02-12 15:53:23 +00:00
|
|
|
notificationText: {
|
|
|
|
color: 'white',
|
|
|
|
fontSize: 13
|
|
|
|
},
|
|
|
|
|
2018-02-13 23:33:03 +00:00
|
|
|
/**
|
|
|
|
* The container for all the lines if the norification.
|
|
|
|
*/
|
2018-02-12 15:53:23 +00:00
|
|
|
notificationTextContainer: {
|
|
|
|
flexDirection: 'column',
|
|
|
|
height: NOTIFICATION_SIZE,
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
|
2018-02-08 18:50:19 +00:00
|
|
|
/**
|
2018-02-13 23:33:03 +00:00
|
|
|
* The touchable component.
|
2018-02-08 18:50:19 +00:00
|
|
|
*/
|
2018-02-12 15:53:23 +00:00
|
|
|
touchableView: {
|
|
|
|
flexDirection: 'row'
|
2021-11-17 12:54:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
calendarSync: {
|
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
|
|
flex: 1,
|
|
|
|
overflow: 'hidden'
|
|
|
|
},
|
|
|
|
|
|
|
|
calendarSyncDisabled: {
|
|
|
|
backgroundColor: BaseTheme.palette.uiBackground,
|
|
|
|
flex: 1,
|
|
|
|
opacity: 0.8,
|
|
|
|
overflow: 'hidden'
|
2018-02-08 18:50:19 +00:00
|
|
|
}
|
|
|
|
});
|