diff --git a/front/apps/web/src/pages/_app.tsx b/front/apps/web/src/pages/_app.tsx index 68018b3d..7a43fe2c 100755 --- a/front/apps/web/src/pages/_app.tsx +++ b/front/apps/web/src/pages/_app.tsx @@ -201,7 +201,7 @@ const App = ({ Component, pageProps }: AppProps) => { {...props} /> - + diff --git a/front/packages/ui/src/layout.tsx b/front/packages/ui/src/layout.tsx index 6be5c510..f8327df1 100644 --- a/front/packages/ui/src/layout.tsx +++ b/front/packages/ui/src/layout.tsx @@ -19,6 +19,7 @@ */ import { Main } from "@kyoo/primitives"; +import { LinearGradient } from "expo-linear-gradient"; import type { ReactElement } from "react"; import { useYoshiki, vw } from "yoshiki/native"; import { Navbar } from "./navbar"; @@ -30,8 +31,7 @@ export const DefaultLayout = ({ page: ReactElement; transparent?: boolean; }) => { - const { css } = useYoshiki(); - + const { css, theme } = useYoshiki(); return ( <> + ) : undefined + } />
(function SearchBar(props, ref) setQuery(q); }} placeholder={t("navbar.search")} - placeholderTextColor={theme.colors.white} - containerStyle={{ height: ts(4), flexShrink: 1, borderColor: (theme) => theme.colors.white }} + placeholderTextColor={theme.contrast} + containerStyle={{ height: ts(4), flexShrink: 1, borderColor: (theme) => theme.contrast }} {...tooltip(t("navbar.search"))} {...props} /> @@ -177,9 +177,14 @@ export const NavbarRight = () => { export const Navbar = ({ left, right, + background, ...props -}: { left?: ReactElement | null; right?: ReactElement | null } & Stylable) => { - const { css } = useYoshiki(); +}: { + left?: ReactElement | null; + right?: ReactElement | null; + background?: ReactElement; +} & Stylable) => { + const { css, theme } = useYoshiki(); const { t } = useTranslation(); return ( @@ -205,6 +210,7 @@ export const Navbar = ({ props, )} > + {background} {left !== undefined ? ( left