diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-15 11:22:30 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-15 11:22:30 +0000 |
commit | d3463bc59a44d62c2de8b357184c49876d84f654 (patch) | |
tree | c89e5a1f2bc06da134a8298ce036892f23650ae9 /javascript | |
parent | f7ca63937ac83d32483285c3af09afaa356d6276 (diff) | |
download | stable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.tar.gz stable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.tar.bz2 stable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.zip |
change styling for top right corner UI
made save style button not die when you cancel
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/hints.js | 2 | ||||
-rw-r--r-- | javascript/ui.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/javascript/hints.js b/javascript/hints.js index 8fec907d..b98012f5 100644 --- a/javascript/hints.js +++ b/javascript/hints.js @@ -16,6 +16,8 @@ titles = { "\u{1f3a8}": "Add a random artist to the prompt.", "\u2199\ufe0f": "Read generation parameters from prompt or last generation if prompt is empty into user interface.", "\u{1f4c2}": "Open images output directory", + "\u{1f4be}": "Save style", + "\u{1f4cb}": "Apply selected styles to current prompt", "Inpaint a part of image": "Draw a mask over an image, and the script will regenerate the masked area with content according to prompt", "SD upscale": "Upscale image normally, split result into tiles, improve each tile using img2img, merge whole image back", diff --git a/javascript/ui.js b/javascript/ui.js index 56f4216f..9e1bed4c 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -141,7 +141,7 @@ function submit_img2img(){ function ask_for_style_name(_, prompt_text, negative_prompt_text) { name_ = prompt('Style name:') - return name_ === null ? [null, null, null]: [name_, prompt_text, negative_prompt_text] + return [name_, prompt_text, negative_prompt_text] } |