From c2bb307a252ecac8efa7d0559e2fd30fd4ead686 Mon Sep 17 00:00:00 2001 From: Arthur Jamet Date: Wed, 14 Aug 2024 15:00:06 +0200 Subject: [PATCH] Front: Change logo color using theme --- front/packages/ui/src/navbar/icon.tsx | 75 ++++++++++++++------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/front/packages/ui/src/navbar/icon.tsx b/front/packages/ui/src/navbar/icon.tsx index d38bdee4..cb14ff5d 100644 --- a/front/packages/ui/src/navbar/icon.tsx +++ b/front/packages/ui/src/navbar/icon.tsx @@ -19,6 +19,7 @@ */ import Svg, { type SvgProps, Path } from "react-native-svg"; +import { useYoshiki } from "yoshiki"; /* export const KyooLogo = (props: SvgProps) => ( */ /* */ @@ -39,38 +40,42 @@ import Svg, { type SvgProps, Path } from "react-native-svg"; export const KyooLongLogo = ({ height = 24, ...props -}: Omit & { height?: number }) => ( - - - - - - - - -); +}: Omit & { height?: number }) => { + const { theme } = useYoshiki(); + const textColor = theme.contrast; + return ( + + + + + + + + + ); +};