feat(toolbox/conference): button places updates
This commit is contained in:
parent
30b0bb7bd6
commit
7e2f3f7d68
|
@ -9,6 +9,8 @@ import { connect } from '../../../base/redux';
|
||||||
import InviteButton from '../../../invite/components/add-people-dialog/native/InviteButton';
|
import InviteButton from '../../../invite/components/add-people-dialog/native/InviteButton';
|
||||||
import AudioDeviceToggleButton from '../../../mobile/audio-mode/components/AudioDeviceToggleButton';
|
import AudioDeviceToggleButton from '../../../mobile/audio-mode/components/AudioDeviceToggleButton';
|
||||||
import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
|
import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
|
||||||
|
import ToggleCameraButton
|
||||||
|
from '../../../toolbox/components/native/ToggleCameraButton';
|
||||||
import { isToolboxVisible } from '../../../toolbox/functions.native';
|
import { isToolboxVisible } from '../../../toolbox/functions.native';
|
||||||
import ConferenceTimer from '../ConferenceTimer';
|
import ConferenceTimer from '../ConferenceTimer';
|
||||||
|
|
||||||
|
@ -82,10 +84,13 @@ const TitleBar = (props: Props) => (<>
|
||||||
<Labels createOnPress = { props._createOnPress } />
|
<Labels createOnPress = { props._createOnPress } />
|
||||||
</View>
|
</View>
|
||||||
<View style = { styles.titleBarButtonContainer }>
|
<View style = { styles.titleBarButtonContainer }>
|
||||||
<AudioDeviceToggleButton styles = { styles.inviteButton } />
|
<ToggleCameraButton styles = { styles.titleBarButton } />
|
||||||
</View>
|
</View>
|
||||||
<View style = { styles.titleBarButtonContainer }>
|
<View style = { styles.titleBarButtonContainer }>
|
||||||
<InviteButton styles = { styles.inviteButton } />
|
<AudioDeviceToggleButton styles = { styles.titleBarButton } />
|
||||||
|
</View>
|
||||||
|
<View style = { styles.titleBarButtonContainer }>
|
||||||
|
<InviteButton styles = { styles.titleBarButton } />
|
||||||
</View>
|
</View>
|
||||||
</View>}
|
</View>}
|
||||||
</>);
|
</>);
|
||||||
|
|
|
@ -75,7 +75,7 @@ export default {
|
||||||
width: BaseTheme.spacing[7]
|
width: BaseTheme.spacing[7]
|
||||||
},
|
},
|
||||||
|
|
||||||
inviteButton: {
|
titleBarButton: {
|
||||||
iconStyle: {
|
iconStyle: {
|
||||||
color: BaseTheme.palette.icon01,
|
color: BaseTheme.palette.icon01,
|
||||||
padding: 12,
|
padding: 12,
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { BottomSheet, hideSheet } from '../../../base/dialog';
|
||||||
import { bottomSheetStyles } from '../../../base/dialog/components/native/styles';
|
import { bottomSheetStyles } from '../../../base/dialog/components/native/styles';
|
||||||
import { connect } from '../../../base/redux';
|
import { connect } from '../../../base/redux';
|
||||||
import { SharedDocumentButton } from '../../../etherpad';
|
import { SharedDocumentButton } from '../../../etherpad';
|
||||||
import { ParticipantsPaneButton } from '../../../participants-pane/components/native';
|
|
||||||
import { ReactionMenu } from '../../../reactions/components';
|
import { ReactionMenu } from '../../../reactions/components';
|
||||||
import { isReactionsEnabled } from '../../../reactions/functions.any';
|
import { isReactionsEnabled } from '../../../reactions/functions.any';
|
||||||
import { LiveStreamButton, RecordButton } from '../../../recording';
|
import { LiveStreamButton, RecordButton } from '../../../recording';
|
||||||
|
@ -115,25 +114,11 @@ class OverflowMenu extends PureComponent<Props, State> {
|
||||||
styles: bottomSheetStyles.buttons
|
styles: bottomSheetStyles.buttons
|
||||||
};
|
};
|
||||||
|
|
||||||
const topButtonProps = {
|
|
||||||
afterClick: this._onCancel,
|
|
||||||
showLabel: true,
|
|
||||||
styles: {
|
|
||||||
...bottomSheetStyles.buttons,
|
|
||||||
style: {
|
|
||||||
...bottomSheetStyles.buttons.style,
|
|
||||||
borderTopLeftRadius: 16,
|
|
||||||
borderTopRightRadius: 16
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BottomSheet
|
<BottomSheet
|
||||||
renderFooter = { _reactionsEnabled && !toolbarButtons.has('raisehand')
|
renderFooter = { _reactionsEnabled && !toolbarButtons.has('raisehand')
|
||||||
? this._renderReactionMenu
|
? this._renderReactionMenu
|
||||||
: null }>
|
: null }>
|
||||||
<ParticipantsPaneButton { ...topButtonProps } />
|
|
||||||
{_selfViewHidden && <ToggleSelfViewButton { ...buttonProps } />}
|
{_selfViewHidden && <ToggleSelfViewButton { ...buttonProps } />}
|
||||||
<OpenCarmodeButton { ...buttonProps } />
|
<OpenCarmodeButton { ...buttonProps } />
|
||||||
<AudioOnlyButton { ...buttonProps } />
|
<AudioOnlyButton { ...buttonProps } />
|
||||||
|
|
|
@ -20,7 +20,6 @@ import VideoMuteButton from '../VideoMuteButton';
|
||||||
|
|
||||||
import OverflowMenuButton from './OverflowMenuButton';
|
import OverflowMenuButton from './OverflowMenuButton';
|
||||||
import RaiseHandButton from './RaiseHandButton';
|
import RaiseHandButton from './RaiseHandButton';
|
||||||
import ToggleCameraButton from './ToggleCameraButton';
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -103,14 +102,8 @@ function Toolbox(props: Props) {
|
||||||
styles = { buttonStylesBorderless }
|
styles = { buttonStylesBorderless }
|
||||||
toggledStyles = { backgroundToggledStyle } />)}
|
toggledStyles = { backgroundToggledStyle } />)}
|
||||||
{additionalButtons.has('tileview') && <TileViewButton styles = { buttonStylesBorderless } />}
|
{additionalButtons.has('tileview') && <TileViewButton styles = { buttonStylesBorderless } />}
|
||||||
{additionalButtons.has('participantspane')
|
<ParticipantsPaneButton
|
||||||
&& <ParticipantsPaneButton
|
|
||||||
styles = { buttonStylesBorderless } />
|
styles = { buttonStylesBorderless } />
|
||||||
}
|
|
||||||
{additionalButtons.has('togglecamera')
|
|
||||||
&& <ToggleCameraButton
|
|
||||||
styles = { buttonStylesBorderless }
|
|
||||||
toggledStyles = { backgroundToggledStyle } />}
|
|
||||||
<OverflowMenuButton
|
<OverflowMenuButton
|
||||||
styles = { buttonStylesBorderless }
|
styles = { buttonStylesBorderless }
|
||||||
toggledStyles = { toggledButtonStyles } />
|
toggledStyles = { toggledButtonStyles } />
|
||||||
|
|
Loading…
Reference in New Issue