Skip to content

Commit

Permalink
Fix text dark mode color
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed May 6, 2020
1 parent 932c79a commit c1e2747
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/components/FileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ const FileCard: React.FC<IFileCardProps> = (props) => {
ellipsizeMode="tail">
{title}
</Text>
<Text style={[{fontSize: 13}, styles.icon]}>
<Text
style={[
{fontSize: 13, color: Colors.system('foreground', colorScheme)},
styles.icon,
]}>
{(extension ? extension.toUpperCase() + ' ' : '') + size}
</Text>
{markedImportant && (
Expand Down
12 changes: 9 additions & 3 deletions src/screens/FilePreviewScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ const FilePreviewScreen: INavigationScreen<IFilePreviewScreenProps> = (
size={50}
onPress={() => listener({buttonId: 'refresh'}) as any}
/>
<Text>{getTranslation('refresh')}</Text>
<Text style={{color: Colors.system('foreground', colorScheme)}}>
{getTranslation('refresh')}
</Text>
</View>
<View style={styles.button}>
<IconButton
Expand All @@ -279,7 +281,9 @@ const FilePreviewScreen: INavigationScreen<IFilePreviewScreenProps> = (
size={50}
onPress={() => listener({buttonId: 'open'}) as any}
/>
<Text>{getTranslation('open')}</Text>
<Text style={{color: Colors.system('foreground', colorScheme)}}>
{getTranslation('open')}
</Text>
</View>
</View>
</View>
Expand Down Expand Up @@ -354,7 +358,9 @@ const FilePreviewScreen: INavigationScreen<IFilePreviewScreenProps> = (
Linking.openURL(filePath);
}}
/>
<Text>{getTranslation('open')}</Text>
<Text style={{color: Colors.system('foreground', colorScheme)}}>
{getTranslation('open')}
</Text>
</View>
</View>
</View>
Expand Down

0 comments on commit c1e2747

Please sign in to comment.