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.3KB

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