Sebastiankay commited on
Commit
cb1f559
1 Parent(s): c0181ec

24. Sept. 2024, 22:04

Browse files
Files changed (1) hide show
  1. _res/_custom.js +1 -1
_res/_custom.js CHANGED
@@ -17,7 +17,7 @@ function gradioCustomJS() {
17
  document.querySelector("body > gradio-app > div").classList.add("fade-bg")
18
  document.querySelector("gradio-app").style.opacity = "0"
19
  setTimeout(() => {
20
- document.querySelector("body").style.setProperty("--primary-700", document.querySelector("#dominant_image_color > label > textarea").value)
21
  document.querySelector("gradio-app").classList.add("has-bg-image")
22
  document.querySelector("body").style.setProperty("--bg-image-path", `url("${document.querySelector("#output_image > div.image-container.svelte-1p15vfy > button > div > img").src}")`)
23
  }, 400)
 
17
  document.querySelector("body > gradio-app > div").classList.add("fade-bg")
18
  document.querySelector("gradio-app").style.opacity = "0"
19
  setTimeout(() => {
20
+ document.querySelector("body").style.setProperty("--primary-600", document.querySelector("#dominant_image_color > label > textarea").value)
21
  document.querySelector("gradio-app").classList.add("has-bg-image")
22
  document.querySelector("body").style.setProperty("--bg-image-path", `url("${document.querySelector("#output_image > div.image-container.svelte-1p15vfy > button > div > img").src}")`)
23
  }, 400)