Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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