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 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet
  5. } from '../../base/styles';
  6. const SIDEBAR_HEADER_HEIGHT = 150;
  7. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
  8. export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
  9. export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
  10. /**
  11. * The default color of text on the WelcomePage.
  12. */
  13. const TEXT_COLOR = ColorPalette.white;
  14. /**
  15. * The styles of the React {@code Components} of the feature welcome including
  16. * {@code WelcomePage} and {@code BlankPage}.
  17. */
  18. export default createStyleSheet({
  19. /**
  20. * The audio-video switch itself.
  21. */
  22. audioVideoSwitch: {
  23. marginHorizontal: 5
  24. },
  25. /**
  26. * View that contains the audio-video switch and the labels.
  27. */
  28. audioVideoSwitchContainer: {
  29. flexDirection: 'row'
  30. },
  31. /**
  32. * Style of the avatar in te side bar.
  33. */
  34. avatar: {
  35. alignSelf: 'center',
  36. borderRadius: 50,
  37. flex: 0,
  38. height: 100,
  39. width: 100
  40. },
  41. /**
  42. * Join button style.
  43. */
  44. button: {
  45. backgroundColor: ColorPalette.blue,
  46. borderColor: ColorPalette.blue,
  47. borderRadius: 4,
  48. borderWidth: 1,
  49. height: 40,
  50. justifyContent: 'center',
  51. marginBottom: BoxModel.margin,
  52. marginTop: BoxModel.margin
  53. },
  54. /**
  55. * Join button text style.
  56. */
  57. buttonText: {
  58. alignSelf: 'center',
  59. color: ColorPalette.white,
  60. fontSize: 18
  61. },
  62. /**
  63. * The style of the display name label in the side bar.
  64. */
  65. displayName: {
  66. color: ColorPalette.white,
  67. fontSize: 16,
  68. margin: BoxModel.margin,
  69. textAlign: 'center'
  70. },
  71. /**
  72. * The welcome screen header style.
  73. */
  74. header: {
  75. justifyContent: 'space-between'
  76. },
  77. /**
  78. * Container for the items in the side bar.
  79. */
  80. itemContainer: {
  81. flexDirection: 'column',
  82. paddingTop: 10
  83. },
  84. /**
  85. * The style of the top-level container/{@code View} of
  86. * {@code LocalVideoTrackUnderlay}.
  87. */
  88. localVideoTrackUnderlay: {
  89. alignSelf: 'stretch',
  90. backgroundColor: 'transparent',
  91. flex: 1
  92. },
  93. /**
  94. * Top level screen style
  95. */
  96. page: {
  97. flex: 1,
  98. flexDirection: 'column'
  99. },
  100. /**
  101. * Container for room name input box and 'join' button.
  102. */
  103. roomContainer: {
  104. alignSelf: 'stretch',
  105. flex: 1,
  106. flexDirection: 'column',
  107. margin: BoxModel.margin,
  108. marginTop: BoxModel.margin * 2
  109. },
  110. /**
  111. * The body of the side bar where the items are.
  112. */
  113. sideBarBody: {
  114. backgroundColor: ColorPalette.white,
  115. flex: 1
  116. },
  117. /**
  118. * The style of the side bar header.
  119. */
  120. sideBarHeader: {
  121. flexDirection: 'column',
  122. height: SIDEBAR_HEADER_HEIGHT,
  123. justifyContent: 'center'
  124. },
  125. /**
  126. * Style of the menu items in the side bar.
  127. */
  128. sideBarItem: {
  129. padding: 13
  130. },
  131. /**
  132. * The View inside the side bar buttons (icon + text).
  133. */
  134. sideBarItemButtonContainer: {
  135. alignItems: 'center',
  136. flexDirection: 'row',
  137. justifyContent: 'flex-start'
  138. },
  139. /**
  140. * The icon in the side bar item touchables.
  141. */
  142. sideBarItemIcon: {
  143. color: ColorPalette.blueHighlight,
  144. fontSize: 20,
  145. marginRight: 15
  146. },
  147. /**
  148. * The label of the side bar item touchables.
  149. */
  150. sideBarItemText: {
  151. color: ColorPalette.black,
  152. fontWeight: 'bold'
  153. },
  154. /**
  155. * Room input style.
  156. */
  157. textInput: {
  158. backgroundColor: 'transparent',
  159. borderColor: ColorPalette.white,
  160. borderRadius: 4,
  161. borderWidth: 1,
  162. color: TEXT_COLOR,
  163. fontSize: 23,
  164. height: 50,
  165. padding: 4,
  166. textAlign: 'center'
  167. },
  168. /**
  169. * Application title style.
  170. */
  171. title: {
  172. color: TEXT_COLOR,
  173. fontSize: 25,
  174. marginBottom: 2 * BoxModel.margin,
  175. textAlign: 'center'
  176. },
  177. /**
  178. * The style of the top-level container of {@code WelcomePage}.
  179. */
  180. welcomePage: {
  181. backgroundColor: ColorPalette.blue,
  182. overflow: 'hidden'
  183. }
  184. });