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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import {
  2. ColorPalette,
  3. createStyleSheet
  4. } from '../../../base/styles';
  5. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  6. const TEXT_SIZE = 17;
  7. /**
  8. * The styles of the native components of the feature {@code settings}.
  9. */
  10. export default createStyleSheet({
  11. /**
  12. * Standardized style for a field container {@code View}.
  13. */
  14. fieldContainer: {
  15. alignItems: 'center',
  16. flexDirection: 'row',
  17. minHeight: 65,
  18. paddingHorizontal: 8
  19. },
  20. /**
  21. * Standard container for a {@code View} containing a field label.
  22. */
  23. fieldLabelContainer: {
  24. alignItems: 'center',
  25. flexDirection: 'row',
  26. marginRight: 5
  27. },
  28. /**
  29. * Text of the field labels on the form.
  30. */
  31. fieldLabelText: {
  32. fontSize: TEXT_SIZE
  33. },
  34. /**
  35. * Field container style for all but last row {@code View}.
  36. */
  37. fieldSeparator: {
  38. borderBottomWidth: 1,
  39. borderColor: 'rgba(0, 0, 0, 0.1)'
  40. },
  41. /**
  42. * Style for the {@code View} containing each
  43. * field values (the actual field).
  44. */
  45. fieldValueContainer: {
  46. alignItems: 'center',
  47. flex: 1,
  48. flexDirection: 'row',
  49. justifyContent: 'flex-end'
  50. },
  51. /**
  52. * Style fo the form section separator titles.
  53. */
  54. formSectionTitle: {
  55. backgroundColor: 'rgba(0, 0, 0, 0.1)',
  56. padding: 5
  57. },
  58. settingsForm: {
  59. backgroundColor: ColorPalette.white,
  60. flex: 1
  61. },
  62. /**
  63. * Global {@code Text} color for the components.
  64. */
  65. text: {
  66. color: ColorPalette.black
  67. },
  68. /**
  69. * Standard text input field style.
  70. */
  71. textInputField: {
  72. flex: 1,
  73. fontSize: TEXT_SIZE,
  74. textAlign: 'right'
  75. }
  76. });