mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-21 18:27:47 +00:00
feat(rn, thumbnail) Updated indicators on native (#11280)
Remove tint for participant in large view Change pinned indicator from border to icon On stage view move screen sharing indicator from top to bottom On stage view show pinned indicator instead of moderator indicator
This commit is contained in:
@@ -45,11 +45,6 @@ export default {
|
||||
'LargeVideo': {
|
||||
background: '#040404'
|
||||
},
|
||||
'Thumbnail': {
|
||||
activeParticipantHighlight: 'rgb(81, 214, 170)',
|
||||
activeParticipantTint: 'rgba(49, 183, 106, 0.3)',
|
||||
background: '#36383C'
|
||||
},
|
||||
'Toolbox': {
|
||||
button: 'rgb(255, 255, 255)',
|
||||
buttonToggled: 'rgb(38, 58, 76)',
|
||||
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
} from '../../media';
|
||||
import { Container, TintedView } from '../../react';
|
||||
import { connect } from '../../redux';
|
||||
import type { StyleType } from '../../styles';
|
||||
import { TestHint } from '../../testing/components';
|
||||
import { getTrackByMediaTypeAndParticipant } from '../../tracks';
|
||||
import { shouldRenderParticipantVideo, getParticipantById } from '../functions';
|
||||
@@ -91,17 +90,6 @@ type Props = {
|
||||
*/
|
||||
t: Function,
|
||||
|
||||
/**
|
||||
* If true, a tinting will be applied to the view, regardless of video or
|
||||
* avatar is rendered.
|
||||
*/
|
||||
tintEnabled: boolean,
|
||||
|
||||
/**
|
||||
* The style of the tinting when applied.
|
||||
*/
|
||||
tintStyle: StyleType,
|
||||
|
||||
/**
|
||||
* The test hint id which can be used to locate the {@code ParticipantView}
|
||||
* on the jitsi-meet-torture side. If not provided, the
|
||||
@@ -193,15 +181,12 @@ class ParticipantView extends Component<Props> {
|
||||
_renderVideo: renderVideo,
|
||||
_videoTrack: videoTrack,
|
||||
disableVideo,
|
||||
onPress,
|
||||
tintStyle
|
||||
onPress
|
||||
} = this.props;
|
||||
|
||||
// If the connection has problems, we will "tint" the video / avatar.
|
||||
const connectionProblem
|
||||
= connectionStatus !== JitsiParticipantConnectionStatus.ACTIVE;
|
||||
const useTint
|
||||
= connectionProblem || this.props.tintEnabled;
|
||||
|
||||
const testHintId
|
||||
= this.props.testHintId
|
||||
@@ -241,12 +226,10 @@ class ParticipantView extends Component<Props> {
|
||||
size = { this.props.avatarSize } />
|
||||
</View> }
|
||||
|
||||
{ useTint
|
||||
{ connectionProblem
|
||||
|
||||
// If the connection has problems, tint the video / avatar.
|
||||
&& <TintedView
|
||||
style = {
|
||||
connectionProblem ? undefined : tintStyle } /> }
|
||||
&& <TintedView /> }
|
||||
|
||||
{ this.props.useConnectivityInfoLabel
|
||||
&& this._renderConnectionInfo(connectionStatus) }
|
||||
|
||||
Reference in New Issue
Block a user