forked from extern/easydiffusion
Undo UI cleanup (#1106)
* Moving to InvokeAI attention weighting syntax
* Fix restoration of disabled image tags
Fix the restoration inactive image tags.
* Undo feature UX cleanup
Just show the undo button when there's no task for a more consistent UI.
* cleanup code
* Revert "cleanup code"
This reverts commit 03199c5a4f
.
* Update image-modifiers.js
* Update image-modifiers.js
This commit is contained in:
parent
5b00d54c76
commit
687da5b64a
@ -293,6 +293,12 @@
|
|||||||
|
|
||||||
<div id="preview" class="col-free">
|
<div id="preview" class="col-free">
|
||||||
|
|
||||||
|
<div id="initial-text">
|
||||||
|
Type a prompt and press the "Make Image" button.<br/><br/>You can set an "Initial Image" if you want to guide the AI.<br/><br/>
|
||||||
|
You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section
|
||||||
|
and selecting the desired modifiers.<br/><br/>
|
||||||
|
Click "Image Settings" for additional settings like seed, image size, number of images to generate etc.<br/><br/>Enjoy! :)
|
||||||
|
</div>
|
||||||
<div id="preview-content">
|
<div id="preview-content">
|
||||||
<div id="preview-tools" class="displayNone">
|
<div id="preview-tools" class="displayNone">
|
||||||
<button id="clear-all-previews" class="secondaryButton"><i class="fa-solid fa-trash-can icon"></i> Clear All</button>
|
<button id="clear-all-previews" class="secondaryButton"><i class="fa-solid fa-trash-can icon"></i> Clear All</button>
|
||||||
@ -326,12 +332,6 @@
|
|||||||
<div class="clearfix" style="clear: both;"></div>
|
<div class="clearfix" style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="initial-text">
|
|
||||||
Type a prompt and press the "Make Image" button.<br/><br/>You can set an "Initial Image" if you want to guide the AI.<br/><br/>
|
|
||||||
You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section
|
|
||||||
and selecting the desired modifiers.<br/><br/>
|
|
||||||
Click "Image Settings" for additional settings like seed, image size, number of images to generate etc.<br/><br/>Enjoy! :)
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -238,6 +238,10 @@ code {
|
|||||||
#stopImage:hover {
|
#stopImage:hover {
|
||||||
background: rgb(177, 27, 0);
|
background: rgb(177, 27, 0);
|
||||||
}
|
}
|
||||||
|
#undo {
|
||||||
|
float: right;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
div#render-buttons {
|
div#render-buttons {
|
||||||
gap: 3px;
|
gap: 3px;
|
||||||
|
@ -1310,13 +1310,15 @@ async function stopAllTasks() {
|
|||||||
|
|
||||||
function updateInitialText() {
|
function updateInitialText() {
|
||||||
if (document.querySelector('.imageTaskContainer') === null) {
|
if (document.querySelector('.imageTaskContainer') === null) {
|
||||||
if (undoBuffer.length == 0) {
|
if (undoBuffer.length > 0) {
|
||||||
previewTools.classList.add('displayNone')
|
initialText.prepend(undoButton)
|
||||||
}
|
}
|
||||||
|
previewTools.classList.add('displayNone')
|
||||||
initialText.classList.remove('displayNone')
|
initialText.classList.remove('displayNone')
|
||||||
} else {
|
} else {
|
||||||
initialText.classList.add('displayNone')
|
initialText.classList.add('displayNone')
|
||||||
previewTools.classList.remove('displayNone')
|
previewTools.classList.remove('displayNone')
|
||||||
|
document.querySelector('div.display-settings').prepend(undoButton)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user