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

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