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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. sectionLink: {
  96. ...BaseTheme.typography.bodyShortBoldLarge,
  97. color: BaseTheme.palette.link01,
  98. margin: BaseTheme.spacing[3],
  99. textAlign: 'center'
  100. },
  101. sectionLinkContainer: {
  102. margin: BaseTheme.spacing[3]
  103. },
  104. sectionLinkText: {
  105. ...BaseTheme.typography.bodyShortBoldLarge,
  106. color: BaseTheme.palette.link01,
  107. textAlign: 'center'
  108. },
  109. /**
  110. * Global {@code Text} color for the components.
  111. */
  112. text: {
  113. color: BaseTheme.palette.text01
  114. },
  115. /**
  116. * Text input container style.
  117. */
  118. customContainer: {
  119. marginBottom: BaseTheme.spacing[3],
  120. marginHorizontal: BaseTheme.spacing[3],
  121. marginTop: BaseTheme.spacing[2]
  122. },
  123. /**
  124. * Standard text input field style.
  125. */
  126. textInputField: {
  127. color: BaseTheme.palette.field01,
  128. flex: 1,
  129. fontSize: TEXT_SIZE,
  130. textAlign: 'right'
  131. },
  132. /**
  133. * Appended style for column layout fields.
  134. */
  135. textInputFieldColumn: {
  136. backgroundColor: 'rgb(245, 245, 245)',
  137. borderRadius: 8,
  138. marginVertical: 5,
  139. paddingVertical: 3,
  140. textAlign: 'left'
  141. },
  142. /**
  143. * Style for screen container.
  144. */
  145. screenContainer: {
  146. flex: 1
  147. }
  148. };