save auto-launch option, disable shortcuts in settings

This commit is contained in:
Anton Bracke
2022-02-22 14:00:17 +01:00
parent 71c8e32b2f
commit 3f21befdc6
7 changed files with 66 additions and 36 deletions
+12 -1
View File
@@ -1,4 +1,7 @@
<script lang="ts">
import { createEventDispatcher } from "svelte";
const dispatch = createEventDispatcher();
export let id: string;
export let value: boolean;
export let title: string = null;
@@ -7,7 +10,15 @@
<div class="flex w-full my-2">
<label for={id} class="flex items-center cursor-pointer">
<div class="relative">
<input {id} type="checkbox" class="sr-only" checked={value} />
<input
{id}
type="checkbox"
class="sr-only"
checked={value}
on:change={(e) => {
dispatch("change", e.target.checked);
}}
/>
<div class="w-10 h-4 bg-gray-400 rounded-full shadow-inner" />
<div class="dot absolute w-6 h-6 bg-gray-500 rounded-full shadow -left-1 -top-1 transition" />
</div>