From 0a2c3e6b519b8dde07e63f2f185a7591066f9ffd Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 20 Dec 2022 14:29:50 -0600 Subject: Fixes to text input colors on android --- src/view/com/composer/ComposePost.tsx | 1 + src/view/com/modals/CreateScene.tsx | 5 +++++ src/view/com/modals/EditProfile.tsx | 4 ++++ src/view/com/modals/ServerInput.tsx | 2 ++ src/view/screens/Contacts.tsx | 2 ++ src/view/screens/Search.tsx | 2 ++ 6 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/view/com/composer/ComposePost.tsx b/src/view/com/composer/ComposePost.tsx index bed552bd3..6aa597924 100644 --- a/src/view/com/composer/ComposePost.tsx +++ b/src/view/com/composer/ComposePost.tsx @@ -258,6 +258,7 @@ export const ComposePost = observer(function ComposePost({ scrollEnabled onChangeText={(text: string) => onChangeText(text)} placeholder={selectTextInputPlaceholder} + placeholderTextColor={colors.gray4} style={styles.textInput}> {textDecorated} diff --git a/src/view/com/modals/CreateScene.tsx b/src/view/com/modals/CreateScene.tsx index be310c9ac..760880382 100644 --- a/src/view/com/modals/CreateScene.tsx +++ b/src/view/com/modals/CreateScene.tsx @@ -108,6 +108,7 @@ export function Component({}: {}) { setHandle(makeValidHandle(str))} @@ -118,6 +119,7 @@ export function Component({}: {}) { setDisplayName(enforceLen(v, MAX_DISPLAY_NAME)) @@ -129,6 +131,7 @@ export function Component({}: {}) { setDescription(enforceLen(v, MAX_DESCRIPTION))} @@ -209,6 +212,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 14, paddingVertical: 10, fontSize: 16, + color: colors.black, }, textArea: { borderWidth: 1, @@ -217,6 +221,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 12, paddingTop: 10, fontSize: 16, + color: colors.black, height: 70, textAlignVertical: 'top', }, diff --git a/src/view/com/modals/EditProfile.tsx b/src/view/com/modals/EditProfile.tsx index 8d9f2e9fe..1ebd4e767 100644 --- a/src/view/com/modals/EditProfile.tsx +++ b/src/view/com/modals/EditProfile.tsx @@ -119,6 +119,7 @@ export function Component({ setDisplayName(enforceLen(v, MAX_DISPLAY_NAME))} /> @@ -128,6 +129,7 @@ export function Component({ setDescription(enforceLen(v, MAX_DESCRIPTION))} @@ -181,6 +183,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 14, paddingVertical: 10, fontSize: 16, + color: colors.black, }, textArea: { borderWidth: 1, @@ -189,6 +192,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 12, paddingTop: 10, fontSize: 16, + color: colors.black, height: 100, textAlignVertical: 'top', }, diff --git a/src/view/com/modals/ServerInput.tsx b/src/view/com/modals/ServerInput.tsx index 1a841c0da..0d1e0e911 100644 --- a/src/view/com/modals/ServerInput.tsx +++ b/src/view/com/modals/ServerInput.tsx @@ -66,6 +66,7 @@ export function Component({ { value={searchText} style={styles.searchInput} placeholder="Search" + placeholderTextColor={colors.gray4} onChangeText={onChangeSearchText} /> @@ -79,5 +80,6 @@ const styles = StyleSheet.create({ }, searchInput: { flex: 1, + color: colors.black, }, }) diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx index d1d36265f..c909f50e6 100644 --- a/src/view/screens/Search.tsx +++ b/src/view/screens/Search.tsx @@ -58,6 +58,7 @@ export const Search = ({navIdx, visible, params}: ScreenParams) => {