1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 14:59:26 +01:00

fix: fixes theme color in dark and light mode (#3706)

This commit is contained in:
Amir Raminfar
2025-03-16 16:38:43 -07:00
committed by GitHub
parent a488e2e7ee
commit c3ee2da33c
3 changed files with 2 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ watchEffect(() => {
if (theme === "auto") {
theme = mode.value;
}
document.querySelector('meta[name="theme-color"]')?.setAttribute("content", theme == "dark" ? "#121212" : "#3FA68F");
document.documentElement.setAttribute("data-theme", theme);
});
</script>

View File

@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="theme-color" content="" />
<title>Dozzle</title>
<script type="application/json" id="config__json">
{{ marshal .Config }}

View File

@@ -3,10 +3,8 @@
"short_name": "Dozzle",
"start_url": "/",
"display": "standalone",
"background_color": "#000",
"lang": "en",
"scope": "/",
"description": "A log viewer for containers",
"theme_color": "#000",
"icons": [{ "src": "/apple-touch-icon.png", "sizes": "512x512", "type": "image/png" }]
}