From 912fa3fe49a2bfc7ca96777c96eecc3fecff77c8 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 8 Jun 2026 12:33:35 +0500 Subject: [PATCH] mobile: make intro illustration work with light mode --- .../app/components/intro/illustration.tsx | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/apps/mobile/app/components/intro/illustration.tsx b/apps/mobile/app/components/intro/illustration.tsx index 0d2595da5..ebed3200d 100644 --- a/apps/mobile/app/components/intro/illustration.tsx +++ b/apps/mobile/app/components/intro/illustration.tsx @@ -37,6 +37,7 @@ import Svg, { Path, Rect } from "react-native-svg"; +import { useThemeColors } from "@notesnook/theme"; const SPRING_CONFIG = { damping: 14, @@ -75,6 +76,7 @@ function useFloatAnim(delay: number, range = 6) { } export const IntroIllustration = () => { + const { isDark } = useThemeColors(); // Gesture-driven tilt const tiltX = useSharedValue(0); // rotateX: finger up/down const tiltY = useSharedValue(0); // rotateY: finger left/right @@ -134,7 +136,7 @@ export const IntroIllustration = () => { cx={116} cy={105} r={104.75} - stroke="#1F2722" + stroke={isDark ? "#1F2722" : "#E8F4ED"} strokeWidth={0.5} /> { cy={105.5} r={95.25} fill="#008836" - fillOpacity={0.04} - stroke="#233C2D" + fillOpacity={0.05} + stroke={isDark ? "#233C2D" : "#E8F0EC"} strokeWidth={0.5} /> { cy={105.5} r={82.25} fill="#008836" - fillOpacity={0.05} - stroke="#233C2D" + fillOpacity={0.04} + stroke={isDark ? "#233C2D" : "#E3F1E8"} strokeWidth={0.5} /> { r={62.25} fill="#008836" fillOpacity={0.06} - stroke="#233C2D" + stroke={isDark ? "#233C2D" : "#D3E8DB"} strokeWidth={0.5} /> @@ -213,11 +215,17 @@ export const IntroIllustration = () => { width={46.5} height={46.5} rx={7.75} - fill="#1A1D1B" - stroke="#233C2D" + fill={isDark ? "#1A1D1B" : "#f7f7f7"} + stroke={isDark ? "#233C2D" : "#D3E8DB"} strokeWidth={0.5} /> - + { width={31.5} height={31.5} rx={7.75} - fill="#1A1D1B" - stroke="#233C2D" + fill={isDark ? "#1A1D1B" : "#f7f7f7"} + stroke={isDark ? "#233C2D" : "#D3E8DB"} strokeWidth={0.5} /> { width={34.5} height={34.5} rx={7.75} - fill="#1A1D1B" - stroke="#233C2D" + fill={isDark ? "#1A1D1B" : "#f7f7f7"} + stroke={isDark ? "#233C2D" : "#D3E8DB"} strokeWidth={0.5} /> { height={18.3333} x={8.3334} y={8.333} - fill="#171F1A" + fill={isDark ? "#1A1D1B" : "#f7f7f7"} /> { width={42.5} height={42.5} rx={7.75} - fill="#1A1D1B" - stroke="#233C2D" + fill={isDark ? "#1A1D1B" : "#f7f7f7"} + stroke={isDark ? "#233C2D" : "#D3E8DB"} strokeWidth={0.5} />