From 52e8c59568f9ec0980eaa9ae277f65813cb80854 Mon Sep 17 00:00:00 2001 From: Reevoy Date: Wed, 11 Jun 2025 23:16:37 +0200 Subject: [PATCH] fix color of prompt box --- wgp.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wgp.py b/wgp.py index 537c1f2..f68169a 100644 --- a/wgp.py +++ b/wgp.py @@ -2550,7 +2550,16 @@ def refresh_gallery(state): #, msg for img_uri in list_uri: thumbnails += f'Start' - html = "" + thumbnails + "
" + prompt + "
" + # Get current theme from server config + current_theme = server_config.get("UI_theme", "default") + if current_theme == "gradio": + # Native Gradio theme (dark) + table_style = "border: 1px solid #444444; background-color: #2B2B2B; color: #FFFFFF; padding: 8px;" + else: + # Blue Sky Soft theme - match the input fields styling + table_style = "border: 1px solid #0a0f1e; background-color: #1e293b; color: #FFFFFF; padding: 8px;" + + html = f"" + thumbnails + "
" + prompt + "
" html_output = gr.HTML(html, visible= True) return gr.Gallery(selected_index=choice, value = file_list), html_output, gr.Button(visible=False), gr.Button(visible=True), gr.Row(visible=True), update_queue_data(queue), gr.Button(interactive= abort_interactive), gr.Button(visible= onemorewindow_visible)