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

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