We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
程序主体
现在好像只有已经本地化的主题支持代码高亮。
The text was updated successfully, but these errors were encountered:
@binary-husky 我直接把default.css扔到gradios.py,--background-fill-primary: #050810;注释掉 复制一个default.css重命名,根据需要增减样式,再从gradios.py引用,就可以把本地样式传染给社区主题了 这样沿用了本地default处理markdown或highlight的独特样式,大部分样式还是社区原样
--background-fill-primary: #050810;
with open(os.path.join(theme_dir, "common.css"), "r", encoding="utf-8") as f: advanced_css = f.read() with open(os.path.join(theme_dir, "default_hf.css"), "r", encoding="utf-8") as f: advanced_css += f.read()
但这只是简单粗暴的方法,如果能自动筛选本地和远程样式才完美,暂时没想到好办法。
Sorry, something went wrong.
No branches or pull requests
Class | 类型
程序主体
Feature Request | 功能请求
现在好像只有已经本地化的主题支持代码高亮。
The text was updated successfully, but these errors were encountered: