Explorar el Código

fix(rn,bottom-sheet) fixed surface color

Also fix properly showing the remote menu.
master
Calinteodor hace 3 años
padre
commit
4e43a31ec9
No account linked to committer's email address

+ 3
- 1
react/features/base/dialog/components/native/BottomSheet.js Ver fichero

@@ -142,7 +142,9 @@ class BottomSheet extends PureComponent<Props> {
142 142
                     <SafeAreaView
143 143
                         style = { [
144 144
                             styles.sheetItemContainer,
145
-                            _styles.sheet,
145
+                            renderHeader
146
+                                ? _styles.sheetHeader
147
+                                : _styles.sheet,
146 148
                             style,
147 149
                             {
148 150
                                 maxHeight: _height - 100

+ 9
- 1
react/features/base/dialog/components/native/styles.js Ver fichero

@@ -2,6 +2,7 @@
2 2
 
3 3
 import { StyleSheet } from 'react-native';
4 4
 
5
+import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
5 6
 import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
6 7
 import { BoxModel, ColorPalette } from '../../../styles';
7 8
 import { PREFERRED_DIALOG_SIZE } from '../../constants';
@@ -192,9 +193,16 @@ ColorSchemeRegistry.register('BottomSheet', {
192 193
      * Bottom sheet's base style.
193 194
      */
194 195
     sheet: {
195
-        backgroundColor: ColorPalette.black,
196
+        backgroundColor: BaseTheme.palette.ui02,
196 197
         borderTopLeftRadius: 16,
197 198
         borderTopRightRadius: 16
199
+    },
200
+
201
+    /**
202
+     * Bottom sheet's base style with header.
203
+     */
204
+    sheetHeader: {
205
+        backgroundColor: BaseTheme.palette.ui02
198 206
     }
199 207
 });
200 208
 

+ 4
- 6
react/features/filmstrip/components/native/Thumbnail.js Ver fichero

@@ -159,13 +159,11 @@ function Thumbnail(props: Props) {
159 159
                     participant
160 160
                 }));
161 161
             }
162
-
163
-            return null;
162
+        } else {
163
+            dispatch(openDialog(RemoteVideoMenu, {
164
+                participant
165
+            }));
164 166
         }
165
-
166
-        dispatch(openDialog(RemoteVideoMenu, {
167
-            participant
168
-        }));
169 167
     }, [ participant, dispatch ]);
170 168
 
171 169
     return (

Loading…
Cancelar
Guardar