[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 }
underlayColor = { underlayColor } />
<ToolbarButton
iconName = 'star'
iconStyle = { iconStyle }
iconName = 'hangup'
iconStyle = { styles.audioOnlyIcon }
onClick = { this.props._onToggleAudioOnly }
style = { style }
underlayColor = { underlayColor } />

View File

@ -67,6 +67,15 @@ const toolbar = {
* The (conference) Toolbox/Toolbar related styles.
*/
export const styles = createStyleSheet({
/**
* The audio only (secondary) toolbar icon style.
*/
audioOnlyIcon: {
...smallIcon,
color: ColorPalette.white,
transform: [ { rotate: '135deg' } ]
},
/**
* The toolbar button icon style.
*/
@ -115,6 +124,14 @@ export const styles = createStyleSheet({
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
* toolbars.
@ -133,13 +150,5 @@ export const styles = createStyleSheet({
whiteIcon: {
...icon,
color: ColorPalette.white
},
/**
* The secondary toolbar icon style.
*/
secondaryToolbarIcon: {
...smallIcon,
color: ColorPalette.white
}
});