add placeholder color to theme

This commit is contained in:
ammarahm-ed
2021-12-30 10:42:03 +05:00
parent b4ea290e73
commit ce5f3ec81a
10 changed files with 17 additions and 11 deletions

View File

@@ -134,7 +134,7 @@ export const Search = ({close, getKeyboardHeight, quicknote}) => {
<TextInput
ref={inputRef}
placeholder="Search for a note"
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
style={{
fontSize: 15,
fontFamily: 'OpenSans-Regular',

View File

@@ -448,7 +448,7 @@ const TopicItem = ({item, index, colors, onPress, onDelete}) => {
}
]}
defaultValue={item}
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
/>
<View

View File

@@ -116,7 +116,7 @@ Logged in: ${user ? 'yes' : 'no'}`,
fontSize: SIZE.md,
color:colors.heading,
}}
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
/>
<TextInput
@@ -140,7 +140,7 @@ For example:
marginBottom: 2.5,
color:colors.pri
}}
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
/>
<Paragraph
size={SIZE.xs}

View File

@@ -194,7 +194,7 @@ const Input = ({
style={textStyle}
secureTextEntry={secureTextEntry && secureEntry}
placeholder={placeholder}
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
autoCompleteType={autoCompleteType}
/>

View File

@@ -62,7 +62,7 @@ export const SearchInput = props => {
}}
enablesReturnKeyAutomatically
placeholder="Type a keyword"
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
/>
</View>
);

View File

@@ -54,6 +54,8 @@ const SheetWrapper = ({
}
};
console.log('Sheet keyboard handler',sheetKeyboardHandler)
return (
<ActionSheet
ref={fwdRef}

View File

@@ -72,6 +72,7 @@ async function getProducts() {
}
function get() {
return true;
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
}

View File

@@ -63,7 +63,8 @@ export const COLOR_SCHEME_LIGHT = {
sec: '#ffffff',
light: '#ffffff',
transGray: '#00000010',
border:"#E8E8E8"
border:"#E8E8E8",
placeholder:"#a9a9a9"
};
export const COLOR_SCHEME_PITCH_BLACK = {
...fixedColors,
@@ -77,7 +78,8 @@ export const COLOR_SCHEME_PITCH_BLACK = {
sec: 'black',
light: '#ffffff',
transGray: '#ffffff10',
border:"#383838"
border:"#383838",
placeholder:"#404040"
};
export const COLOR_SCHEME_DARK = {
@@ -92,7 +94,8 @@ export const COLOR_SCHEME_DARK = {
sec: 'black',
light: '#ffffff',
transGray: '#ffffff10',
border:"#383838"
border:"#383838",
placeholder:"#404040"
};
export function getCurrentColors() {

View File

@@ -66,7 +66,7 @@ export const EditorTitle = () => {
padding: 0
}}
placeholder="Note title"
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
onChangeText={text => {
setTitle(text);
post('title', text);

View File

@@ -178,7 +178,7 @@ const ToolbarLinkInput = ({format, value, setVisible}) => {
onChangeText={onChangeText}
defaultValue={value}
blurOnSubmit={false}
placeholderTextColor={colors.icon}
placeholderTextColor={colors.placeholder}
/> */}
{/* {mode === INPUT_MODE.EDITING && (