Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { ColorPalette, createStyleSheet } from '../../base/styles';
  2. /**
  3. * Generic styles for a button.
  4. *
  5. * @type {Object}
  6. */
  7. const button = {
  8. alignSelf: 'center',
  9. borderRadius: 35,
  10. borderWidth: 0,
  11. flexDirection: 'row',
  12. height: 60,
  13. justifyContent: 'center',
  14. width: 60
  15. };
  16. /**
  17. * Generic container for buttons.
  18. *
  19. * @type {Object}
  20. */
  21. const container = {
  22. flex: 1,
  23. flexDirection: 'row',
  24. left: 0,
  25. position: 'absolute',
  26. right: 0
  27. };
  28. /**
  29. * Generic styles for an icon.
  30. *
  31. * @type {Object}
  32. */
  33. const icon = {
  34. alignSelf: 'center',
  35. color: ColorPalette.jitsiDarkGrey,
  36. fontSize: 24
  37. };
  38. /**
  39. * The (conference) toolbar related styles.
  40. * TODO Make styles more generic and reusable. Use ColorPalette for all colors.
  41. */
  42. export const styles = createStyleSheet({
  43. /**
  44. * The toolbar button icon style.
  45. */
  46. icon: {
  47. ...icon,
  48. color: ColorPalette.jitsiDarkGrey
  49. },
  50. /**
  51. * The toggle camera facing mode button style.
  52. */
  53. toggleCameraFacingModeButton: {
  54. ...button,
  55. backgroundColor: 'transparent'
  56. },
  57. /**
  58. * Container for toggle camera facing mode button.
  59. */
  60. toggleCameraFacingModeContainer: {
  61. ...container,
  62. height: 60,
  63. justifyContent: 'flex-end'
  64. },
  65. /**
  66. * The toolbar button style.
  67. */
  68. toolbarButton: {
  69. ...button,
  70. backgroundColor: 'white',
  71. marginLeft: 20,
  72. marginRight: 20,
  73. opacity: 0.8
  74. },
  75. /**
  76. * The toolbar buttons container style.
  77. */
  78. toolbarButtonsContainer: {
  79. ...container,
  80. bottom: 30,
  81. height: 60,
  82. justifyContent: 'center'
  83. },
  84. /**
  85. * The toolbar container style.
  86. */
  87. toolbarContainer: {
  88. ...container,
  89. bottom: 0,
  90. top: 0
  91. },
  92. /**
  93. * The toolbar white button icon style.
  94. */
  95. whiteIcon: {
  96. ...icon,
  97. color: 'white'
  98. }
  99. });