From 38b591a0846e0682a3eb0e383c4d986631646d26 Mon Sep 17 00:00:00 2001 From: Hikari Date: Wed, 28 Jan 2026 16:54:51 -0800 Subject: [PATCH] feat: add theme support to editor dialogs and context menu Update ConfirmDialog, InputDialog, and FileContextMenu to use CSS variables instead of hardcoded Tailwind colors, so they respect the user's theme selection (dark/light/high-contrast). --- .../components/editor/ConfirmDialog.svelte | 107 ++++++++++++--- .../components/editor/FileContextMenu.svelte | 92 +++++++++---- src/lib/components/editor/InputDialog.svelte | 122 +++++++++++++++--- 3 files changed, 258 insertions(+), 63 deletions(-) diff --git a/src/lib/components/editor/ConfirmDialog.svelte b/src/lib/components/editor/ConfirmDialog.svelte index f436a5e..16e7bf6 100644 --- a/src/lib/components/editor/ConfirmDialog.svelte +++ b/src/lib/components/editor/ConfirmDialog.svelte @@ -31,30 +31,101 @@ -
+
-
e.stopPropagation()} - > -

{title}

-

{message}

+
e.stopPropagation()}> +

{title}

+

{message}

-
- -
+ + diff --git a/src/lib/components/editor/FileContextMenu.svelte b/src/lib/components/editor/FileContextMenu.svelte index a451c5f..49c3ba8 100644 --- a/src/lib/components/editor/FileContextMenu.svelte +++ b/src/lib/components/editor/FileContextMenu.svelte @@ -62,7 +62,7 @@
{ e.preventDefault(); @@ -70,16 +70,9 @@ }} > -
e.stopPropagation()} - > -
+ + diff --git a/src/lib/components/editor/InputDialog.svelte b/src/lib/components/editor/InputDialog.svelte index 7caa55c..654172c 100644 --- a/src/lib/components/editor/InputDialog.svelte +++ b/src/lib/components/editor/InputDialog.svelte @@ -19,7 +19,6 @@ onCancel, }: Props = $props(); - // svelte-ignore state_referenced_locally - intentionally capture initial value once let inputValue = $state(initialValue); let inputElement: HTMLInputElement | undefined = $state(); @@ -52,36 +51,123 @@ -
+
-
e.stopPropagation()} - > -

{title}

+
e.stopPropagation()}> +

{title}

-
- -
+ +