界面色彩自定义

This commit is contained in:
Your Name 2023-03-28 22:35:55 +08:00
parent 2c15b51ea4
commit 5a6877f9fa

View File

@ -1,29 +1,28 @@
import gradio as gr import gradio as gr
# gradio可用颜色列表 # gradio可用颜色列表
# gr.themes.utils.colors.slate (石板色)
# slate # gr.themes.utils.colors.gray (灰色)
# gray # gr.themes.utils.colors.zinc (锌色)
# zinc # gr.themes.utils.colors.neutral (中性色)
# neutral # gr.themes.utils.colors.stone (石头色)
# stone # gr.themes.utils.colors.red (红色)
# red # gr.themes.utils.colors.orange (橙色)
# orange # gr.themes.utils.colors.amber (琥珀色)
# amber # gr.themes.utils.colors.yellow (黄色)
# yellow # gr.themes.utils.colors.lime (酸橙色)
# lime # gr.themes.utils.colors.green (绿色)
# green # gr.themes.utils.colors.emerald (祖母绿)
# emerald # gr.themes.utils.colors.teal (青蓝色)
# teal # gr.themes.utils.colors.cyan (青色)
# cyan # gr.themes.utils.colors.sky (天蓝色)
# sky # gr.themes.utils.colors.blue (蓝色)
# blue # gr.themes.utils.colors.indigo (靛蓝色)
# indigo # gr.themes.utils.colors.violet (紫罗兰色)
# violet # gr.themes.utils.colors.purple (紫色)
# purple # gr.themes.utils.colors.fuchsia (洋红色)
# fuchsia # gr.themes.utils.colors.pink (粉红色)
# pink # gr.themes.utils.colors.rose (玫瑰色)
# rose
def adjust_theme(): def adjust_theme():
try: try: