aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-17 13:28:19 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-17 13:28:19 +0000
commit8d197b6a92fbcea8e3394159247c19cea080c975 (patch)
tree8f2b357686f882bf6a5d06f891759574765b2c0d /modules
parent77dcb21688a121e4b9f93cd614546daad90f5a6c (diff)
downloadstable-diffusion-webui-gfx803-8d197b6a92fbcea8e3394159247c19cea080c975.tar.gz
stable-diffusion-webui-gfx803-8d197b6a92fbcea8e3394159247c19cea080c975.tar.bz2
stable-diffusion-webui-gfx803-8d197b6a92fbcea8e3394159247c19cea080c975.zip
added user.css support
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 960f1e36..b97ffd07 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -801,6 +801,11 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with open(os.path.join(script_path, "style.css"), "r", encoding="utf8") as file:
css = file.read()
+ if os.path.exists(os.path.join(script_path, "style.css")):
+ with open(os.path.join(script_path, "user.css"), "r", encoding="utf8") as file:
+ usercss = file.read()
+ css += usercss
+
if not cmd_opts.no_progressbar_hiding:
css += css_hide_progressbar