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

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