From c253e0956f8888a3f853425d1cb26c1ee768a77e Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Sat, 20 May 2023 14:58:35 -0500 Subject: [PATCH] Application sidebar --- src/lib/components/ComfyApp.svelte | 306 ++++++++++++++++++-------- src/lib/components/Sidebar.svelte | 154 +++++++++++++ src/lib/components/SidebarItem.svelte | 45 ++++ 3 files changed, 412 insertions(+), 93 deletions(-) create mode 100644 src/lib/components/Sidebar.svelte create mode 100644 src/lib/components/SidebarItem.svelte diff --git a/src/lib/components/ComfyApp.svelte b/src/lib/components/ComfyApp.svelte index e3f11e2..83bc0ef 100644 --- a/src/lib/components/ComfyApp.svelte +++ b/src/lib/components/ComfyApp.svelte @@ -1,4 +1,5 @@ @@ -222,86 +228,114 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + txt2img + + + + img2img + + + + asdflkj + + + + asdkajw + + + + + + + {#if $layoutState.attrs.queuePromptButtonName != ""} + + {$layoutState.attrs.queuePromptButtonName} + + {/if} + + Toggle Graph + + + Toggle Props + + + Toggle Queue + + + Save + + + Save Local + + + Load + + + Clear + + + Load Default + + + 🔄 + + + + + + + UI Edit mode + + Widgets + + + + Theme + + Gradio Dark + Gradio Light + Anapnoe + + + + + + + + - - - - - - - - - - - - - - - - - - - - - {#if $layoutState.attrs.queuePromptButtonName != ""} - - {$layoutState.attrs.queuePromptButtonName} - - {/if} - - Toggle Graph - - - Toggle Props - - - Toggle Queue - - - Save - - - Save Local - - - Load - - - Clear - - - Load Default - - - 🔄 - - - - - - - UI Edit mode - - Widgets - - - - Theme - - Gradio Dark - Gradio Light - Anapnoe - - - - - - + + + + @@ -309,37 +343,123 @@ diff --git a/src/lib/components/SidebarItem.svelte b/src/lib/components/SidebarItem.svelte new file mode 100644 index 0000000..40246e3 --- /dev/null +++ b/src/lib/components/SidebarItem.svelte @@ -0,0 +1,45 @@ + + + + + + + + +