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 <TextInput
ref={inputRef} ref={inputRef}
placeholder="Search for a note" placeholder="Search for a note"
placeholderTextColor={colors.icon} placeholderTextColor={colors.placeholder}
style={{ style={{
fontSize: 15, fontSize: 15,
fontFamily: 'OpenSans-Regular', fontFamily: 'OpenSans-Regular',

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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