Skip to content

Commit

Permalink
Fix dark mode detection and container height (#9617)
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn authored Oct 9, 2024
1 parent ec95b02 commit c163182
Show file tree
Hide file tree
Showing 29 changed files with 181 additions and 707 deletions.
10 changes: 10 additions & 0 deletions .changeset/great-toes-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@gradio/chatbot": minor
"@gradio/core": minor
"@gradio/lite": minor
"@gradio/statustracker": minor
"@self/app": minor
"gradio": minor
---

feat:Fix dark mode detection and container height
4 changes: 2 additions & 2 deletions gradio/themes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def repl_func(match):
+ "\n}"
)
dark_css_code = (
".dark {\n"
"@media (prefers-color-scheme: dark) {\n:root {\n"
+ "\n".join([f" --{attr}: {val};" for attr, val in dark_css.items()])
+ "\n}"
+ "\n}\n}"
)

font_css = "\n".join(self._font_css)
Expand Down
69 changes: 0 additions & 69 deletions home/runner/work/gradio/gradio/client/js/src/client.d.ts

This file was deleted.

29 changes: 0 additions & 29 deletions home/runner/work/gradio/gradio/client/js/src/constants.d.ts

This file was deleted.

46 changes: 0 additions & 46 deletions home/runner/work/gradio/gradio/client/js/src/helpers/api_info.d.ts

This file was deleted.

20 changes: 0 additions & 20 deletions home/runner/work/gradio/gradio/client/js/src/helpers/data.d.ts

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions home/runner/work/gradio/gradio/client/js/src/index.d.ts

This file was deleted.

Loading

0 comments on commit c163182

Please sign in to comment.