最新暗黑色主题界面如何配置?
substitute5 opened this issue · comments
我拉取了最新的代码运行,界面仍旧是之前的风格,想要知道如何实现暗黑主题风格的配置,谢谢。
或许是系统/浏览器的效果, 代码里没有暗黑相关的设定
同是白的
修改theme.py的30行
Gradio 带有一组预构建的主题:
gr.themes.Base()
gr.themes.Default()
gr.themes.Glass()
gr.themes.Monochrome()
gr.themes.Soft()
我是把浏览器调节到暗色模式
在浏览器url后面添加/?__dark-theme=true可以切换dark主题
在浏览器url后面添加/?__dark-theme=true可以切换dark主题
例如 http://localhost:7860 变成 http://localhost:7860/?__theme=dark