Adapted theme from stable-diffusion-webui-ux

This commit is contained in:
space-nuko
2023-05-05 05:33:42 -05:00
parent 8fa267982e
commit 9afe6b21a2
15 changed files with 814 additions and 29 deletions

View File

@@ -28,7 +28,7 @@
}
</script>
<div class="wrapper gr-button">
<div class="wrapper gradio-button">
{#if node !== null}
<Button on:click={onClick} variant="primary" {style}>
{widget.attrs.title}
@@ -36,7 +36,7 @@
{/if}
</div>
<style>
<style lang="scss">
.wrapper {
padding: 2px;
width: 100%;

View File

@@ -63,7 +63,7 @@
}
</script>
<div class="wrapper gr-combo" class:updated={werePropsChanged}>
<div class="wrapper comfy-combo" class:updated={werePropsChanged}>
{#key $propsChanged}
{#if node !== null && nodeValue !== null}
<label>
@@ -75,6 +75,7 @@
items={node.properties.values}
disabled={node.properties.values.length === 0}
clearable={false}
showChevron={true}
on:change
on:select
on:filter

View File

@@ -44,14 +44,14 @@
}
</script>
<div class="wrapper comfy-gallery-widget gr-gallery" bind:this={element}>
<div class="wrapper comfy-gallery-widget gradio-gallery" bind:this={element}>
{#if widget && node && nodeValue}
<Block variant="solid" padding={false}>
<div class="padding">
<Gallery
bind:value={$nodeValue}
label={widget.attrs.title}
show_label={true}
show_label={widget.attrs.title !== ""}
{style}
root={""}
root_url={""}

View File

@@ -39,7 +39,7 @@
}
</script>
<div class="wrapper gr-range">
<div class="wrapper gradio-slider">
{#if node !== null && option !== null}
<Range
bind:value={option}

View File

@@ -27,7 +27,7 @@
}
</script>
<div class="wrapper gr-textbox">
<div class="wrapper gradio-textbox">
{#if node !== null && nodeValue !== null}
<TextBox
bind:value={$nodeValue}