Bladeren bron

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

j8
Saúl Ibarra Corretgé 8 jaren geleden
bovenliggende
commit
849f93375c
2 gewijzigde bestanden met toevoegingen van 19 en 10 verwijderingen
  1. 2
    2
      react/features/toolbox/components/Toolbox.native.js
  2. 17
    8
      react/features/toolbox/components/styles.js

+ 2
- 2
react/features/toolbox/components/Toolbox.native.js Bestand weergeven

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

+ 17
- 8
react/features/toolbox/components/styles.js Bestand weergeven

@@ -67,6 +67,15 @@ const toolbar = {
67 67
  * The (conference) Toolbox/Toolbar related styles.
68 68
  */
69 69
 export const styles = createStyleSheet({
70
+    /**
71
+     * The audio only (secondary) toolbar icon style.
72
+     */
73
+    audioOnlyIcon: {
74
+        ...smallIcon,
75
+        color: ColorPalette.white,
76
+        transform: [ { rotate: '135deg' } ]
77
+    },
78
+
70 79
     /**
71 80
      * The toolbar button icon style.
72 81
      */
@@ -115,6 +124,14 @@ export const styles = createStyleSheet({
115 124
         opacity: 0.7
116 125
     },
117 126
 
127
+    /**
128
+     * The secondary toolbar icon style.
129
+     */
130
+    secondaryToolbarIcon: {
131
+        ...smallIcon,
132
+        color: ColorPalette.white
133
+    },
134
+
118 135
     /**
119 136
      * The style of the root/top-level Container of Toolbar that contains
120 137
      * toolbars.
@@ -133,13 +150,5 @@ export const styles = createStyleSheet({
133 150
     whiteIcon: {
134 151
         ...icon,
135 152
         color: ColorPalette.white
136
-    },
137
-
138
-    /**
139
-     * The secondary toolbar icon style.
140
-     */
141
-    secondaryToolbarIcon: {
142
-        ...smallIcon,
143
-        color: ColorPalette.white
144 153
     }
145 154
 });

Laden…
Annuleren
Opslaan