bndl commited on
Commit
94001b8
·
1 Parent(s): 4e6a7cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -39,22 +39,24 @@ def authenticate_debug(username, password):
39
  return username == password
40
 
41
  css_styling = """#submit {background: #1eccd8}
42
- #submit {color: white}
43
- .output-image, .input-image, .image-preview {height: 250px !important}"""
44
- new_blue_color = gr.themes.Color(c50="#FFFFFF", # Dataframe background cell content - light mode only
45
- c100="#0c1538", # Text of markdown (headers) and componnet contencts
46
- c200="#000000", # Text of component headers
47
- c300="#a1c6db", # Login button when used in primary color
48
- c400="#000000", # Text of "or" objects and footer
49
- c500="#000000", # Text of component headers in light mode only
50
- c600="#e4f3fa", # Clear button (gradient between c600 and c700 + mouse over)
51
- c700="#a1c6db", # Componennt borders
52
- c800="#e4f3fa", # Background of components
53
- c900="#a1c6db", # Etiquette of components
54
- c950="#FFFFFF") # Background
 
 
55
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
56
  # primary color used for login button in dark mode
57
- osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=new_blue_color)
58
  page_title = "Alloys inverse design"
59
  favicon_path = "osiumai_favicon.ico"
60
  logo_path = "osiumai_logo.jpg"
 
39
  return username == password
40
 
41
  css_styling = """#submit {background: #1eccd8}
42
+ #submit:hover {background: #a2f1f6}
43
+ .output-image, .input-image, .image-preview {height: 250px !important}
44
+ .output-plot {height: 250px !important}"""
45
+
46
+ light_theme_colors = gr.themes.Color(c50="#e4f3fa", # Dataframe background cell content - light mode only
47
+ c100="#e4f3fa", # Top corner of clear button in light mode + markdown text in dark mode
48
+ c200="#a1c6db", # Component borders
49
+ c300="#FF00FF", #
50
+ c400="#e4f3fa", # Footer text
51
+ c500="#0c1538", # Text of component headers in light mode only
52
+ c600="#a1c6db", # Top corner of button in dark mode
53
+ c700="#475383", # Button text in light mode + component borders in dark mode
54
+ c800="#0c1538", # Markdown text in light mode
55
+ c900="#a1c6db", # Background of dataframe - dark mode
56
+ c950="#0c1538") # Background in dark mode only
57
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
58
  # primary color used for login button in dark mode
59
+ osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=light_theme_colors)
60
  page_title = "Alloys inverse design"
61
  favicon_path = "osiumai_favicon.ico"
62
  logo_path = "osiumai_logo.jpg"