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

styles.js 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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: 'center'
  89. },
  90. /**
  91. * Container for the hint box.
  92. */
  93. hintContainer: {
  94. backgroundColor: ColorPalette.white,
  95. borderColor: ColorPalette.white,
  96. borderRadius: 4,
  97. borderWidth: 1,
  98. flexDirection: 'column',
  99. marginVertical: 5,
  100. overflow: 'hidden',
  101. paddingHorizontal: BoxModel.padding,
  102. paddingVertical: 2 * BoxModel.padding
  103. },
  104. /**
  105. * Container for the text on the hint box.
  106. */
  107. hintTextContainer: {
  108. marginBottom: 2 * BoxModel.margin
  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. pageIndicator: {
  134. backgroundColor: 'rgba(255, 255, 255, 0.2)',
  135. height: 3,
  136. marginHorizontal: 7,
  137. width: 20
  138. },
  139. pageIndicatorActive: {
  140. backgroundColor: 'rgba(255, 255, 255, 0.8)'
  141. },
  142. pageIndicatorContainer: {
  143. alignItems: 'center',
  144. flexDirection: 'row',
  145. justifyContent: 'center',
  146. padding: 12
  147. },
  148. /**
  149. * Top level style of the paged list.
  150. */
  151. pagedList: {
  152. flex: 1
  153. },
  154. pagedListContainer: {
  155. flex: 1,
  156. flexDirection: 'column'
  157. },
  158. /**
  159. * Disabled style for the container.
  160. */
  161. pagedListContainerDisabled: {
  162. opacity: 0.2
  163. },
  164. /**
  165. * Container for room name input box and 'join' button.
  166. */
  167. roomContainer: {
  168. alignSelf: 'stretch',
  169. flexDirection: 'column'
  170. },
  171. /**
  172. * The body of the side bar where the items are.
  173. */
  174. sideBarBody: {
  175. backgroundColor: ColorPalette.white,
  176. flex: 1
  177. },
  178. /**
  179. * The style of the side bar header.
  180. */
  181. sideBarHeader: {
  182. flexDirection: 'column',
  183. height: SIDEBAR_HEADER_HEIGHT,
  184. justifyContent: 'center'
  185. },
  186. /**
  187. * Style of the menu items in the side bar.
  188. */
  189. sideBarItem: {
  190. padding: 13
  191. },
  192. /**
  193. * The View inside the side bar buttons (icon + text).
  194. */
  195. sideBarItemButtonContainer: {
  196. alignItems: 'center',
  197. flexDirection: 'row',
  198. justifyContent: 'flex-start'
  199. },
  200. /**
  201. * The icon in the side bar item touchables.
  202. */
  203. sideBarItemIcon: {
  204. color: ColorPalette.blueHighlight,
  205. fontSize: 20,
  206. marginRight: 15
  207. },
  208. /**
  209. * The label of the side bar item touchables.
  210. */
  211. sideBarItemText: {
  212. color: ColorPalette.black,
  213. fontWeight: 'bold'
  214. },
  215. /**
  216. * Room input style.
  217. */
  218. textInput: {
  219. backgroundColor: 'transparent',
  220. borderColor: ColorPalette.white,
  221. borderRadius: 4,
  222. borderWidth: 1,
  223. color: TEXT_COLOR,
  224. fontSize: 23,
  225. height: 50,
  226. padding: 4,
  227. textAlign: 'center'
  228. },
  229. /**
  230. * Application title style.
  231. */
  232. title: {
  233. color: TEXT_COLOR,
  234. fontSize: 25,
  235. marginBottom: 2 * BoxModel.margin,
  236. textAlign: 'center'
  237. },
  238. /**
  239. * The style of the top-level container of {@code WelcomePage}.
  240. */
  241. welcomePage: {
  242. backgroundColor: ColorPalette.blue,
  243. overflow: 'hidden'
  244. }
  245. });