Browse Source

[RN] Increase contrast and consistency in LoadingIndicator use cases

efficient_tiling
Lyubo Marinov 7 years ago
parent
commit
1ea62215f6

+ 5
- 1
react/features/base/react/components/native/LoadingIndicator.js View File

@@ -3,6 +3,8 @@
3 3
 import React, { Component } from 'react';
4 4
 import { ActivityIndicator } from 'react-native';
5 5
 
6
+import { ColorPalette } from '../../../styles';
7
+
6 8
 /**
7 9
  * An animated, large react-native {@link ActivityIndicator} which is considered
8 10
  * a suitable visualization of long-running processes with indeterminate amounts
@@ -19,7 +21,9 @@ export default class LoadingIndicator extends Component {
19 21
         return (
20 22
             <ActivityIndicator
21 23
                 animating = { true }
22
-                size = { 'large' } />
24
+                color = { ColorPalette.white }
25
+                size = { 'large' }
26
+                { ...this.props } />
23 27
         );
24 28
     }
25 29
 }

+ 1
- 1
react/features/welcome/components/WelcomePage.native.js View File

@@ -109,7 +109,7 @@ class WelcomePage extends AbstractWelcomePage {
109 109
             // modify non-native children.
110 110
             children = (
111 111
                 <View>
112
-                    <LoadingIndicator />
112
+                    <LoadingIndicator color = { styles.buttonText.color } />
113 113
                 </View>
114 114
             );
115 115
         } else {

+ 1
- 1
react/features/welcome/components/styles.js View File

@@ -40,7 +40,7 @@ export default createStyleSheet({
40 40
      */
41 41
     buttonText: {
42 42
         alignSelf: 'center',
43
-        color: '#00ccff',
43
+        color: ColorPalette.blue,
44 44
         fontSize: 18
45 45
     },
46 46
 

Loading…
Cancel
Save