From b2d38ae920a96a06fcb727d214e3f4ec269b22b7 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 20 Jan 2024 13:51:19 -0500 Subject: [PATCH] update icons/hints --- html/locale_en.json | 3 +++ modules/ui_models.py | 5 +++-- modules/ui_symbols.py | 3 ++- wiki | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/html/locale_en.json b/html/locale_en.json index a3cc2bdec..25073bcbd 100644 --- a/html/locale_en.json +++ b/html/locale_en.json @@ -1,6 +1,8 @@ {"icons": [ {"id":"","label":"🎲️","localized":"","hint":"Use random seed"}, {"id":"","label":"♻️","localized":"","hint":"Reuse previous seed"}, + {"id":"","label":"🔄","localized":"","hint":"Reset values"}, + {"id":"","label":"⬆️","localized":"","hint":"Upload image"}, {"id":"","label":"⇅","localized":"","hint":"Swap values"}, {"id":"","label":"⇦","localized":"","hint":"Read parameters from last generated image"}, {"id":"","label":"⊗","localized":"","hint":"Clear prompt"}, @@ -18,6 +20,7 @@ {"id":"","label":"☲","localized":"","hint":"Change view type"}, {"id":"","label":"📐","localized":"","hint":"Measure"}, {"id":"","label":"🔍","localized":"","hint":"Search"}, + {"id":"","label":"🖼️","localized":"","hint":"Show preview"}, {"id":"","label":"✎","localized":"","hint":"Interrogate image using BLIP model"}, {"id":"","label":"✐","localized":"","hint":"Interrogate image using DeepBooru model"} ], diff --git a/modules/ui_models.py b/modules/ui_models.py index 19a2c3632..a0135a6ca 100644 --- a/modules/ui_models.py +++ b/modules/ui_models.py @@ -9,6 +9,7 @@ from modules.ui_components import ToolButton from modules.ui_common import create_refresh_button from modules.call_queue import wrap_gradio_gpu_call from modules.shared import opts, log, req, readfile, max_workers +import modules.ui_symbols import modules.errors import modules.hashes from modules.merging import merge_methods @@ -384,7 +385,7 @@ def create_ui(): gr.HTML('

Search for models

Select a model from the search results to download

') with gr.Row(): hf_search_text = gr.Textbox('', label='Search models', placeholder='search huggingface models') - hf_search_btn = ToolButton(value="🔍", label="Search") + hf_search_btn = ToolButton(value=modules.ui_symbols.search, label="Search") with gr.Row(): with gr.Column(scale=2): with gr.Row(): @@ -585,7 +586,7 @@ def create_ui(): with gr.Row(): civit_search_text = gr.Textbox('', label='Search models', placeholder='keyword') civit_search_tag = gr.Textbox('', label='', placeholder='tags') - civit_search_btn = ToolButton(value="🔍", label="Search", interactive=True) + civit_search_btn = ToolButton(value=modules.ui_symbols.search, label="Search", interactive=True) with gr.Row(): civit_search_res = gr.HTML('') with gr.Row(): diff --git a/modules/ui_symbols.py b/modules/ui_symbols.py index 2db3e6dc5..bebb65cf6 100644 --- a/modules/ui_symbols.py +++ b/modules/ui_symbols.py @@ -20,7 +20,8 @@ reuse = '♻️' info = 'ℹ' # noqa reset = '🔄' upload = '⬆️' -preview = '🔍' +search = '🔍' +preview = '🖼️' mark_diag = '※' mark_flag = '⁜' int_clip = '✎' diff --git a/wiki b/wiki index b2f366131..203234e73 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit b2f3661314acfdb05ff9b44143f531c75d09d459 +Subproject commit 203234e7397733e5801227e00691ccfe68a80826