added icons to some buttons

This commit is contained in:
Zyin055
2023-03-21 12:14:37 -05:00
parent 1b952e2635
commit 854ca2ff04
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ onUiUpdate(function() {
gradioApp().querySelectorAll("#config_preset_add_button").forEach(el => el.setAttribute("title", "[Config Presets] Create or delete a preset"))
gradioApp().querySelectorAll("#config_preset_cancel_save_button").forEach(el => el.setAttribute("title", "Go back"))
gradioApp().querySelectorAll("#config_preset_trash_button").forEach(el => el.setAttribute("title", "Permanently delete selected preset"))
gradioApp().querySelectorAll("#config_preset_fields_to_save > span").forEach(el => el.setAttribute("title", "Only selected field values will be saved. Unselected fields will be ignored."))
gradioApp().querySelectorAll("#config_preset_fields_to_save > span").forEach(el => el.setAttribute("title", "Only selected field values will be saved with the preset. Unselected fields will be ignored."))
})
//this function called by config_preset_dropdown in config_presets.py

View File

@@ -380,7 +380,7 @@ class Script(scripts.Script):
outputs=[config_preset_dropdown],
)
with gr.Column(scale=2, min_width=55):
with gr.Column(scale=2, min_width=190):
def open_file(f):
path = os.path.normpath(f)
@@ -397,7 +397,7 @@ class Script(scripts.Script):
sp.Popen(["xdg-open", path])
open_config_file_button = gr.Button(
value="Open config file...",
value="📂 Open config file...",
elem_id="config_presets_open_config_file_button",
)
open_config_file_button.click(
@@ -430,10 +430,10 @@ class Script(scripts.Script):
max_lines=1,
elem_id="config_preset_save_textbox",
)
with gr.Column(scale=2, min_width=60):
with gr.Column(scale=2, min_width=200):
save_button = gr.Button(
# value="Create",
value="Save & Restart",
value="💾 Save & Restart",
variant="primary",
elem_id="config_preset_save_button",
)