about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-05-16 18:39:02 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-05-16 18:39:02 -0700
commitff3cc3b84d74453a1f5c7443c492d5d894e53b2f (patch)
tree1d2e32bc17275d84fa68d9a06ce0885c2f9bf00c
parent53ca0cd626cc71fea38fb0f59f68092ab406d143 (diff)
downloadvoidsky-ff3cc3b84d74453a1f5c7443c492d5d894e53b2f.tar.zst
fix dark mode styling
-rw-r--r--src/view/screens/CustomFeed.tsx3
-rw-r--r--src/view/screens/PinnedFeeds.tsx6
-rw-r--r--src/view/screens/SavedFeeds.tsx19
3 files changed, 19 insertions, 9 deletions
diff --git a/src/view/screens/CustomFeed.tsx b/src/view/screens/CustomFeed.tsx
index ec39b27d3..615a63261 100644
--- a/src/view/screens/CustomFeed.tsx
+++ b/src/view/screens/CustomFeed.tsx
@@ -81,7 +81,7 @@ export const CustomFeed = withAuthRequired(
                     currentFeed?.like()
                   }
                 }}
-                style={[styles.likeButton]}>
+                style={[styles.likeButton, pal.viewLight]}>
                 <Text style={[pal.text, s.semiBold]}>
                   {currentFeed?.data.likeCount}
                 </Text>
@@ -143,7 +143,6 @@ const styles = StyleSheet.create({
     paddingVertical: 4,
     paddingHorizontal: 8,
     borderRadius: 24,
-    backgroundColor: colors.gray1,
     gap: 4,
   },
 })
diff --git a/src/view/screens/PinnedFeeds.tsx b/src/view/screens/PinnedFeeds.tsx
index 2a0e3deff..f87f8d284 100644
--- a/src/view/screens/PinnedFeeds.tsx
+++ b/src/view/screens/PinnedFeeds.tsx
@@ -91,7 +91,11 @@ export const PinnedFeeds = withAuthRequired(
                   accessibilityRole="button"
                   onLongPress={drag}
                   style={styles.itemContainer}>
-                  <FontAwesomeIcon icon="bars" size={20} style={styles.icon} />
+                  <FontAwesomeIcon
+                    icon="bars"
+                    size={20}
+                    style={[styles.icon, pal.text]}
+                  />
                   <SavedFeedItem item={item} savedFeeds={savedFeeds} />
                 </Pressable>
               </ShadowDecorator>
diff --git a/src/view/screens/SavedFeeds.tsx b/src/view/screens/SavedFeeds.tsx
index 8403efc6e..827a4a256 100644
--- a/src/view/screens/SavedFeeds.tsx
+++ b/src/view/screens/SavedFeeds.tsx
@@ -19,7 +19,7 @@ import {withAuthRequired} from 'view/com/auth/withAuthRequired'
 import {ViewHeader} from 'view/com/util/ViewHeader'
 import {CenteredView} from 'view/com/util/Views'
 import {Text} from 'view/com/util/text/Text'
-import {isDesktopWeb} from 'platform/detection'
+import {isDesktopWeb, isWeb} from 'platform/detection'
 import {s} from 'lib/styles'
 import {SavedFeedsModel} from 'state/models/feeds/algo/saved'
 import {Link} from 'view/com/util/Link'
@@ -113,20 +113,23 @@ const ListHeaderComponent = observer(
     savedFeeds: SavedFeedsModel
     navigation: Props['navigation']
   }) => {
+    const pal = usePalette('default')
     return (
       <View style={styles.headerContainer}>
         {savedFeeds.pinned.length > 0 ? (
           <View style={styles.pinnedContainer}>
             <View style={styles.pinnedHeader}>
-              <Text type="lg-bold">Pinned Feeds</Text>
+              <Text type="lg-bold" style={[pal.text]}>
+                Pinned Feeds
+              </Text>
               <Link href="/settings/pinned-feeds">
-                <Text style={styles.editPinned}>Edit</Text>
+                <Text style={[styles.editPinned, pal.text]}>Edit</Text>
               </Link>
             </View>
 
             <ScrollView
               horizontal={true}
-              showsHorizontalScrollIndicator={false}>
+              showsHorizontalScrollIndicator={isWeb}>
               {savedFeeds.pinned.map(item => {
                 return (
                   <TouchableOpacity
@@ -140,7 +143,10 @@ const ListHeaderComponent = observer(
                     }}
                     style={styles.pinnedItem}>
                     <UserAvatar avatar={item.data.avatar} size={80} />
-                    <Text type="sm-medium" numberOfLines={1}>
+                    <Text
+                      type="sm-medium"
+                      numberOfLines={1}
+                      style={[pal.text, styles.pinnedItemName]}>
                       {item.data.displayName ??
                         `${item.data.creator.displayName}'s feed`}
                     </Text>
@@ -168,7 +174,7 @@ const styles = StyleSheet.create({
     marginHorizontal: 24,
     marginTop: 10,
   },
-  headerContainer: {paddingHorizontal: 18},
+  headerContainer: {paddingHorizontal: 18, paddingTop: 18},
   pinnedContainer: {marginBottom: 18, gap: 18},
   pinnedHeader: {flexDirection: 'row', justifyContent: 'space-between'},
   pinnedItem: {
@@ -177,5 +183,6 @@ const styles = StyleSheet.create({
     marginRight: 18,
     maxWidth: 100,
   },
+  pinnedItemName: {marginTop: 8, textAlign: 'center'},
   editPinned: {textDecorationLine: 'underline'},
 })