mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Restore light/dark custom setting (#9716)
* changes * add changeset * add changeset --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
b1a0f6db0d
commit
3c7f2ad15f
5
.changeset/calm-emus-post.md
Normal file
5
.changeset/calm-emus-post.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Restore light/dark custom setting
|
@ -86,7 +86,7 @@ class ThemeClass:
|
||||
+ "\n}"
|
||||
)
|
||||
dark_css_code = (
|
||||
"@media (prefers-color-scheme: dark) {\n:root {\n"
|
||||
"\n:root .dark {\n"
|
||||
+ "\n".join([f" --{attr}: {val};" for attr, val in dark_css.items()])
|
||||
+ "\n}\n}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user