Fix WPA theme color

This commit is contained in:
MartinBraquet
2025-10-22 00:22:28 +02:00
parent 8cba02741c
commit fa44e348a2
2 changed files with 8 additions and 4 deletions

View File

@@ -16,11 +16,15 @@ export default function Document() {
/>
{/* PWA primary color */}
<meta name="theme-color" content="#0d6efd" />
<Head>
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/>
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0d1117"/>
</Head>
{/*/!* Link to your manifest *!/*/}
<link rel="manifest" href="/manifest.json" />
<link rel="manifest" href="/manifest.json"/>
{/*/!* App icons *!/*/}
<link rel="apple-touch-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/favicon.ico"/>
<Script src="/init-theme.js" strategy="beforeInteractive"/>
{IS_DEPLOYED && <Script id="devtools-warning" strategy="afterInteractive" dangerouslySetInnerHTML={{

View File

@@ -11,6 +11,6 @@
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#0d6efd",
"theme_color": "#ffffff",
"orientation": "portrait-primary"
}