From 84066dbfaf99f64e31154352ffde6ec4d1e2c5a3 Mon Sep 17 00:00:00 2001 From: Mateusz Russak Date: Fri, 25 Oct 2024 18:11:48 +0200 Subject: [PATCH] feat: setting theme color for desktop --- app/src/js/components/layout/Main.tsx | 5 +++++ deno.lock | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app/src/js/components/layout/Main.tsx b/app/src/js/components/layout/Main.tsx index 89570c49..c222abc9 100644 --- a/app/src/js/components/layout/Main.tsx +++ b/app/src/js/components/layout/Main.tsx @@ -164,6 +164,11 @@ export const Workspaces = () => { export const Desktop = ({children}: {children: React.ReactNode}) => { const { sidebar } = useSidebar(); const { parentId } = useParams(); + const theme = useTheme(); + useEffect(() => { + document.querySelector('meta[name="theme-color"]') + ?.setAttribute('content', theme.Navbar.Background); + }, [theme]); return (