Fix cast theme

This commit is contained in:
Manav Rathi
2025-02-05 11:35:07 +05:30
parent dff5e9f4a6
commit 23712e6bd3
2 changed files with 9 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import { staticAppTitle } from "@/base/app";
import { CustomHead } from "@/base/components/Head";
import { useSetupLogs } from "@/base/components/utils/hooks-app";
import { photosTheme } from "@/base/components/utils/theme";
import { castTheme } from "@/base/components/utils/theme";
import "@fontsource-variable/inter";
import { CssBaseline, ThemeProvider } from "@mui/material";
import type { AppProps } from "next/app";
@@ -14,7 +14,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<>
<CustomHead title={staticAppTitle} />
<ThemeProvider theme={photosTheme}>
<ThemeProvider theme={castTheme}>
<CssBaseline enableColorScheme />
<Component {...pageProps} />
</ThemeProvider>

View File

@@ -786,3 +786,10 @@ export const photosTheme = getTheme("photos");
* The MUI {@link Theme} to use for the auth app.
*/
export const authTheme = getTheme("auth");
/**
* The MUI {@link Theme} to use for the cast app.
*
* This is the same as the dark theme for the photos app.
*/
export const castTheme = getTheme("cast");