* Javadoc introduced @code as a replacement of <code> and <tt> which is better aligned with other javadoc tags such as @link. Use it in the Java source code. If we switch to Kotlin, then we'll definitely use Markdown. * There are more uses of @code in the JavaScript source code than <tt> so use @code for the sake of consistency. Eventually, I'd rather we switch to Markdown because it's easier on my eyes. * Xcode is plain confused by @code and @link. The Internet says that Xcode supports the backquote character to denote the beginning and end of a string of characters which should be formatted for display as code but it doesn't work for me. <tt> is not rendered at all. So use the backquote which is rendered itself. Hopefully, if we switch to Markdown, then it'll be common between JavaScript and Objective-C source code.
67 lines
1.4 KiB
JavaScript
67 lines
1.4 KiB
JavaScript
import { BoxModel, createStyleSheet } from '../../base/styles';
|
|
|
|
/**
|
|
* The style common to {@code LoginDialog} and {@code WaitForOwnerDialog}.
|
|
*/
|
|
const dialog = {
|
|
marginBottom: BoxModel.margin,
|
|
marginTop: BoxModel.margin
|
|
};
|
|
|
|
/**
|
|
* The style common to {@code Text} rendered by {@code LoginDialog} and
|
|
* {@code WaitForOwnerDialog}.
|
|
*/
|
|
const text = {
|
|
};
|
|
|
|
/**
|
|
* The styles of the authentication feature.
|
|
*/
|
|
export default createStyleSheet({
|
|
/**
|
|
* The style of bold {@code Text} rendered by the {@code Dialog}s of the
|
|
* feature authentication.
|
|
*/
|
|
boldDialogText: {
|
|
...text,
|
|
fontWeight: 'bold'
|
|
},
|
|
|
|
/**
|
|
* The style of {@code Text} rendered by the {@code Dialog}s of the
|
|
* feature authentication.
|
|
*/
|
|
dialogText: {
|
|
...text
|
|
},
|
|
|
|
/**
|
|
* The style of {@code TextInput} rendered by the {@code Dialog}s of the
|
|
* feature authentication.
|
|
*/
|
|
dialogTextInput: {
|
|
// XXX Matches react-native-prompt's dialogInput because base/dialog's
|
|
// Dialog is implemented using react-native-prompt.
|
|
fontSize: 18,
|
|
height: 50
|
|
},
|
|
|
|
/**
|
|
* The style of {@code LoginDialog}.
|
|
*/
|
|
loginDialog: {
|
|
...dialog,
|
|
flex: 0,
|
|
flexDirection: 'column'
|
|
},
|
|
|
|
/**
|
|
* The style of {@code WaitForOwnerDialog}.
|
|
*/
|
|
waitForOwnerDialog: {
|
|
...dialog,
|
|
...text
|
|
}
|
|
});
|