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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. /**
  5. * The styles of the native components of the feature {@code settings}.
  6. */
  7. export default {
  8. profileContainerWrapper: {
  9. margin: BaseTheme.spacing[4]
  10. },
  11. profileContainer: {
  12. backgroundColor: BaseTheme.palette.ui02,
  13. borderRadius: BaseTheme.shape.borderRadius,
  14. alignItems: 'center',
  15. flexDirection: 'row',
  16. justifyContent: 'flex-start',
  17. padding: BaseTheme.spacing[3]
  18. },
  19. profileView: {
  20. flexGrow: 1,
  21. flexDirection: 'column',
  22. justifyContent: 'space-between'
  23. },
  24. applyProfileSettingsButton: {
  25. marginHorizontal: BaseTheme.spacing[4],
  26. marginVertical: BaseTheme.spacing[3]
  27. },
  28. avatarContainer: {
  29. alignItems: 'center',
  30. flexDirection: 'row',
  31. justifyContent: 'center',
  32. padding: BaseTheme.spacing[3],
  33. margin: BaseTheme.spacing[4]
  34. },
  35. gavatarMessageContainer: {
  36. marginHorizontal: BaseTheme.spacing[4],
  37. color: BaseTheme.palette.text02,
  38. marginTop: -BaseTheme.spacing[2],
  39. ...BaseTheme.typography.bodyShortRegular
  40. },
  41. displayName: {
  42. ...BaseTheme.typography.bodyLongRegularLarge,
  43. color: BaseTheme.palette.text01,
  44. marginLeft: BaseTheme.spacing[3],
  45. position: 'relative'
  46. },
  47. profileViewArrow: {
  48. position: 'absolute',
  49. right: BaseTheme.spacing[3]
  50. },
  51. /**
  52. * Style for screen container.
  53. */
  54. settingsViewContainer: {
  55. backgroundColor: BaseTheme.palette.ui01,
  56. flex: 1
  57. },
  58. /**
  59. * Standardized style for a field container {@code View}.
  60. */
  61. fieldContainer: {
  62. alignItems: 'center',
  63. flexDirection: 'row',
  64. minHeight: BaseTheme.spacing[8],
  65. paddingHorizontal: BaseTheme.spacing[2],
  66. justifyContent: 'space-between'
  67. },
  68. /**
  69. * * Appended style for column layout fields.
  70. */
  71. fieldContainerColumn: {
  72. alignItems: 'flex-start',
  73. flexDirection: 'column'
  74. },
  75. /**
  76. * Standard container for a {@code View} containing a field label.
  77. */
  78. fieldLabelContainer: {
  79. alignItems: 'center',
  80. flexShrink: 1,
  81. flexDirection: 'row',
  82. paddingLeft: BaseTheme.spacing[3],
  83. paddingRight: BaseTheme.spacing[1]
  84. },
  85. /**
  86. * Text of the field labels on the form.
  87. */
  88. fieldLabelText: {
  89. ...BaseTheme.typography.bodyShortRegularLarge
  90. },
  91. /**
  92. * Field container style for all but last row {@code View}.
  93. */
  94. fieldSeparator: {
  95. marginHorizontal: BaseTheme.spacing[4],
  96. borderBottomWidth: 1,
  97. borderColor: BaseTheme.palette.ui05,
  98. marginVertical: BaseTheme.spacing[3]
  99. },
  100. /**
  101. * Style for the {@code View} containing each
  102. * field values (the actual field).
  103. */
  104. fieldValueContainer: {
  105. alignItems: 'center',
  106. flexDirection: 'row',
  107. flexShrink: 1,
  108. justifyContent: 'flex-end',
  109. paddingRight: BaseTheme.spacing[3]
  110. },
  111. /**
  112. * Style for the form section separator titles.
  113. */
  114. formSectionTitleContent: {
  115. backgroundColor: BaseTheme.palette.ui02,
  116. paddingVertical: BaseTheme.spacing[1]
  117. },
  118. formSectionTitleText: {
  119. ...BaseTheme.typography.bodyShortBold,
  120. color: BaseTheme.palette.text02,
  121. marginHorizontal: BaseTheme.spacing[4],
  122. marginVertical: BaseTheme.spacing[3]
  123. },
  124. /**
  125. * Global {@code Text} color for the components.
  126. */
  127. text: {
  128. color: BaseTheme.palette.text01
  129. },
  130. /**
  131. * Text input container style.
  132. */
  133. customContainer: {
  134. marginBottom: BaseTheme.spacing[3],
  135. marginHorizontal: BaseTheme.spacing[4],
  136. marginTop: BaseTheme.spacing[2]
  137. },
  138. languageButtonContainer: {
  139. borderRadius: BaseTheme.shape.borderRadius,
  140. overflow: 'hidden'
  141. },
  142. languageButton: {
  143. alignItems: 'center',
  144. display: 'flex',
  145. flexDirection: 'row',
  146. height: BaseTheme.spacing[7],
  147. justifyContent: 'center'
  148. },
  149. languageOption: {
  150. display: 'flex',
  151. flexDirection: 'row',
  152. alignItems: 'center',
  153. height: BaseTheme.spacing[6],
  154. marginHorizontal: BaseTheme.spacing[4],
  155. borderBottomWidth: 1,
  156. borderColor: BaseTheme.palette.ui05
  157. },
  158. selectedLanguage: {
  159. color: BaseTheme.palette.text03
  160. },
  161. languageText: {
  162. ...BaseTheme.typography.bodyShortRegularLarge,
  163. color: BaseTheme.palette.text01,
  164. marginHorizontal: BaseTheme.spacing[2]
  165. },
  166. /**
  167. * Standard text input field style.
  168. */
  169. textInputField: {
  170. color: BaseTheme.palette.field01,
  171. flex: 1,
  172. ...BaseTheme.typography.bodyShortRegularLarge,
  173. textAlign: 'right'
  174. },
  175. /**
  176. * Appended style for column layout fields.
  177. */
  178. textInputFieldColumn: {
  179. backgroundColor: 'rgb(245, 245, 245)',
  180. borderRadius: 8,
  181. marginVertical: 5,
  182. paddingVertical: 3,
  183. textAlign: 'left'
  184. },
  185. /**
  186. * Style for screen container.
  187. */
  188. screenContainer: {
  189. flex: 1
  190. },
  191. linksSection: {
  192. display: 'flex',
  193. flexDirection: 'row',
  194. flex: 1,
  195. marginHorizontal: BaseTheme.spacing[3]
  196. },
  197. linksButton: {
  198. width: '33%',
  199. justifyContent: 'center',
  200. flexDirection: 'row',
  201. alignItems: 'center',
  202. ...BaseTheme.typography.bodyShortBoldLarge
  203. },
  204. logBtn: {
  205. marginRight: BaseTheme.spacing[3]
  206. },
  207. backBtn: {
  208. marginLeft: BaseTheme.spacing[3]
  209. }
  210. };