From b4802c6b5bd53744599115ceb35d80e34d25cd53 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 31 Aug 2022 17:06:44 -0500 Subject: Unify the color palette --- src/view/com/post-thread/PostThreadItem.tsx | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/view/com/post-thread/PostThreadItem.tsx') diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 5430c8ef5..46d7816c6 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -4,7 +4,7 @@ import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native' import {bsky, AdxUri} from '@adxp/mock-api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {PostThreadViewPostModel} from '../../../state/models/post-thread-view' -import {s} from '../../lib/styles' +import {s, colors} from '../../lib/styles' import {ago, pluralize} from '../../lib/strings' import {AVIS} from '../../lib/assets' import {useStores} from '../../../state' @@ -81,11 +81,11 @@ export const PostThreadItem = observer(function PostThreadItem({ {item.author.displayName} @{item.author.name} - + · {ago(item.indexedAt)} @@ -102,7 +102,7 @@ export const PostThreadItem = observer(function PostThreadItem({ {item.repostCount ? ( {item.repostCount}{' '} {pluralize(item.repostCount, 'repost')} @@ -112,7 +112,7 @@ export const PostThreadItem = observer(function PostThreadItem({ )} {item.likeCount ? ( {item.likeCount}{' '} {pluralize(item.likeCount, 'like')} @@ -144,7 +144,7 @@ export const PostThreadItem = observer(function PostThreadItem({ /> {item.repostCount} @@ -156,7 +156,8 @@ export const PostThreadItem = observer(function PostThreadItem({ } icon={[item.myState.hasLiked ? 'fas' : 'far', 'heart']} /> - + {item.likeCount} @@ -177,16 +178,15 @@ export const PostThreadItem = observer(function PostThreadItem({ const styles = StyleSheet.create({ outer: { - borderTopWidth: 1, - borderTopColor: '#e8e8e8', - backgroundColor: '#fff', + marginTop: 1, + backgroundColor: colors.white, }, layout: { flexDirection: 'row', }, replyBar: { width: 5, - backgroundColor: 'gray', + backgroundColor: colors.gray2, marginRight: 2, }, layoutAvi: { @@ -222,7 +222,7 @@ const styles = StyleSheet.create({ expandedInfo: { flexDirection: 'row', padding: 10, - borderColor: '#e8e8e8', + borderColor: colors.gray2, borderTopWidth: 1, borderBottomWidth: 1, marginTop: 5, @@ -243,14 +243,14 @@ const styles = StyleSheet.create({ }, ctrlIcon: { marginRight: 5, - color: 'gray', + color: colors.gray5, }, ctrlIconReposted: { marginRight: 5, - color: 'green', + color: colors.green3, }, ctrlIconLiked: { marginRight: 5, - color: 'red', + color: colors.pink3, }, }) -- cgit 1.4.1