|
|
@@ -147,6 +147,10 @@ function applyThemeCss(theme: DesktopTheme, themeId: string, mode: "light" | "da
|
|
|
ensureThemeStyleElement().textContent = fullCss
|
|
|
document.documentElement.dataset.theme = themeId
|
|
|
document.documentElement.dataset.colorScheme = mode
|
|
|
+
|
|
|
+ // Update theme-color meta tag to match light/dark mode
|
|
|
+ const meta = document.querySelector('meta[name="theme-color"]')
|
|
|
+ if (meta) meta.setAttribute("content", isDark ? "#131010" : "#F8F7F7")
|
|
|
}
|
|
|
|
|
|
function cacheThemeVariants(theme: DesktopTheme, themeId: string) {
|