From 99de74de9380b4c908480445d2cd5812b0ea63a9 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 15 Oct 2026 02:35:21 +0200 Subject: [PATCH] fix: show the logo in the mail header on the light theme --- src/screens/EmailListScreen.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/screens/EmailListScreen.tsx b/src/screens/EmailListScreen.tsx index ca9d22b2..c012db09 100644 --- a/src/screens/EmailListScreen.tsx +++ b/src/screens/EmailListScreen.tsx @@ -12,7 +12,7 @@ import { import { useNavigation } from '@react-navigation/native'; import type { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { spacing, radius, typography, componentSizes, type ThemePalette } from '../theme/tokens'; -import { useColors } from '../theme/colors'; +import { useColors, useResolvedTheme } from '../theme/colors'; import { useTypography, useDensity } from '../theme/dynamic'; import SidebarDrawer from '../components/SidebarDrawer'; import SenderAvatar from '../components/SenderAvatar'; @@ -322,6 +322,9 @@ function EmailRowSeparator() { // Rows of a list spanning accounts can share an id (#1082). const emailKeyExtractor = rowKeyOf; +const LOGO_ON_LIGHT = require('../../assets/logos/Bulwark Logo Dark.png'); +const LOGO_ON_DARK = require('../../assets/logos/Bulwark Logo White.png'); + interface EmailListScreenProps { onEmailPress?: (email: Email) => void; onComposePress?: () => void; @@ -344,6 +347,7 @@ export default function EmailListScreen({ // so the header first drew under the status bar and then jumped down. const insets = useSafeAreaInsets(); const { t } = useLocaleStore(); + const resolvedTheme = useResolvedTheme(); const [drawerOpen, setDrawerOpen] = React.useState(false); const [filterMenuOpen, setFilterMenuOpen] = React.useState(false); const emails = useEmailStore((s) => s.emails); @@ -1137,7 +1141,8 @@ export default function EmailListScreen({ )}