feat: add ComfyUI integration for image generation

- Implemented ComfyUI API for generating images with various modes (text-to-image, image-to-image, inpaint, outpaint).
- Created GenerateSheet and associated controls for user input on generation settings.
- Added subtle scrollbar styles for improved UI experience.
- Enhanced canvas input handling to ignore key events when focused on editable elements.
- Optimized canvas resizing logic to prevent unnecessary dispatches.
- Introduced error handling for generation failures and loading models.
- Added functionality to upload images and masks for inpainting.
This commit is contained in:
syntaxbullet
2026-07-04 15:10:30 +02:00
parent af50a165da
commit 7188569672
23 changed files with 981 additions and 52 deletions

View File

@@ -66,4 +66,27 @@
outline: 1px solid rgb(255 255 255);
outline-offset: 2px;
}
.subtle-scrollbar {
scrollbar-width: thin;
scrollbar-color: rgb(255 255 255 / 0.16) transparent;
}
.subtle-scrollbar::-webkit-scrollbar {
width: 0.375rem;
height: 0.375rem;
}
.subtle-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.subtle-scrollbar::-webkit-scrollbar-thumb {
border-radius: 9999px;
background: rgb(255 255 255 / 0.12);
}
.subtle-scrollbar:hover::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 0.22);
}
}