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

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