diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-13 16:43:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 16:43:15 +0000 |
commit | 23b62afc72ccac7cc5a061dc33afb1ccdea9f57c (patch) | |
tree | 7056507ea61a646e5cf990ad6277376054e2c037 /modules/shared.py | |
parent | 2b3fc246b050f4649a643cfcaf16df60a9ac615a (diff) | |
parent | 867c8a1083e892f06d78c41c5e0a05138c2ae337 (diff) | |
download | stable-diffusion-webui-gfx803-23b62afc72ccac7cc5a061dc33afb1ccdea9f57c.tar.gz stable-diffusion-webui-gfx803-23b62afc72ccac7cc5a061dc33afb1ccdea9f57c.tar.bz2 stable-diffusion-webui-gfx803-23b62afc72ccac7cc5a061dc33afb1ccdea9f57c.zip |
Merge pull request #10324 from catboxanon/offline
Allow web UI to be ran fully offline
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 1df1dd45..96a20a6b 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -665,14 +665,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)
|