diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ac992e30..5995dcf3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,16 +42,20 @@ Some highlights: [OpenVINO](https://github.com/vladmandic/automatic/wiki/OpenVIN - **compile** option, thanks @disty0 - **chaiNNer** add high quality models from [Helaman](https://openmodeldb.info/users/helaman) - redesigned **Progress bar** with full details on current operation - - **Extra networks** sort by name, size, date, etc. - new option: *settings -> images -> keep incomplete* can be used to skip vae decode on aborted/skipped/interrupted image generations - new option: *settings -> system paths -> models* can be used to set custom base path for *all* models (previously only as cli option) - remove external clone of items in `/repositories` -- **UI** +- **UI** - UI tweaks for default themes - UI switch core font in default theme to **noto-sans** previously default font was simply *system-ui*, but it lead to too much variations between browsers and platforms + - updated **Context menu** + right-click on prompt or generate button +- **Extra networks** + - sort by name, size, date, etc. + - switch between *gallery* and *list* views - **Packages** - updated `diffusers` to 0.22.0, `transformers` to 4.34.1 - update **openvino**, thanks @disty0 diff --git a/html/locale_en.json b/html/locale_en.json index 8100e8525..e2480b253 100644 --- a/html/locale_en.json +++ b/html/locale_en.json @@ -21,7 +21,8 @@ {"id":"","label":"✕","localized":"","hint":"Close"}, {"id":"","label":"⊜","localized":"","hint":"Fill"}, {"id":"","label":"⌾","localized":"","hint":"Load model as refiner model when selected, otherwise load as base model"}, - {"id":"","label":"🕸️","localized":"","hint":"Scan CivitAI for missing metadata and previews"}, + {"id":"","label":"🔎︎","localized":"","hint":"Scan CivitAI for missing metadata and previews"}, + {"id":"","label":"☲","localized":"","hint":"Change view type"}, {"id":"","label":"📐","localized":"","hint":"Measure"}, {"id":"","label":"🔍","localized":"","hint":"Search"} ], diff --git a/javascript/black-teal.css b/javascript/black-teal.css index 5bbc81f8c..a9094fe31 100644 --- a/javascript/black-teal.css +++ b/javascript/black-teal.css @@ -108,7 +108,8 @@ svg.feather.feather-image, .feather .feather-image { display: none } #img2img_label_copy_to_img2img { font-weight: normal; } #txt2img_prompt, #txt2img_neg_prompt, #img2img_prompt, #img2img_neg_prompt { background-color: var(--background-color); box-shadow: 4px 4px 4px 0px #333333 !important; } #txt2img_prompt > label > textarea, #txt2img_neg_prompt > label > textarea, #img2img_prompt > label > textarea, #img2img_neg_prompt > label > textarea { font-size: 1.0em; line-height: 1.4em; } -#txt2img_styles, #img2img_styles { margin-top: -5px; } +#txt2img_styles, #img2img_styles { padding: 0; } +#txt2img_styles_refresh, #img2img_styles_refresh { padding: 0; margin-top: 1em; } #img2img_settings { min-width: calc(2 * var(--left-column)); max-width: calc(2 * var(--left-column)); background-color: #111111; padding-top: 16px; } #interrogate, #deepbooru { margin: 0 0px 10px 0px; max-width: 80px; max-height: 80px; font-weight: normal; font-size: 0.95em; } #quicksettings .gr-button-tool { font-size: 1.6rem; box-shadow: none; margin-left: -20px; margin-top: -2px; height: 2.4em; } diff --git a/javascript/extraNetworks.js b/javascript/extraNetworks.js index 432da7980..a0773514a 100644 --- a/javascript/extraNetworks.js +++ b/javascript/extraNetworks.js @@ -241,6 +241,7 @@ function setupExtraNetworksForTab(tabname) { const btnSave = gradioApp().getElementById(`${tabname}_extra_save`); const btnClose = gradioApp().getElementById(`${tabname}_extra_close`); const btnSort = gradioApp().getElementById(`${tabname}_extra_sort`); + const btnView = gradioApp().getElementById(`${tabname}_extra_view`); const btnModel = gradioApp().getElementById(`${tabname}_extra_model`); const btnApply = gradioApp().getElementById(`${tabname}_extra_apply`); const buttons = document.createElement('span'); @@ -251,6 +252,7 @@ function setupExtraNetworksForTab(tabname) { if (btnScan) buttons.appendChild(btnScan); if (btnSave) buttons.appendChild(btnSave); if (btnSort) buttons.appendChild(btnSort); + if (btnView) buttons.appendChild(btnView); if (btnClose) buttons.appendChild(btnClose); btnModel.onclick = () => btnModel.classList.toggle('toolbutton-selected'); tabs.appendChild(buttons); diff --git a/javascript/light-teal.css b/javascript/light-teal.css index dcccc5894..9b34212ec 100644 --- a/javascript/light-teal.css +++ b/javascript/light-teal.css @@ -106,7 +106,8 @@ svg.feather.feather-image, .feather .feather-image { display: none } #img2img_label_copy_to_img2img { font-weight: normal; } #txt2img_prompt, #txt2img_neg_prompt, #img2img_prompt, #img2img_neg_prompt { background-color: var(--background-color); box-shadow: 4px 4px 4px 0px #333333 !important; } #txt2img_prompt > label > textarea, #txt2img_neg_prompt > label > textarea, #img2img_prompt > label > textarea, #img2img_neg_prompt > label > textarea { font-size: 1.0em; line-height: 1.4em; } -#txt2img_styles, #img2img_styles { margin-top: -5px; } +#txt2img_styles, #img2img_styles { padding: 0; } +#txt2img_styles_refresh, #img2img_styles_refresh { padding: 0; margin-top: 1em; } #img2img_settings { min-width: calc(2 * var(--left-column)); max-width: calc(2 * var(--left-column)); background-color: #111111; padding-top: 16px; } #interrogate, #deepbooru { margin: 0 0px 10px 0px; max-width: 80px; max-height: 80px; font-weight: normal; font-size: 0.95em; } #quicksettings .gr-button-tool { font-size: 1.6rem; box-shadow: none; margin-left: -20px; margin-top: -2px; height: 2.4em; } diff --git a/javascript/sdnext.css b/javascript/sdnext.css index 4fef1203f..273224479 100644 --- a/javascript/sdnext.css +++ b/javascript/sdnext.css @@ -34,7 +34,8 @@ textarea { overflow-y: auto !important; } .gradio-dropdown ul.options { z-index: 1000; min-width: fit-content; max-height: 33vh !important; white-space: nowrap; } .gradio-dropdown ul.options li.item { padding: var(--spacing-xs); } .gradio-dropdown ul.options li.item:not(:has(.hide)) { background-color: var(--primary-500); } -.gradio-dropdown span { margin-bottom: 0 !important; } +.gradio-dropdown .token { padding: var(--spacing-xs); } +.gradio-dropdown span { margin-bottom: 0 !important; font-size: 0.9em; } .gradio-dropdown .reference { margin-bottom: var(--spacing-sm) !important; } .gradio-html { color: var(--body-text-color); } .gradio-html .min { min-height: 0; } @@ -183,7 +184,7 @@ table.settings-value-table td { padding: 0.4em; border: 1px solid #ccc; max-widt .extra-networks .description { flex: 3; } .extra-networks .tab-nav > button { margin-right: 0; height: 24px; padding: 2px 4px 2px 4px; } .extra-networks .buttons { position: absolute; right: 0; margin: -4px; background: var(--background-color); } -.extra-networks .buttons>button { height: 1.2em; margin-top: var(--spacing-md); } +.extra-networks .buttons > button { margin-left: -0.4em; height: 1.4em; color: var(--primary-300) !important; } .extra-networks .custom-button { width: 120px; width: 100%; background: none; justify-content: left; text-align: left; padding: 2px 8px 2px 16px; text-indent: -8px; box-shadow: none; line-break: auto; } .extra-networks .custom-button:hover { background: var(--button-primary-background-fill) } .extra-networks-tab { padding: 0 !important; } @@ -204,6 +205,8 @@ table.settings-value-table td { padding: 0.4em; border: 1px solid #ccc; max-widt .extra-network-cards .card:hover .actions { display: block; } .extra-network-cards .card:hover .overlay .tags { display: block; } .extra-network-cards .card .actions { font-size: 3em; display: none; text-align-last: right; cursor: pointer; font-variant: unicase; position: absolute; z-index: 100; right: 0; height: 0.7em; width: 100%; background: rgba(0, 0, 0, 0.40); } +.extra-network-cards .card-list { display: flex; margin: 0.3em; padding: 0.3em; background: var(--input-background-fill); cursor: pointer; border-radius: var(--button-large-radius); } +.extra-network-cards .card-list .tag { color: var(--primary-500); margin-left: 0.8em; } .extra-details-close { position: fixed; top: 0.2em; right: 0.2em; z-index: 99; background: var(--button-secondary-background-fill) !important; } #txt2img_description, #img2img_description { max-height: 63px; overflow-y: auto !important; } #txt2img_description > label > textarea, #img2img_description > label > textarea { font-size: 0.9em } diff --git a/modules/shared.py b/modules/shared.py index 9998133ef..61b1236da 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -572,6 +572,7 @@ options_templates.update(options_section(('interrogate', "Interrogate"), { options_templates.update(options_section(('extra_networks', "Extra Networks"), { "extra_networks_sep1": OptionInfo("