From 2c29e41d523e78a3c56a8ac944c56b5df7d4d708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=8F=E3=83=B3=20/=20Han?= Date: Mon, 16 May 2022 12:07:37 +0900 Subject: [PATCH] fix: favicon dark mode (#359) --- index.html | 3 +-- public/favicon-dark.svg | 3 +++ public/favicon.svg | 10 ++-------- src/App.vue | 9 ++++++++- src/composables/dark.ts | 1 + 5 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 public/favicon-dark.svg diff --git a/index.html b/index.html index 626a87b..68cef02 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,11 @@ - diff --git a/src/composables/dark.ts b/src/composables/dark.ts index c745de5..5ad5936 100644 --- a/src/composables/dark.ts +++ b/src/composables/dark.ts @@ -1,3 +1,4 @@ // these APIs are auto-imported from @vueuse/core export const isDark = useDark() export const toggleDark = useToggle(isDark) +export const preferredDark = usePreferredDark()