Bladeren bron

feat(native-participants-pane) slider ui fixes

master
Calin Chitu 3 jaren geleden
bovenliggende
commit
7854437e31

+ 9
- 5
react/features/video-menu/components/native/VolumeSlider.js Bestand weergeven

@@ -1,9 +1,8 @@
1 1
 // @flow
2 2
 
3
-import Slider from '@react-native-community/slider';
4 3
 import _ from 'lodash';
5 4
 import React, { PureComponent } from 'react';
6
-import { View } from 'react-native';
5
+import { View, Slider } from 'react-native';
7 6
 import { withTheme } from 'react-native-paper';
8 7
 
9 8
 import { translate } from '../../../base/i18n';
@@ -16,6 +15,9 @@ import { connect } from '../../../base/redux';
16 15
 import { setVolume } from '../../../participants-pane/actions.native';
17 16
 import { VOLUME_SLIDER_SCALE } from '../../constants';
18 17
 
18
+import styles from './styles';
19
+
20
+
19 21
 /**
20 22
  * The type of the React {@code Component} props of {@link VolumeSlider}.
21 23
  */
@@ -101,16 +103,18 @@ class VolumeSlider extends PureComponent<Props, State> {
101 103
         const onVolumeChange = _startSilent ? undefined : this._onVolumeChange;
102 104
 
103 105
         return (
104
-            <View>
106
+            <View style = { styles.volumeSliderContainer } >
105 107
                 <Icon
106
-                    size = { 24 }
107
-                    src = { IconVolumeEmpty } />
108
+                    size = { 20 }
109
+                    src = { IconVolumeEmpty }
110
+                    style = { styles.volumeIcon } />
108 111
                 <Slider
109 112
                     maximumTrackTintColor = { palette.field02 }
110 113
                     maximumValue = { VOLUME_SLIDER_SCALE }
111 114
                     minimumTrackTintColor = { palette.action01 }
112 115
                     minimumValue = { 0 }
113 116
                     onValueChange = { onVolumeChange }
117
+                    style = { styles.sliderContainer }
114 118
                     thumbTintColor = { palette.field02 }
115 119
                     value = { volumeLevel } />
116 120
             </View>

+ 2
- 2
react/features/video-menu/components/native/styles.js Bestand weergeven

@@ -63,7 +63,7 @@ export default createStyleSheet({
63 63
     },
64 64
 
65 65
     sliderContainer: {
66
-        marginLeft: BaseTheme.spacing[3],
67
-        minWidth: '88%'
66
+        marginLeft: BaseTheme.spacing[2],
67
+        minWidth: '92%'
68 68
     }
69 69
 });

Laden…
Annuleren
Opslaan