2017-09-18 07:09:43 +00:00
|
|
|
import { BoxModel, createStyleSheet } from '../../base/styles';
|
|
|
|
|
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style common to {@code LoginDialog} and {@code WaitForOwnerDialog}.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
|
|
|
const dialog = {
|
|
|
|
marginBottom: BoxModel.margin,
|
|
|
|
marginTop: BoxModel.margin
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style common to {@code Text} rendered by {@code LoginDialog} and
|
|
|
|
* {@code WaitForOwnerDialog}.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
|
|
|
const text = {
|
|
|
|
};
|
2017-09-08 13:36:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The styles of the authentication feature.
|
|
|
|
*/
|
|
|
|
export default createStyleSheet({
|
2017-09-18 07:09:43 +00:00
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of bold {@code Text} rendered by the {@code Dialog}s of the
|
2017-09-25 19:42:15 +00:00
|
|
|
* feature authentication.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
2017-09-25 19:42:15 +00:00
|
|
|
boldDialogText: {
|
|
|
|
...text,
|
|
|
|
fontWeight: 'bold'
|
2017-09-08 13:36:42 +00:00
|
|
|
},
|
2017-09-18 07:09:43 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of {@code Text} rendered by the {@code Dialog}s of the
|
2017-09-25 19:42:15 +00:00
|
|
|
* feature authentication.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
2017-09-25 19:42:15 +00:00
|
|
|
dialogText: {
|
2017-09-18 07:09:43 +00:00
|
|
|
...text
|
2017-09-08 13:36:42 +00:00
|
|
|
},
|
2017-09-18 07:09:43 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of {@code TextInput} rendered by the {@code Dialog}s of the
|
2017-09-25 19:42:15 +00:00
|
|
|
* feature authentication.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
2017-09-25 19:42:15 +00:00
|
|
|
dialogTextInput: {
|
2017-09-18 07:09:43 +00:00
|
|
|
// XXX Matches react-native-prompt's dialogInput because base/dialog's
|
|
|
|
// Dialog is implemented using react-native-prompt.
|
|
|
|
fontSize: 18,
|
|
|
|
height: 50
|
|
|
|
},
|
|
|
|
|
2017-09-25 19:42:15 +00:00
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of {@code LoginDialog}.
|
2017-09-25 19:42:15 +00:00
|
|
|
*/
|
|
|
|
loginDialog: {
|
|
|
|
...dialog,
|
|
|
|
flex: 0,
|
|
|
|
flexDirection: 'column'
|
|
|
|
},
|
|
|
|
|
2017-09-18 07:09:43 +00:00
|
|
|
/**
|
2017-10-01 06:35:19 +00:00
|
|
|
* The style of {@code WaitForOwnerDialog}.
|
2017-09-18 07:09:43 +00:00
|
|
|
*/
|
|
|
|
waitForOwnerDialog: {
|
|
|
|
...dialog,
|
|
|
|
...text
|
2017-09-08 13:36:42 +00:00
|
|
|
}
|
|
|
|
});
|