From b21bc38810616a41a11f1d4bb4a52e85c0d32ad1 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 25 Jun 2024 19:34:28 +0600 Subject: [PATCH] web/SettingsCheckbox: proper checkbox style --- .../buttons/SettingsCheckbox.svelte | 73 +++++++++++++++---- 1 file changed, 58 insertions(+), 15 deletions(-) diff --git a/web/src/components/buttons/SettingsCheckbox.svelte b/web/src/components/buttons/SettingsCheckbox.svelte index eee4f9e9..b8f98afd 100644 --- a/web/src/components/buttons/SettingsCheckbox.svelte +++ b/web/src/components/buttons/SettingsCheckbox.svelte @@ -8,6 +8,8 @@ import settings, { updateSetting } from "$lib/settings"; import type { CobaltSettings } from "$lib/types/settings"; + import IconCheck from "@tabler/icons-svelte/IconCheck.svelte"; + export let settingContext: Context; export let settingId: Id; @@ -18,18 +20,23 @@ $: isChecked = !!setting; -
- - updateSetting({ - [settingContext]: { - [settingId]: isChecked, - }, - })} - /> +
+ \ No newline at end of file +