Merge pull request #25 from dsec-hub/ui/meta-theme-color

updated meta theme colour
This commit is contained in:
RythonDev 2026-09-05 12:23:05 +08:00 committed by GitHub
commit c135b017fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View file

@ -7,7 +7,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Notebook" />
<meta name="format-detection" content="telephone=no" />
<meta name="theme-color" content="#ffffff" />
<meta name="theme-color" content="#ea4c65" />
<script>
(function () {
var stored = localStorage.getItem("dsec_theme");
@ -17,8 +17,6 @@
var root = document.documentElement;
root.classList.toggle("dark", dark);
root.style.colorScheme = dark ? "dark" : "light";
var meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.setAttribute("content", dark ? "#131014" : "#ffffff");
})();
</script>
<link rel="manifest" href="/manifest.webmanifest" />

View file

@ -17,8 +17,6 @@ function applyTheme(value: Theme) {
const root = document.documentElement;
root.classList.toggle("dark", value === "dark");
root.style.colorScheme = value;
const meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.setAttribute("content", value === "dark" ? "#131014" : "#ffffff");
}
export function toggleTheme() {

View file

@ -33,7 +33,7 @@ export default defineConfig({
scope: "/",
display: "standalone",
background_color: "#ffffff",
theme_color: "#ffffff",
theme_color: "#ea4c65",
lang: "en",
},
pwaAssets: {