|
|
@@ -2,6 +2,7 @@
|
|
2
|
2
|
|
|
3
|
3
|
import React from 'react';
|
|
4
|
4
|
import { NativeModules, SafeAreaView, StatusBar, View } from 'react-native';
|
|
|
5
|
+import LinearGradient from 'react-native-linear-gradient';
|
|
5
|
6
|
|
|
6
|
7
|
import { appNavigate } from '../../../app';
|
|
7
|
8
|
import { PIP_ENABLED, getFeatureFlag } from '../../../base/flags';
|
|
|
@@ -34,7 +35,7 @@ import {
|
|
34
|
35
|
} from '../AbstractConference';
|
|
35
|
36
|
import Labels from './Labels';
|
|
36
|
37
|
import NavigationBar from './NavigationBar';
|
|
37
|
|
-import styles from './styles';
|
|
|
38
|
+import styles, { NAVBAR_GRADIENT_COLORS } from './styles';
|
|
38
|
39
|
|
|
39
|
40
|
import type { AbstractProps } from '../AbstractConference';
|
|
40
|
41
|
|
|
|
@@ -199,10 +200,14 @@ class Conference extends AbstractConference<Props, *> {
|
|
199
|
200
|
render() {
|
|
200
|
201
|
const {
|
|
201
|
202
|
_connecting,
|
|
|
203
|
+ _filmstripVisible,
|
|
202
|
204
|
_largeVideoParticipantId,
|
|
203
|
205
|
_reducedUI,
|
|
204
|
|
- _shouldDisplayTileView
|
|
|
206
|
+ _shouldDisplayTileView,
|
|
|
207
|
+ _toolboxVisible
|
|
205
|
208
|
} = this.props;
|
|
|
209
|
+ const showGradient = _toolboxVisible;
|
|
|
210
|
+ const applyGradientStretching = _filmstripVisible && isNarrowAspectRatio(this) && !_shouldDisplayTileView;
|
|
206
|
211
|
|
|
207
|
212
|
return (
|
|
208
|
213
|
<Container style = { styles.conference }>
|
|
|
@@ -242,6 +247,22 @@ class Conference extends AbstractConference<Props, *> {
|
|
242
|
247
|
pointerEvents = 'box-none'
|
|
243
|
248
|
style = { styles.toolboxAndFilmstripContainer }>
|
|
244
|
249
|
|
|
|
250
|
+ { showGradient && <LinearGradient
|
|
|
251
|
+ colors = { NAVBAR_GRADIENT_COLORS }
|
|
|
252
|
+ end = {{
|
|
|
253
|
+ x: 0.0,
|
|
|
254
|
+ y: 0.0
|
|
|
255
|
+ }}
|
|
|
256
|
+ pointerEvents = 'none'
|
|
|
257
|
+ start = {{
|
|
|
258
|
+ x: 0.0,
|
|
|
259
|
+ y: applyGradientStretching ? 0.5 : 1.0
|
|
|
260
|
+ }}
|
|
|
261
|
+ style = { [
|
|
|
262
|
+ styles.bottomGradient,
|
|
|
263
|
+ applyGradientStretching ? styles.gradientStretchBottom : undefined
|
|
|
264
|
+ ] } />}
|
|
|
265
|
+
|
|
245
|
266
|
<Labels />
|
|
246
|
267
|
|
|
247
|
268
|
<Captions onPress = { this._onClick } />
|
|
|
@@ -249,7 +270,7 @@ class Conference extends AbstractConference<Props, *> {
|
|
249
|
270
|
{ _shouldDisplayTileView || <DisplayNameLabel participantId = { _largeVideoParticipantId } /> }
|
|
250
|
271
|
|
|
251
|
272
|
{/*
|
|
252
|
|
- * The Toolbox is in a stacking layer bellow the Filmstrip.
|
|
|
273
|
+ * The Toolbox is in a stacking layer below the Filmstrip.
|
|
253
|
274
|
*/}
|
|
254
|
275
|
<Toolbox />
|
|
255
|
276
|
|