From f17dba6eda6f342eed1b10ee6521164141444a0a Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 18 Oct 2024 16:11:30 +0200 Subject: [PATCH] Polish errors --- facefusion/uis/assets/overrides.css | 9 +++++++++ facefusion/uis/core.py | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/facefusion/uis/assets/overrides.css b/facefusion/uis/assets/overrides.css index 10f60c57..6ab65871 100644 --- a/facefusion/uis/assets/overrides.css +++ b/facefusion/uis/assets/overrides.css @@ -45,6 +45,7 @@ :root:root:root:root .slider_input_container > span, :root:root:root:root .feather-upload, +:root:root:root:root .toast-wrap, :root:root:root:root footer { display: none; @@ -75,3 +76,11 @@ top: 0; z-index: 100; } + +:root:root:root:root .block .error +{ + border: 0.125rem solid; + padding: 0.375rem 0.75rem; + font-size: 0.75rem; + text-transform: uppercase; +} diff --git a/facefusion/uis/core.py b/facefusion/uis/core.py index 2acde9bd..ff24c9ed 100644 --- a/facefusion/uis/core.py +++ b/facefusion/uis/core.py @@ -169,6 +169,10 @@ def get_theme() -> gradio.Theme: checkbox_label_background_fill_selected = '*primary_500', checkbox_label_background_fill_selected_dark = '*primary_600', checkbox_label_text_color_selected = 'white', + error_background_fill = 'transparent', + error_background_fill_dark = 'transparent', + error_text_color = '*primary_500', + error_text_color_dark = '*primary_600', input_background_fill = '*neutral_50', input_background_fill_dark = '*neutral_800', shadow_drop = 'none',