mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import Toggle from "@app/components/Toggle.svelte";
|
||||
import ToggleSwitch from "@app/components/ToggleSwitch.svelte";
|
||||
import { theme, storeTheme } from "@app/lib/appearance";
|
||||
|
||||
$: document.documentElement.setAttribute("data-theme", $theme);
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="theme">
|
||||
<Icon name="sun" on:click={() => theme.set("light")} />
|
||||
<Toggle
|
||||
<ToggleSwitch
|
||||
checked={$theme === "dark"}
|
||||
on:change={() => {
|
||||
theme.set($theme === "dark" ? "light" : "dark");
|
||||
|
||||
Reference in New Issue
Block a user