[RN] Use a handset icon for audio-only mode button

This commit is contained in:
Saúl Ibarra Corretgé 2017-04-11 16:15:33 +02:00
parent 35ba6cef4e
commit 849f93375c
2 changed files with 19 additions and 10 deletions

View File

@ -212,8 +212,8 @@ class Toolbox extends Component {
style = { style } style = { style }
underlayColor = { underlayColor } /> underlayColor = { underlayColor } />
<ToolbarButton <ToolbarButton
iconName = 'star' iconName = 'hangup'
iconStyle = { iconStyle } iconStyle = { styles.audioOnlyIcon }
onClick = { this.props._onToggleAudioOnly } onClick = { this.props._onToggleAudioOnly }
style = { style } style = { style }
underlayColor = { underlayColor } /> underlayColor = { underlayColor } />

View File

@ -67,6 +67,15 @@ const toolbar = {
* The (conference) Toolbox/Toolbar related styles. * The (conference) Toolbox/Toolbar related styles.
*/ */
export const styles = createStyleSheet({ export const styles = createStyleSheet({
/**
* The audio only (secondary) toolbar icon style.
*/
audioOnlyIcon: {
...smallIcon,
color: ColorPalette.white,
transform: [ { rotate: '135deg' } ]
},
/** /**
* The toolbar button icon style. * The toolbar button icon style.
*/ */
@ -115,6 +124,14 @@ export const styles = createStyleSheet({
opacity: 0.7 opacity: 0.7
}, },
/**
* The secondary toolbar icon style.
*/
secondaryToolbarIcon: {
...smallIcon,
color: ColorPalette.white
},
/** /**
* The style of the root/top-level Container of Toolbar that contains * The style of the root/top-level Container of Toolbar that contains
* toolbars. * toolbars.
@ -133,13 +150,5 @@ export const styles = createStyleSheet({
whiteIcon: { whiteIcon: {
...icon, ...icon,
color: ColorPalette.white color: ColorPalette.white
},
/**
* The secondary toolbar icon style.
*/
secondaryToolbarIcon: {
...smallIcon,
color: ColorPalette.white
} }
}); });