Closed substitute5 closed 1 year ago
或许是系统/浏览器的效果, 代码里没有暗黑相关的设定
同是白的
修改theme.py的30行 Gradio 带有一组预构建的主题: gr.themes.Base() gr.themes.Default() gr.themes.Glass() gr.themes.Monochrome() gr.themes.Soft()
@ifyz 你好,预设的主题没有暗黑风格,请问如何修改让他变成暗黑风格呢,set_theme.set()中哪个属性是控制背景颜色的呀
我是把浏览器调节到暗色模式
在浏览器url后面添加/?__dark-theme=true可以切换dark主题
在浏览器url后面添加/?dark-theme=true可以切换dark主题 例如 http://localhost:7860 变成 http://localhost:7860/?theme=dark
我拉取了最新的代码运行,界面仍旧是之前的风格,想要知道如何实现暗黑主题风格的配置,谢谢。