You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.darkGrey,
  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.darkGrey
  49. },
  50. /**
  51. * The style of the toolbar which contains the primary buttons such as
  52. * hangup, audio and video mute.
  53. */
  54. primaryToolbar: {
  55. ...container,
  56. bottom: 30,
  57. height: 60,
  58. justifyContent: 'center'
  59. },
  60. /**
  61. * The style of the toolbar which contains the secondary buttons such as
  62. * toggle camera facing mode.
  63. */
  64. secondaryToolbar: {
  65. ...container,
  66. height: 60,
  67. justifyContent: 'flex-end'
  68. },
  69. /**
  70. * The toggle camera facing mode button style.
  71. */
  72. toggleCameraFacingModeButton: {
  73. ...button,
  74. backgroundColor: 'transparent'
  75. },
  76. /**
  77. * The toolbar button style.
  78. */
  79. toolbarButton: {
  80. ...button,
  81. backgroundColor: ColorPalette.white,
  82. marginLeft: 20,
  83. marginRight: 20,
  84. opacity: 0.8
  85. },
  86. /**
  87. * The toolbar container style.
  88. */
  89. toolbarContainer: {
  90. ...container,
  91. bottom: 0,
  92. top: 0
  93. },
  94. /**
  95. * The toolbar white button icon style.
  96. */
  97. whiteIcon: {
  98. ...icon,
  99. color: ColorPalette.white
  100. }
  101. });