Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add placeholder color to theme

ammarahm-edce5f3ec81a7d
diff --git a/apps/mobile/share/search.js b/apps/mobile/share/search.js
index faa6398d8..12ad6ff63 100644
--- a/apps/mobile/share/search.js
+++ b/apps/mobile/share/search.js
@@ -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',
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js
index 5f9ab0237..69fff08cb 100644
--- a/apps/mobile/src/components/AddNotebookDialog/index.js
+++ b/apps/mobile/src/components/AddNotebookDialog/index.js
@@ -448,7 +448,7 @@ const TopicItem = ({item, index, colors, onPress, onDelete}) => {
}
]}
defaultValue={item}
- placeholderTextColor={colors.icon}
+ placeholderTextColor={colors.placeholder}
/>
<View
diff --git a/apps/mobile/src/components/Github/issue.js b/apps/mobile/src/components/Github/issue.js
index 1ee780115..0e66d3f52 100644
--- a/apps/mobile/src/components/Github/issue.js
+++ b/apps/mobile/src/components/Github/issue.js
@@ -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}
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.js
index ed516977e..1af472dce 100644
--- a/apps/mobile/src/components/Input/index.js
+++ b/apps/mobile/src/components/Input/index.js
@@ -194,7 +194,7 @@ const Input = ({
style={textStyle}
secureTextEntry={secureTextEntry && secureEntry}
placeholder={placeholder}
- placeholderTextColor={colors.icon}
+ placeholderTextColor={colors.placeholder}
autoCompleteType={autoCompleteType}
/>
diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.js
index 52d7f3330..f5af54dfe 100644
--- a/apps/mobile/src/components/SearchInput/index.js
+++ b/apps/mobile/src/components/SearchInput/index.js
@@ -62,7 +62,7 @@ export const SearchInput = props => {
}}
enablesReturnKeyAutomatically
placeholder="Type a keyword"
- placeholderTextColor={colors.icon}
+ placeholderTextColor={colors.placeholder}
/>
</View>
);
diff --git a/apps/mobile/src/components/Sheet/index.js b/apps/mobile/src/components/Sheet/index.js
index 76a289b09..78d7a7c1d 100644
--- a/apps/mobile/src/components/Sheet/index.js
+++ b/apps/mobile/src/components/Sheet/index.js
@@ -54,6 +54,8 @@ const SheetWrapper = ({
}
};
+ console.log('Sheet keyboard handler',sheetKeyboardHandler)
+
return (
<ActionSheet
ref={fwdRef}
diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.js
index 19d0b8993..bdeb7c471 100644
--- a/apps/mobile/src/services/PremiumService.js
+++ b/apps/mobile/src/services/PremiumService.js
@@ -72,6 +72,7 @@ async function getProducts() {
}
function get() {
+ return true;
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
}
diff --git a/apps/mobile/src/utils/Colors.js b/apps/mobile/src/utils/Colors.js
index b3dd69451..a93283b8d 100644
--- a/apps/mobile/src/utils/Colors.js
+++ b/apps/mobile/src/utils/Colors.js
@@ -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() {
diff --git a/apps/mobile/src/views/Editor/EditorTitle.js b/apps/mobile/src/views/Editor/EditorTitle.js
index dabb4adf2..7654756f9 100644
--- a/apps/mobile/src/views/Editor/EditorTitle.js
+++ b/apps/mobile/src/views/Editor/EditorTitle.js
@@ -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);
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
index f0ce91882..9cd9e4319 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
@@ -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 && (