diff options
author | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-11-10 06:47:53 +0000 |
---|---|---|
committer | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-11-10 06:47:53 +0000 |
commit | 7ff54005fee46ce188544db75c27de61ae279001 (patch) | |
tree | efcb92cfd5208ec7cc145f4d1f42731689d72d2a /modules/ui_prompt_styles.py | |
parent | 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 (diff) | |
download | stable-diffusion-webui-gfx803-7ff54005fee46ce188544db75c27de61ae279001.tar.gz stable-diffusion-webui-gfx803-7ff54005fee46ce188544db75c27de61ae279001.tar.bz2 stable-diffusion-webui-gfx803-7ff54005fee46ce188544db75c27de61ae279001.zip |
Enable prompt hotkeys in style editor
Diffstat (limited to 'modules/ui_prompt_styles.py')
-rw-r--r-- | modules/ui_prompt_styles.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_prompt_styles.py b/modules/ui_prompt_styles.py index 85eb3a64..d6f8d4c7 100644 --- a/modules/ui_prompt_styles.py +++ b/modules/ui_prompt_styles.py @@ -64,10 +64,10 @@ class UiPromptStyles: self.materialize = ui_components.ToolButton(value=styles_materialize_symbol, elem_id=f"{tabname}_style_apply", tooltip="Apply all selected styles from the style selction dropdown in main UI to the prompt.")
with gr.Row():
- self.prompt = gr.Textbox(label="Prompt", show_label=True, elem_id=f"{tabname}_edit_style_prompt", lines=3)
+ self.prompt = gr.Textbox(label="Prompt", show_label=True, elem_id=f"{tabname}_edit_style_prompt", lines=3, elem_classes=["prompt"])
with gr.Row():
- self.neg_prompt = gr.Textbox(label="Negative prompt", show_label=True, elem_id=f"{tabname}_edit_style_neg_prompt", lines=3)
+ self.neg_prompt = gr.Textbox(label="Negative prompt", show_label=True, elem_id=f"{tabname}_edit_style_neg_prompt", lines=3, elem_classes=["prompt"])
with gr.Row():
self.save = gr.Button('Save', variant='primary', elem_id=f'{tabname}_edit_style_save', visible=False)
|