Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

styles.js 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import {
  2. ColorPalette,
  3. createStyleSheet
  4. } from '../../../base/styles';
  5. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  6. const TEXT_SIZE = 17;
  7. /**
  8. * The styles of the native components of the feature {@code settings}.
  9. */
  10. export default createStyleSheet({
  11. /**
  12. * Standardized style for a field container {@code View}.
  13. */
  14. fieldContainer: {
  15. alignItems: 'center',
  16. flexDirection: 'row',
  17. minHeight: 65,
  18. paddingHorizontal: 8
  19. },
  20. /**
  21. * Standard container for a {@code View} containing a field label.
  22. */
  23. fieldLabelContainer: {
  24. alignItems: 'center',
  25. flexDirection: 'row',
  26. marginRight: 5
  27. },
  28. /**
  29. * Text of the field labels on the form.
  30. */
  31. fieldLabelText: {
  32. fontSize: TEXT_SIZE
  33. },
  34. /**
  35. * Field container style for all but last row {@code View}.
  36. */
  37. fieldSeparator: {
  38. borderBottomWidth: 1,
  39. borderColor: 'rgba(0, 0, 0, 0.1)'
  40. },
  41. /**
  42. * Style for the {@code View} containing each
  43. * field values (the actual field).
  44. */
  45. fieldValueContainer: {
  46. alignItems: 'center',
  47. flex: 1,
  48. flexDirection: 'row',
  49. justifyContent: 'flex-end'
  50. },
  51. /**
  52. * Style fo the form section separator titles.
  53. */
  54. formSectionTitle: {
  55. backgroundColor: 'rgba(0, 0, 0, 0.1)',
  56. marginTop: 5,
  57. padding: 5
  58. },
  59. settingsForm: {
  60. backgroundColor: ColorPalette.white,
  61. flex: 1
  62. },
  63. /**
  64. * Global {@code Text} color for the components.
  65. */
  66. text: {
  67. color: ColorPalette.black
  68. },
  69. /**
  70. * Standard text input field style.
  71. */
  72. textInputField: {
  73. flex: 1,
  74. fontSize: TEXT_SIZE,
  75. textAlign: 'right'
  76. }
  77. });