Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. // @flow
  2. import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme';
  3. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  4. const BUTTON_SIZE = 48;
  5. // Toolbox, toolbar:
  6. /**
  7. * The style of toolbar buttons.
  8. */
  9. const toolbarButton = {
  10. borderRadius: 3,
  11. borderWidth: 0,
  12. flex: 0,
  13. flexDirection: 'row',
  14. height: BUTTON_SIZE,
  15. justifyContent: 'center',
  16. marginHorizontal: 6,
  17. marginVertical: 6,
  18. width: BUTTON_SIZE
  19. };
  20. /**
  21. * The icon style of the toolbar buttons.
  22. */
  23. const toolbarButtonIcon = {
  24. alignSelf: 'center',
  25. color: BaseTheme.palette.icon04,
  26. fontSize: 24
  27. };
  28. /**
  29. * The icon style of toolbar buttons which display white icons.
  30. */
  31. const whiteToolbarButtonIcon = {
  32. ...toolbarButtonIcon,
  33. color: BaseTheme.palette.icon01
  34. };
  35. /**
  36. * The style of reaction buttons.
  37. */
  38. const reactionButton = {
  39. ...toolbarButton,
  40. backgroundColor: 'transparent',
  41. alignItems: 'center',
  42. marginTop: 0,
  43. marginHorizontal: 0
  44. };
  45. /**
  46. * The style of the emoji on the reaction buttons.
  47. */
  48. const reactionEmoji = {
  49. fontSize: 20,
  50. color: BaseTheme.palette.icon01
  51. };
  52. const reactionMenu = {
  53. flexDirection: 'column',
  54. justifyContent: 'center',
  55. alignItems: 'center',
  56. backgroundColor: BaseTheme.palette.bottomSheet,
  57. padding: BaseTheme.spacing[3]
  58. };
  59. /**
  60. * The Toolbox and toolbar related styles.
  61. */
  62. const styles = {
  63. sheetGestureRecognizer: {
  64. alignItems: 'stretch',
  65. flexDirection: 'column'
  66. },
  67. /**
  68. * The style of the toolbar.
  69. */
  70. toolbox: {
  71. alignItems: 'center',
  72. backgroundColor: BaseTheme.palette.uiBackground,
  73. borderTopLeftRadius: 3,
  74. borderTopRightRadius: 3,
  75. flexDirection: 'row',
  76. justifyContent: 'space-between'
  77. },
  78. /**
  79. * The style of the root/top-level container of {@link Toolbox}.
  80. */
  81. toolboxContainer: {
  82. backgroundColor: BaseTheme.palette.uiBackground,
  83. flexDirection: 'column',
  84. maxWidth: 580,
  85. marginLeft: 'auto',
  86. marginRight: 'auto',
  87. width: '100%'
  88. }
  89. };
  90. export default styles;
  91. /**
  92. * Color schemed styles for the @{Toolbox} component.
  93. */
  94. ColorSchemeRegistry.register('Toolbox', {
  95. /**
  96. * Styles for buttons in the toolbar.
  97. */
  98. buttonStyles: {
  99. iconStyle: toolbarButtonIcon,
  100. style: toolbarButton
  101. },
  102. buttonStylesBorderless: {
  103. iconStyle: whiteToolbarButtonIcon,
  104. style: {
  105. ...toolbarButton,
  106. backgroundColor: 'transparent'
  107. }
  108. },
  109. backgroundToggle: {
  110. backgroundColor: BaseTheme.palette.ui13
  111. },
  112. hangupButtonStyles: {
  113. iconStyle: whiteToolbarButtonIcon,
  114. style: {
  115. ...toolbarButton,
  116. backgroundColor: schemeColor('hangup')
  117. },
  118. underlayColor: BaseTheme.palette.underlay01
  119. },
  120. reactionDialog: {
  121. position: 'absolute',
  122. width: '100%',
  123. height: '100%',
  124. backgroundColor: 'transparent'
  125. },
  126. overflowReactionMenu: reactionMenu,
  127. reactionMenu: {
  128. ...reactionMenu,
  129. borderRadius: 3,
  130. width: 360
  131. },
  132. reactionRow: {
  133. flexDirection: 'row',
  134. justifyContent: 'space-between',
  135. alignItems: 'center',
  136. width: '100%',
  137. marginBottom: 16
  138. },
  139. reactionButton: {
  140. style: reactionButton,
  141. underlayColor: BaseTheme.palette.ui13,
  142. emoji: reactionEmoji
  143. },
  144. raiseHandButton: {
  145. style: {
  146. ...reactionButton,
  147. backgroundColor: BaseTheme.palette.ui13,
  148. width: '100%',
  149. borderRadius: 6
  150. },
  151. underlayColor: BaseTheme.palette.ui13,
  152. emoji: reactionEmoji,
  153. text: {
  154. color: BaseTheme.palette.text01,
  155. fontWeight: '600',
  156. marginLeft: 8,
  157. lineHeight: 24
  158. },
  159. container: {
  160. flexDirection: 'row',
  161. alignItems: 'center',
  162. justifyContent: 'center'
  163. }
  164. },
  165. emojiAnimation: {
  166. color: BaseTheme.palette.icon01,
  167. position: 'absolute',
  168. zIndex: 1001,
  169. elevation: 2,
  170. fontSize: 20,
  171. left: '50%',
  172. top: '100%'
  173. },
  174. /**
  175. * Styles for toggled buttons in the toolbar.
  176. */
  177. toggledButtonStyles: {
  178. iconStyle: whiteToolbarButtonIcon,
  179. style: {
  180. ...toolbarButton
  181. }
  182. }
  183. });