Skip to content

Commit 1de39df

Browse files
committed
fix(mobile): improve attachment badge visibility on dark theme
1 parent ded3ad9 commit 1de39df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/mobile/v1/src/screens/EditNote/EditorHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export function EditorHeader({
154154
/>
155155
</View>
156156
{attachmentsCount > 0 && (
157-
<View style={[styles.attachmentBadge, { backgroundColor: showAttachments ? theme.colors.primary : theme.colors.mutedForeground }]} pointerEvents="none">
158-
<Text style={[styles.attachmentBadgeText, { color: '#ffffff' }]}>
157+
<View style={[styles.attachmentBadge, { backgroundColor: theme.colors.primary }]} pointerEvents="none">
158+
<Text style={[styles.attachmentBadgeText, { color: theme.colors.primaryForeground }]}>
159159
{attachmentsCount > 9 ? '9+' : attachmentsCount}
160160
</Text>
161161
</View>

apps/mobile/v1/src/screens/ViewNote/ViewHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export function ViewHeader({
122122
/>
123123
</View>
124124
{attachmentsCount > 0 && (
125-
<View style={[styles.attachmentBadge, { backgroundColor: showAttachments ? theme.colors.primary : theme.colors.mutedForeground }]}>
126-
<Text style={[styles.attachmentBadgeText, { color: '#ffffff' }]}>
125+
<View style={[styles.attachmentBadge, { backgroundColor: theme.colors.primary }]}>
126+
<Text style={[styles.attachmentBadgeText, { color: theme.colors.primaryForeground }]}>
127127
{attachmentsCount > 9 ? '9+' : attachmentsCount}
128128
</Text>
129129
</View>

0 commit comments

Comments
 (0)