From eded04a93dd306188ba7612b29ec76c38957edfb Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Mon, 10 Jun 2019 15:54:29 +0800 Subject: [PATCH] feat: auto detect color preference (#238) * auto detect color preference * tweaks * enable detectSystemDarkTheme --- .../dark-theme-toggler/DarkThemeToggler.vue | 24 +++++++++---------- src/store.js | 16 ++++++++++++- website/docs/options.md | 7 ++++++ website/docs/zh/options.md | 7 ++++++ website/index.js | 1 + 5 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/plugins/dark-theme-toggler/DarkThemeToggler.vue b/src/plugins/dark-theme-toggler/DarkThemeToggler.vue index c1f153e6..b9023df0 100644 --- a/src/plugins/dark-theme-toggler/DarkThemeToggler.vue +++ b/src/plugins/dark-theme-toggler/DarkThemeToggler.vue @@ -35,18 +35,22 @@