您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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: 30,
  50. justifyContent: 'center',
  51. paddingHorizontal: 20
  52. },
  53. /**
  54. * Renders the button visually disabled.
  55. */
  56. buttonDisabled: {
  57. backgroundColor: '#cccccc',
  58. borderColor: '#999999'
  59. },
  60. /**
  61. * Join button text style.
  62. */
  63. buttonText: {
  64. alignSelf: 'center',
  65. color: ColorPalette.white,
  66. fontSize: 14
  67. },
  68. /**
  69. * The style of the display name label in the side bar.
  70. */
  71. displayName: {
  72. color: ColorPalette.white,
  73. fontSize: 16,
  74. margin: BoxModel.margin,
  75. textAlign: 'center'
  76. },
  77. /**
  78. * The welcome screen header style.
  79. */
  80. header: {
  81. justifyContent: 'space-between'
  82. },
  83. /**
  84. * Container for the button on the hint box.
  85. */
  86. hintButtonContainer: {
  87. flexDirection: 'row',
  88. justifyContent: 'flex-end'
  89. },
  90. /**
  91. * Container for the text on the hint box.
  92. */
  93. hintTextContainer: {
  94. marginBottom: 2 * BoxModel.margin
  95. },
  96. /**
  97. * Container for the hint box.
  98. */
  99. hintContainer: {
  100. backgroundColor: ColorPalette.white,
  101. borderColor: ColorPalette.white,
  102. borderRadius: 4,
  103. borderWidth: 1,
  104. flexDirection: 'column',
  105. marginVertical: 5,
  106. overflow: 'hidden',
  107. paddingHorizontal: BoxModel.padding,
  108. paddingVertical: 2 * BoxModel.padding
  109. },
  110. /**
  111. * Container for the items in the side bar.
  112. */
  113. itemContainer: {
  114. flexDirection: 'column',
  115. paddingTop: 10
  116. },
  117. /**
  118. * The style of the top-level container/{@code View} of
  119. * {@code LocalVideoTrackUnderlay}.
  120. */
  121. localVideoTrackUnderlay: {
  122. alignSelf: 'stretch',
  123. backgroundColor: 'transparent',
  124. flex: 1
  125. },
  126. /**
  127. * Top level screen style
  128. */
  129. page: {
  130. flex: 1,
  131. flexDirection: 'column'
  132. },
  133. /**
  134. * Container for room name input box and 'join' button.
  135. */
  136. roomContainer: {
  137. alignSelf: 'stretch',
  138. flex: 1,
  139. flexDirection: 'column',
  140. margin: BoxModel.margin,
  141. marginTop: BoxModel.margin * 2
  142. },
  143. /**
  144. * The body of the side bar where the items are.
  145. */
  146. sideBarBody: {
  147. backgroundColor: ColorPalette.white,
  148. flex: 1
  149. },
  150. /**
  151. * The style of the side bar header.
  152. */
  153. sideBarHeader: {
  154. flexDirection: 'column',
  155. height: SIDEBAR_HEADER_HEIGHT,
  156. justifyContent: 'center'
  157. },
  158. /**
  159. * Style of the menu items in the side bar.
  160. */
  161. sideBarItem: {
  162. padding: 13
  163. },
  164. /**
  165. * The View inside the side bar buttons (icon + text).
  166. */
  167. sideBarItemButtonContainer: {
  168. alignItems: 'center',
  169. flexDirection: 'row',
  170. justifyContent: 'flex-start'
  171. },
  172. /**
  173. * The icon in the side bar item touchables.
  174. */
  175. sideBarItemIcon: {
  176. color: ColorPalette.blueHighlight,
  177. fontSize: 20,
  178. marginRight: 15
  179. },
  180. /**
  181. * The label of the side bar item touchables.
  182. */
  183. sideBarItemText: {
  184. color: ColorPalette.black,
  185. fontWeight: 'bold'
  186. },
  187. /**
  188. * Room input style.
  189. */
  190. textInput: {
  191. backgroundColor: 'transparent',
  192. borderColor: ColorPalette.white,
  193. borderRadius: 4,
  194. borderWidth: 1,
  195. color: TEXT_COLOR,
  196. fontSize: 23,
  197. height: 50,
  198. padding: 4,
  199. textAlign: 'center'
  200. },
  201. /**
  202. * Application title style.
  203. */
  204. title: {
  205. color: TEXT_COLOR,
  206. fontSize: 25,
  207. marginBottom: 2 * BoxModel.margin,
  208. textAlign: 'center'
  209. },
  210. /**
  211. * The style of the top-level container of {@code WelcomePage}.
  212. */
  213. welcomePage: {
  214. backgroundColor: ColorPalette.blue,
  215. overflow: 'hidden'
  216. }
  217. });