您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.ts 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. const TEXT_SIZE = 14;
  5. /**
  6. * The styles of the native components of the feature {@code settings}.
  7. */
  8. export default {
  9. avatarContainer: {
  10. alignItems: 'center',
  11. flexDirection: 'column',
  12. height: 180,
  13. justifyContent: 'center'
  14. },
  15. /**
  16. * Style for screen container.
  17. */
  18. settingsViewContainer: {
  19. backgroundColor: BaseTheme.palette.ui01,
  20. flex: 1
  21. },
  22. /**
  23. * Standardized style for a field container {@code View}.
  24. */
  25. fieldContainer: {
  26. alignItems: 'center',
  27. flexDirection: 'row',
  28. minHeight: 56,
  29. paddingHorizontal: 8
  30. },
  31. /**
  32. * * Appended style for column layout fields.
  33. */
  34. fieldContainerColumn: {
  35. alignItems: 'flex-start',
  36. flexDirection: 'column'
  37. },
  38. /**
  39. * Standard container for a {@code View} containing a field label.
  40. */
  41. fieldLabelContainer: {
  42. alignItems: 'center',
  43. flexDirection: 'row',
  44. paddingLeft: 8
  45. },
  46. /**
  47. * Text of the field labels on the form.
  48. */
  49. fieldLabelText: {
  50. fontSize: TEXT_SIZE
  51. },
  52. /**
  53. * Appended style for column layout fields.
  54. */
  55. fieldLabelTextColumn: {
  56. fontSize: 12
  57. },
  58. /**
  59. * Field container style for all but last row {@code View}.
  60. */
  61. fieldSeparator: {
  62. borderBottomWidth: 1,
  63. borderColor: BaseTheme.palette.ui05
  64. },
  65. /**
  66. * Style for the {@code View} containing each
  67. * field values (the actual field).
  68. */
  69. fieldValueContainer: {
  70. alignItems: 'center',
  71. flex: 1,
  72. flexDirection: 'row',
  73. justifyContent: 'flex-end',
  74. paddingRight: 8
  75. },
  76. /**
  77. * Style for the form section separator titles.
  78. */
  79. formSectionTitleContent: {
  80. backgroundColor: BaseTheme.palette.ui02,
  81. paddingVertical: BaseTheme.spacing[1]
  82. },
  83. formSectionTitleText: {
  84. ...BaseTheme.typography.bodyShortRegular,
  85. color: BaseTheme.palette.text01,
  86. opacity: 0.6,
  87. textAlign: 'center'
  88. },
  89. /**
  90. * Global {@code Text} color for the components.
  91. */
  92. text: {
  93. color: BaseTheme.palette.text01
  94. },
  95. /**
  96. * Text input container style.
  97. */
  98. customContainer: {
  99. marginBottom: BaseTheme.spacing[3],
  100. marginHorizontal: BaseTheme.spacing[3],
  101. marginTop: BaseTheme.spacing[2]
  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. /**
  123. * Style for screen container.
  124. */
  125. screenContainer: {
  126. flex: 1
  127. },
  128. linksButton: {
  129. alignSelf: 'center',
  130. maxWidth: 400,
  131. width: 'auto'
  132. }
  133. };