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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  3. export const PLACEHOLDER_COLOR = BaseTheme.palette.action02Focus;
  4. export const THUMB_COLOR = BaseTheme.palette.field02;
  5. const TEXT_SIZE = 14;
  6. /**
  7. * The styles of the native components of the feature {@code settings}.
  8. */
  9. export default {
  10. /**
  11. * Standardized style for a field container {@code View}.
  12. */
  13. fieldContainer: {
  14. alignItems: 'center',
  15. flexDirection: 'row',
  16. minHeight: 56,
  17. paddingHorizontal: 8
  18. },
  19. /**
  20. * * Appended style for column layout fields.
  21. */
  22. fieldContainerColumn: {
  23. alignItems: 'flex-start',
  24. flexDirection: 'column'
  25. },
  26. /**
  27. * Standard container for a {@code View} containing a field label.
  28. */
  29. fieldLabelContainer: {
  30. alignItems: 'center',
  31. flexDirection: 'row',
  32. paddingLeft: 8
  33. },
  34. /**
  35. * Text of the field labels on the form.
  36. */
  37. fieldLabelText: {
  38. fontSize: TEXT_SIZE
  39. },
  40. /**
  41. * Appended style for column layout fields.
  42. */
  43. fieldLabelTextColumn: {
  44. fontSize: 12
  45. },
  46. /**
  47. * Field container style for all but last row {@code View}.
  48. */
  49. fieldSeparator: {
  50. borderBottomWidth: 1,
  51. borderColor: 'rgba(0, 0, 0, 0.1)'
  52. },
  53. /**
  54. * Style for the {@code View} containing each
  55. * field values (the actual field).
  56. */
  57. fieldValueContainer: {
  58. alignItems: 'center',
  59. flex: 1,
  60. flexDirection: 'row',
  61. justifyContent: 'flex-end',
  62. paddingRight: 8
  63. },
  64. /**
  65. * Style for the form section separator titles.
  66. */
  67. formSectionTitle: {
  68. backgroundColor: BaseTheme.palette.section01,
  69. paddingBottom: 0,
  70. paddingTop: 0
  71. },
  72. formSectionTitleActive: {
  73. color: BaseTheme.palette.section01Active
  74. },
  75. formSectionTitleInActive: {
  76. color: BaseTheme.palette.section01Inactive
  77. },
  78. sectionClose: {
  79. color: BaseTheme.palette.section01Inactive,
  80. fontSize: 14
  81. },
  82. sectionOpen: {
  83. color: BaseTheme.palette.section01Active,
  84. fontSize: 14
  85. },
  86. /**
  87. * Global {@code Text} color for the components.
  88. */
  89. text: {
  90. color: BaseTheme.palette.field01
  91. },
  92. /**
  93. * Text input container style.
  94. */
  95. textInputContainer: {
  96. flex: 1,
  97. height: 40,
  98. paddingBottom: 8,
  99. paddingTop: 2,
  100. paddingLeft: 16,
  101. paddingRight: 16
  102. },
  103. /**
  104. * Standard text input field style.
  105. */
  106. textInputField: {
  107. color: BaseTheme.palette.field01,
  108. flex: 1,
  109. fontSize: TEXT_SIZE,
  110. textAlign: 'right'
  111. },
  112. /**
  113. * Appended style for column layout fields.
  114. */
  115. textInputFieldColumn: {
  116. backgroundColor: 'rgb(245, 245, 245)',
  117. borderRadius: 8,
  118. marginVertical: 5,
  119. paddingVertical: 3,
  120. textAlign: 'left'
  121. }
  122. };