mirror of
https://github.com/dsec-hub/dsec-notebook.git
synced 2026-09-22 07:24:27 +00:00
updated meta theme colour
This commit is contained in:
parent
8028650ade
commit
948899e130
3 changed files with 2 additions and 6 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default defineConfig({
|
|||
scope: "/",
|
||||
display: "standalone",
|
||||
background_color: "#ffffff",
|
||||
theme_color: "#ffffff",
|
||||
theme_color: "#ea4c65",
|
||||
lang: "en",
|
||||
},
|
||||
pwaAssets: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue