diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-14 10:35:07 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-14 10:35:07 +0000 |
commit | 89f9faa63388756314e8a1d96cf86bf5e0663045 (patch) | |
tree | 86c94057a383c3665f994c0c9ce0c5205deec14f /modules/shared.py | |
parent | b08500cec8a791ef20082628b49b17df833f5dda (diff) | |
parent | dbd13dee3aa7c8e37aa43f30a8272b50ba61e7fe (diff) | |
download | stable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.tar.gz stable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.tar.bz2 stable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.zip |
Merge branch 'release_candidate'
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py index 4631965b..b3508883 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -667,14 +667,19 @@ def reload_gradio_theme(theme_name=None): if not theme_name:
theme_name = opts.gradio_theme
+ default_theme_args = dict(
+ font=["Source Sans Pro", 'ui-sans-serif', 'system-ui', 'sans-serif'],
+ font_mono=['IBM Plex Mono', 'ui-monospace', 'Consolas', 'monospace'],
+ )
+
if theme_name == "Default":
- gradio_theme = gr.themes.Default()
+ gradio_theme = gr.themes.Default(**default_theme_args)
else:
try:
gradio_theme = gr.themes.ThemeClass.from_hub(theme_name)
except Exception as e:
errors.display(e, "changing gradio theme")
- gradio_theme = gr.themes.Default()
+ gradio_theme = gr.themes.Default(**default_theme_args)
|