Pārlūkot izejas kodu

rn,settings: set the placeholder text color

master
Saúl Ibarra Corretgé 6 gadus atpakaļ
vecāks
revīzija
e543625295

+ 2
- 1
react/features/settings/components/native/FormRow.js Parādīt failu

5
 
5
 
6
 import { translate } from '../../../base/i18n';
6
 import { translate } from '../../../base/i18n';
7
 
7
 
8
-import styles, { ANDROID_UNDERLINE_COLOR } from './styles';
8
+import styles, { ANDROID_UNDERLINE_COLOR, PLACEHOLDER_COLOR } from './styles';
9
 
9
 
10
 /**
10
 /**
11
  * The type of the React {@code Component} props of {@link FormRow}
11
  * The type of the React {@code Component} props of {@link FormRow}
107
             switch (field.type.displayName) {
107
             switch (field.type.displayName) {
108
             case 'TextInput':
108
             case 'TextInput':
109
                 return {
109
                 return {
110
+                    placeholderTextColor: PLACEHOLDER_COLOR,
110
                     style: styles.textInputField,
111
                     style: styles.textInputField,
111
                     underlineColorAndroid: ANDROID_UNDERLINE_COLOR
112
                     underlineColorAndroid: ANDROID_UNDERLINE_COLOR
112
                 };
113
                 };

+ 2
- 0
react/features/settings/components/native/styles.js Parādīt failu

4
 } from '../../../base/styles';
4
 } from '../../../base/styles';
5
 
5
 
6
 export const ANDROID_UNDERLINE_COLOR = 'transparent';
6
 export const ANDROID_UNDERLINE_COLOR = 'transparent';
7
+export const PLACEHOLDER_COLOR = ColorPalette.lightGrey;
8
+
7
 const TEXT_SIZE = 17;
9
 const TEXT_SIZE = 17;
8
 
10
 
9
 /**
11
 /**

Notiek ielāde…
Atcelt
Saglabāt