diff --git a/ui/web/src/pages/login/login-layout.tsx b/ui/web/src/pages/login/login-layout.tsx index 93903845..32b42f25 100644 --- a/ui/web/src/pages/login/login-layout.tsx +++ b/ui/web/src/pages/login/login-layout.tsx @@ -1,11 +1,32 @@ +import { Moon, Sun } from "lucide-react"; +import { useTranslation } from "react-i18next"; +import { useUiStore } from "@/stores/use-ui-store"; + interface LoginLayoutProps { children: React.ReactNode; subtitle?: string; } export function LoginLayout({ children, subtitle }: LoginLayoutProps) { + const { t } = useTranslation("topbar"); + const theme = useUiStore((s) => s.theme); + const setTheme = useUiStore((s) => s.setTheme); + const isDark = + theme === "dark" || + (theme === "system" && + window.matchMedia("(prefers-color-scheme: dark)").matches); + return ( -