You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { BoxModel, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The style common to {@code LoginDialog} and {@code WaitForOwnerDialog}.
  4. */
  5. const dialog = {
  6. marginBottom: BoxModel.margin,
  7. marginTop: BoxModel.margin
  8. };
  9. /**
  10. * The style common to {@code Text} rendered by {@code LoginDialog} and
  11. * {@code WaitForOwnerDialog}.
  12. */
  13. const text = {
  14. };
  15. /**
  16. * The styles of the authentication feature.
  17. */
  18. export default createStyleSheet({
  19. /**
  20. * The style of bold {@code Text} rendered by the {@code Dialog}s of the
  21. * feature authentication.
  22. */
  23. boldDialogText: {
  24. ...text,
  25. fontWeight: 'bold'
  26. },
  27. /**
  28. * The style of {@code Text} rendered by the {@code Dialog}s of the
  29. * feature authentication.
  30. */
  31. dialogText: {
  32. ...text
  33. },
  34. /**
  35. * The style of {@code TextInput} rendered by the {@code Dialog}s of the
  36. * feature authentication.
  37. */
  38. dialogTextInput: {
  39. // XXX Matches react-native-prompt's dialogInput because base/dialog's
  40. // Dialog is implemented using react-native-prompt.
  41. fontSize: 18,
  42. height: 50
  43. },
  44. /**
  45. * The style of {@code LoginDialog}.
  46. */
  47. loginDialog: {
  48. ...dialog,
  49. flex: 0,
  50. flexDirection: 'column'
  51. },
  52. /**
  53. * The style of {@code WaitForOwnerDialog}.
  54. */
  55. waitForOwnerDialog: {
  56. ...dialog,
  57. ...text
  58. }
  59. });