From 9ff1828437e0f3f094c57b2a756f84ca6a45b93e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 18 Dec 2023 11:20:58 -0600 Subject: [PATCH] Fix `Logotype` fill for dark mode (#2230) * Fix fill of Logotype in dark mode * Update default Logotype fill --- src/view/com/auth/SplashScreen.tsx | 2 +- src/view/com/auth/SplashScreen.web.tsx | 2 +- src/view/icons/Logotype.tsx | 5 +++-- src/view/shell/bottom-bar/BottomBar.tsx | 2 +- src/view/shell/bottom-bar/BottomBarWeb.tsx | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/view/com/auth/SplashScreen.tsx b/src/view/com/auth/SplashScreen.tsx index 099ab105..ffd07d94 100644 --- a/src/view/com/auth/SplashScreen.tsx +++ b/src/view/com/auth/SplashScreen.tsx @@ -27,7 +27,7 @@ export const SplashScreen = ({ - + diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx index 4e942f66..1cc7b914 100644 --- a/src/view/com/auth/SplashScreen.web.tsx +++ b/src/view/com/auth/SplashScreen.web.tsx @@ -63,7 +63,7 @@ export const SplashScreen = ({ - + diff --git a/src/view/icons/Logotype.tsx b/src/view/icons/Logotype.tsx index 847607a3..080c402f 100644 --- a/src/view/icons/Logotype.tsx +++ b/src/view/icons/Logotype.tsx @@ -1,7 +1,7 @@ import React from 'react' import Svg, {Path, SvgProps, PathProps} from 'react-native-svg' -import {colors} from '#/lib/styles' +import {usePalette} from '#/lib/hooks/usePalette' const ratio = 17 / 64 @@ -9,6 +9,7 @@ export function Logotype({ fill, ...rest }: {fill?: PathProps['fill']} & SvgProps) { + const pal = usePalette('default') // @ts-ignore it's fiiiiine const size = parseInt(rest.width || 32) @@ -20,7 +21,7 @@ export function Logotype({ width={size} height={Number(size) * ratio}> diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 926e08ce..1ab3334f 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -265,7 +265,7 @@ export function BottomBar({navigation}: BottomTabBarProps) { - + diff --git a/src/view/shell/bottom-bar/BottomBarWeb.tsx b/src/view/shell/bottom-bar/BottomBarWeb.tsx index 5ae65750..c5dc376b 100644 --- a/src/view/shell/bottom-bar/BottomBarWeb.tsx +++ b/src/view/shell/bottom-bar/BottomBarWeb.tsx @@ -157,7 +157,7 @@ export function BottomBarWeb() { - +