Skip to content

Commit 1f24fe7

Browse files
committed
Add dark/light logos for web
1 parent f1520cf commit 1f24fe7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • apps/polycentric/src/common/components/layout

apps/polycentric/src/common/components/layout/Layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ import {
1313
import {
1414
KeyboardAvoidingView,
1515
Platform,
16-
Pressable,
16+
// Pressable,
1717
useWindowDimensions,
1818
View,
1919
} from 'react-native';
2020
import { useSafeAreaInsets } from 'react-native-safe-area-context';
2121

2222
import { IdentityFooter } from '@/src/features/core/identity/IdentityFooter';
2323
import { Ionicons } from '@expo/vector-icons';
24-
import WEB_LOGO from '../../assets/images/polycentric-logo-blue-256.png';
24+
import BLUE_LOGO from '../../assets/images/polycentric-logo-blue-256.png';
25+
import WHITE_LOGO from '../../assets/images/polycentric-logo-white-256.png';
2526
import { FUTO_URL, openCompose } from '../../constants';
2627
import { useCurrentIdentity } from '../../lib/polycentric-hooks';
2728
import { Button } from '../primitives';
@@ -183,6 +184,7 @@ export const LeftSidebar = memo(function LeftSidebar({
183184
...props
184185
}: LeftSidebarProps) {
185186
const { width: deviceWidth } = useWindowDimensions();
187+
const { theme } = useTheme();
186188

187189
const { identity } = useCurrentIdentity();
188190

@@ -237,7 +239,7 @@ export const LeftSidebar = memo(function LeftSidebar({
237239
]}
238240
>
239241
<Image
240-
source={WEB_LOGO}
242+
source={theme.scheme === 'dark' ? WHITE_LOGO : BLUE_LOGO}
241243
contentFit="contain"
242244
style={{ width: 30, height: 30 }}
243245
/>

0 commit comments

Comments
 (0)