From 29c172f2af2b6c631f697551c7dfb5e2693f05cb Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 15 Oct 2026 02:35:11 +0200 Subject: [PATCH] fix: use the theme's tag colours in the tag sheet --- src/components/TagSheet.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TagSheet.tsx b/src/components/TagSheet.tsx index f2dd9f93..9a91fd99 100644 --- a/src/components/TagSheet.tsx +++ b/src/components/TagSheet.tsx @@ -4,7 +4,7 @@ import { } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { X, Check, Tag } from 'lucide-react-native'; -import { spacing, radius, typography, colors as tokenColors, type ThemePalette } from '../theme/tokens'; +import { spacing, radius, typography, type ThemePalette } from '../theme/tokens'; import { useColors } from '../theme/colors'; import { useSheetDrag } from '../lib/use-sheet-drag'; import { keywordToken, type KeywordDef } from '../stores/keywords-store'; @@ -102,7 +102,7 @@ export function TagSheet({ visible, onClose, keywords, selectedEmails, onToggle keywords.map((kw) => { const token = keywordToken(kw.id); const applied = allHaveToken(token); - const dot = tokenColors.tags[kw.color]?.dot ?? c.primary; + const dot = c.tags[kw.color]?.dot ?? c.primary; return ( onToggle(token, !applied)} style={({ pressed }) => [styles.row, pressed && styles.rowPressed]} > - + {id} {t('email_list.unknown_tag', 'not defined here')} {applied && }