diff --git a/index.html b/index.html
index 2a4d4e5d..61d0f42b 100644
--- a/index.html
+++ b/index.html
@@ -1,13 +1,12 @@
-
-
+
+
-
-
-
-
+
+
+
Uptime Kuma
diff --git a/src/mixins/theme.js b/src/mixins/theme.js
index 5b4c831d..98b605a7 100644
--- a/src/mixins/theme.js
+++ b/src/mixins/theme.js
@@ -14,6 +14,7 @@ export default {
}
document.body.classList.add(this.theme);
+ this.updateThemeColorMeta();
},
computed: {
@@ -33,6 +34,17 @@ export default {
theme(to, from) {
document.body.classList.remove(from);
document.body.classList.add(this.theme);
+ this.updateThemeColorMeta();
+ }
+ },
+
+ methods: {
+ updateThemeColorMeta() {
+ if (this.theme === "dark") {
+ document.querySelector("#theme-color").setAttribute("content", "#161B22");
+ } else {
+ document.querySelector("#theme-color").setAttribute("content", "#5cdd8b");
+ }
}
}
}