From c3ac8d9728ad15224dca2a6e8b99177ecf07661e Mon Sep 17 00:00:00 2001 From: xingo xu Date: Thu, 6 Jun 2024 02:20:05 +0900 Subject: [PATCH] feat: light/dark modes switch immediately with the system theme (#95) --- src/components/LightDarkSwitch.svelte | 54 +++++++++++++++++++++------ src/types/config.ts | 6 ++- src/utils/setting-utils.ts | 24 +++++++----- 3 files changed, 62 insertions(+), 22 deletions(-) diff --git a/src/components/LightDarkSwitch.svelte b/src/components/LightDarkSwitch.svelte index 602fbf0..abd9824 100644 --- a/src/components/LightDarkSwitch.svelte +++ b/src/components/LightDarkSwitch.svelte @@ -1,22 +1,52 @@