💄 Add "Darker" theme

This commit is contained in:
2023-08-27 15:37:18 +02:00
parent f11fe89835
commit 2895efc43b
5 changed files with 32 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ import {
} from "@/store";
import { computed, ref } from "vue";
const autoThemes = { true: "dark", false: "light" };
const autoThemes = { true: "darker", false: "light" };
const autoTheme = ref("dark");
const colorSchemeMedia = window.matchMedia("(prefers-color-scheme: dark)");
autoTheme.value = autoThemes[colorSchemeMedia.matches];