Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	界面色彩自定义
Browse files
    	
        theme.py
    CHANGED
    
    | 
         @@ -1,29 +1,28 @@ 
     | 
|
| 1 | 
         
             
            import gradio as gr 
         
     | 
| 2 | 
         | 
| 3 | 
         
             
            # gradio可用颜色列表
         
     | 
| 4 | 
         
            -
             
     | 
| 5 | 
         
            -
            #  
     | 
| 6 | 
         
            -
            #  
     | 
| 7 | 
         
            -
            #  
     | 
| 8 | 
         
            -
            #  
     | 
| 9 | 
         
            -
            #  
     | 
| 10 | 
         
            -
            #  
     | 
| 11 | 
         
            -
            #  
     | 
| 12 | 
         
            -
            #  
     | 
| 13 | 
         
            -
            #  
     | 
| 14 | 
         
            -
            #  
     | 
| 15 | 
         
            -
            #  
     | 
| 16 | 
         
            -
            #  
     | 
| 17 | 
         
            -
            #  
     | 
| 18 | 
         
            -
            #  
     | 
| 19 | 
         
            -
            #  
     | 
| 20 | 
         
            -
            #  
     | 
| 21 | 
         
            -
            #  
     | 
| 22 | 
         
            -
            #  
     | 
| 23 | 
         
            -
            #  
     | 
| 24 | 
         
            -
            #  
     | 
| 25 | 
         
            -
            #  
     | 
| 26 | 
         
            -
            # rose
         
     | 
| 27 | 
         | 
| 28 | 
         
             
            def adjust_theme():
         
     | 
| 29 | 
         
             
                try: 
         
     | 
| 
         | 
|
| 1 | 
         
             
            import gradio as gr 
         
     | 
| 2 | 
         | 
| 3 | 
         
             
            # gradio可用颜色列表
         
     | 
| 4 | 
         
            +
            # gr.themes.utils.colors.slate (石板色)
         
     | 
| 5 | 
         
            +
            # gr.themes.utils.colors.gray (灰色)
         
     | 
| 6 | 
         
            +
            # gr.themes.utils.colors.zinc (锌色)
         
     | 
| 7 | 
         
            +
            # gr.themes.utils.colors.neutral (中性色)
         
     | 
| 8 | 
         
            +
            # gr.themes.utils.colors.stone (石头色)
         
     | 
| 9 | 
         
            +
            # gr.themes.utils.colors.red (红色)
         
     | 
| 10 | 
         
            +
            # gr.themes.utils.colors.orange (橙色)
         
     | 
| 11 | 
         
            +
            # gr.themes.utils.colors.amber (琥珀色)
         
     | 
| 12 | 
         
            +
            # gr.themes.utils.colors.yellow (黄色)
         
     | 
| 13 | 
         
            +
            # gr.themes.utils.colors.lime (酸橙色)
         
     | 
| 14 | 
         
            +
            # gr.themes.utils.colors.green (绿色)
         
     | 
| 15 | 
         
            +
            # gr.themes.utils.colors.emerald (祖母绿)
         
     | 
| 16 | 
         
            +
            # gr.themes.utils.colors.teal (青蓝色)
         
     | 
| 17 | 
         
            +
            # gr.themes.utils.colors.cyan (青色)
         
     | 
| 18 | 
         
            +
            # gr.themes.utils.colors.sky (天蓝色)
         
     | 
| 19 | 
         
            +
            # gr.themes.utils.colors.blue (蓝色)
         
     | 
| 20 | 
         
            +
            # gr.themes.utils.colors.indigo (靛蓝色)
         
     | 
| 21 | 
         
            +
            # gr.themes.utils.colors.violet (紫罗兰色)
         
     | 
| 22 | 
         
            +
            # gr.themes.utils.colors.purple (紫色)
         
     | 
| 23 | 
         
            +
            # gr.themes.utils.colors.fuchsia (洋红色)
         
     | 
| 24 | 
         
            +
            # gr.themes.utils.colors.pink (粉红色)
         
     | 
| 25 | 
         
            +
            # gr.themes.utils.colors.rose (玫瑰色)
         
     | 
| 
         | 
|
| 26 | 
         | 
| 27 | 
         
             
            def adjust_theme():
         
     | 
| 28 | 
         
             
                try: 
         
     |