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

styles.js 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. // @flow
  2. import { Dimensions, StyleSheet } from 'react-native';
  3. import { BoxModel, ColorPalette } from '../../base/styles';
  4. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.5)';
  5. export const SIDEBAR_AVATAR_SIZE = 100;
  6. const SIDEBAR_HEADER_HEIGHT = 150;
  7. export const SWITCH_THUMB_COLOR = ColorPalette.blueHighlight;
  8. export const SWITCH_UNDER_COLOR = 'rgba(0, 0, 0, 0.4)';
  9. /**
  10. * The default color of text on the WelcomePage.
  11. */
  12. const TEXT_COLOR = ColorPalette.white;
  13. /**
  14. * The styles of the React {@code Components} of the feature welcome including
  15. * {@code WelcomePage} and {@code BlankPage}.
  16. */
  17. export default {
  18. infoPage:{
  19. backgroundColor:"green",
  20. height:"100%",
  21. // width:50,
  22. // height: 0,
  23. zIndex:100,
  24. // zIndex:-1,
  25. // pointerEvents:'none'
  26. },
  27. iptxt_header:{
  28. margin: 20,
  29. fontSize: 32,
  30. color: ColorPalette.white,
  31. },
  32. iptxt:{
  33. marginLeft: 20,
  34. fontSize: 22,
  35. color: ColorPalette.white,
  36. // color: ColorPalette.blue,
  37. // bottom:0,
  38. // top:30,
  39. // ou
  40. // borderWidth: 6,
  41. },
  42. /**
  43. * The audio-video switch itself.
  44. */
  45. audioVideoSwitch: {
  46. marginHorizontal: 5
  47. },
  48. /**
  49. * View that contains the audio-video switch and the labels.
  50. */
  51. audioVideoSwitchContainer: {
  52. alignItems: 'center',
  53. flexDirection: 'row'
  54. },
  55. /**
  56. * View that is rendered when there is no welcome page.
  57. */
  58. blankPageWrapper: {
  59. ...StyleSheet.absoluteFillObject,
  60. alignItems: 'center',
  61. flex: 1,
  62. flexDirection: 'column',
  63. justifyContent: 'center'
  64. },
  65. /**
  66. * Join button style.
  67. */
  68. button: {
  69. backgroundColor: ColorPalette.blue,
  70. borderColor: ColorPalette.blue,
  71. borderRadius: 4,
  72. borderWidth: 1,
  73. height: 30,
  74. justifyContent: 'center',
  75. paddingHorizontal: 20
  76. },
  77. /**
  78. * Join button text style.
  79. */
  80. buttonText: {
  81. alignSelf: 'center',
  82. fontSize: 14
  83. },
  84. /**
  85. * The style of the display name label in the side bar.
  86. */
  87. displayName: {
  88. color: ColorPalette.white,
  89. fontSize: 16,
  90. marginTop: BoxModel.margin,
  91. textAlign: 'center'
  92. },
  93. enterRoomText: {
  94. color: TEXT_COLOR,
  95. fontSize: 18,
  96. marginBottom: BoxModel.margin
  97. },
  98. /**
  99. * The welcome screen header style.
  100. */
  101. header: {
  102. justifyContent: 'space-between'
  103. },
  104. /**
  105. * Container for the button on the hint box.
  106. */
  107. hintButtonContainer: {
  108. flexDirection: 'row',
  109. justifyContent: 'center'
  110. },
  111. /**
  112. * Container for the hint box.
  113. */
  114. hintContainer: {
  115. flexDirection: 'column',
  116. overflow: 'hidden'
  117. },
  118. /**
  119. * The text of the hint box.
  120. */
  121. hintText: {
  122. textAlign: 'center'
  123. },
  124. /**
  125. * Container for the text on the hint box.
  126. */
  127. hintTextContainer: {
  128. marginBottom: 2 * BoxModel.margin
  129. },
  130. /**
  131. * Container for the items in the side bar.
  132. */
  133. itemContainer: {
  134. flexDirection: 'column',
  135. paddingTop: 10
  136. },
  137. /**
  138. * A view that contains the field and hint box.
  139. */
  140. joinControls: {
  141. padding: BoxModel.padding
  142. },
  143. messageContainer: {
  144. backgroundColor: ColorPalette.white,
  145. borderColor: ColorPalette.white,
  146. borderRadius: 4,
  147. borderWidth: 1,
  148. marginVertical: 5,
  149. paddingHorizontal: BoxModel.padding,
  150. paddingVertical: 2 * BoxModel.padding
  151. },
  152. /**
  153. * The style of the top-level container/{@code View} of
  154. * {@code LocalVideoTrackUnderlay}.
  155. */
  156. localVideoTrackUnderlay: {
  157. alignSelf: 'stretch',
  158. backgroundColor: 'transparent',
  159. flex: 1
  160. },
  161. /**
  162. * Top-level screen style.
  163. */
  164. page: {
  165. flex: 1,
  166. flexDirection: 'column'
  167. },
  168. /**
  169. * The styles for reduced UI mode.
  170. */
  171. reducedUIContainer: {
  172. alignItems: 'center',
  173. backgroundColor: ColorPalette.blue,
  174. flex: 1,
  175. justifyContent: 'center'
  176. },
  177. reducedUIText: {
  178. color: TEXT_COLOR,
  179. fontSize: 12
  180. },
  181. /**
  182. * Container for room name input box and 'join' button.
  183. */
  184. roomContainer: {
  185. alignSelf: 'stretch',
  186. flexDirection: 'column'
  187. },
  188. /**
  189. * Container of the side bar.
  190. */
  191. sideBar: {
  192. width: 250,
  193. height: Dimensions.get('window').height
  194. },
  195. /**
  196. * The body of the side bar where the items are.
  197. */
  198. sideBarBody: {
  199. backgroundColor: ColorPalette.white,
  200. flex: 1
  201. },
  202. /**
  203. * The style of the side bar header.
  204. */
  205. sideBarHeader: {
  206. alignItems: 'center',
  207. flexDirection: 'column',
  208. height: SIDEBAR_HEADER_HEIGHT,
  209. justifyContent: 'center',
  210. padding: BoxModel.padding
  211. },
  212. /**
  213. * Style of the menu items in the side bar.
  214. */
  215. sideBarItem: {
  216. padding: 13
  217. },
  218. /**
  219. * The View inside the side bar buttons (icon + text).
  220. */
  221. sideBarItemButtonContainer: {
  222. alignItems: 'center',
  223. flexDirection: 'row',
  224. justifyContent: 'flex-start'
  225. },
  226. /**
  227. * The icon in the side bar item touchables.
  228. */
  229. sideBarItemIcon: {
  230. color: ColorPalette.blueHighlight,
  231. fontSize: 20,
  232. marginRight: 15
  233. },
  234. /**
  235. * The label of the side bar item touchables.
  236. */
  237. sideBarItemText: {
  238. color: ColorPalette.black,
  239. fontWeight: 'bold'
  240. },
  241. /**
  242. * The container of the label of the audio-video switch.
  243. */
  244. switchLabel: {
  245. paddingHorizontal: 3
  246. },
  247. /**
  248. * Room input style.
  249. */
  250. textInput: {
  251. backgroundColor: 'transparent',
  252. borderColor: ColorPalette.white,
  253. borderRadius: 4,
  254. borderWidth: 1,
  255. color: TEXT_COLOR,
  256. fontSize: 23,
  257. height: 50,
  258. padding: 4,
  259. textAlign: 'center'
  260. },
  261. /**
  262. * Application title style.
  263. */
  264. title: {
  265. color: TEXT_COLOR,
  266. fontSize: 25,
  267. marginBottom: 2 * BoxModel.margin,
  268. textAlign: 'center'
  269. },
  270. insecureRoomNameWarningContainer: {
  271. alignItems: 'center',
  272. flexDirection: 'row',
  273. paddingHorizontal: 5
  274. },
  275. insecureRoomNameWarningIcon: {
  276. color: ColorPalette.warning,
  277. fontSize: 24,
  278. marginRight: 10
  279. },
  280. insecureRoomNameWarningText: {
  281. color: ColorPalette.warning,
  282. flex: 1
  283. },
  284. /**
  285. * The style of the top-level container of {@code WelcomePage}.
  286. */
  287. welcomePage: {
  288. backgroundColor: ColorPalette.blue,
  289. overflow: 'hidden'
  290. }
  291. };