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

styles.js 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. formSectionTitleContent: {
  81. backgroundColor: BaseTheme.palette.ui02,
  82. paddingVertical: BaseTheme.spacing[1]
  83. },
  84. formSectionTitleText: {
  85. ...BaseTheme.typography.bodyShortRegular,
  86. color: BaseTheme.palette.text01,
  87. opacity: 0.6,
  88. textAlign: 'center'
  89. },
  90. /**
  91. * Global {@code Text} color for the components.
  92. */
  93. text: {
  94. color: BaseTheme.palette.text01
  95. },
  96. /**
  97. * Text input container style.
  98. */
  99. customContainer: {
  100. marginBottom: BaseTheme.spacing[3],
  101. marginHorizontal: BaseTheme.spacing[3],
  102. marginTop: BaseTheme.spacing[2]
  103. },
  104. /**
  105. * Standard text input field style.
  106. */
  107. textInputField: {
  108. color: BaseTheme.palette.field01,
  109. flex: 1,
  110. fontSize: TEXT_SIZE,
  111. textAlign: 'right'
  112. },
  113. /**
  114. * Appended style for column layout fields.
  115. */
  116. textInputFieldColumn: {
  117. backgroundColor: 'rgb(245, 245, 245)',
  118. borderRadius: 8,
  119. marginVertical: 5,
  120. paddingVertical: 3,
  121. textAlign: 'left'
  122. },
  123. /**
  124. * Style for screen container.
  125. */
  126. screenContainer: {
  127. flex: 1
  128. }
  129. };