bndl commited on
Commit
7700d8f
·
1 Parent(s): 0decc22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -16
app.py CHANGED
@@ -16,24 +16,20 @@ def authenticate_from_public(username, password):
16
  return authenticate(username, password, dataset_url, dataset_path)
17
 
18
 
19
- css_styling = """#submit {background: #1eccd8}
20
- #submit {color: white}
21
- .output-image, .input-image, .image-preview {height: 250px !important}"""
22
-
23
- new_blue_color = gr.themes.Color(c50="#000000", # Dataframe background cell content - light mode only
24
- c100="#0c1538", # Text of markdown (headers) and componnet contencts
25
- c200="#000000", # Text of component headers
26
- c300="#a1c6db", # Login button when used in primary color
27
- c400="#000000", # Text of "or" objects and footer
28
- c500="#000000", # Text of component headers in light mode only
29
- c600="#e4f3fa", # Clear button (gradient between c600 and c700 + mouse over)
30
- c700="#a1c6db", # Componennt borders
31
- c800="#e4f3fa", # Background of components
32
- c900="#a1c6db", # Etiquette of components
33
- c950="#FFFFFF") # Background
34
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
35
  # primary color used for login button in dark mode
36
- osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=new_blue_color)
37
  page_title = "Nanoparticles characterization"
38
  favicon_path = "osiumai_favicon.ico"
39
  logo_path = "osiumai_logo.jpg"
 
16
  return authenticate(username, password, dataset_url, dataset_path)
17
 
18
 
19
+ light_theme_colors = gr.themes.Color(c50="#e4f3fa", # Dataframe background cell content - light mode only
20
+ c100="#e4f3fa", # Top corner of clear button in light mode + markdown text in dark mode
21
+ c200="#a1c6db", # Component borders
22
+ c300="#FFFFFF", #
23
+ c400="#e4f3fa", # Footer text
24
+ c500="#0c1538", # Text of component headers in light mode only
25
+ c600="#a1c6db", # Top corner of button in dark mode
26
+ c700="#475383", # Button text in light mode + component borders in dark mode
27
+ c800="#0c1538", # Markdown text in light mode
28
+ c900="#a1c6db", # Background of dataframe - dark mode
29
+ c950="#0c1538") # Background in dark mode only
 
 
 
 
30
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
31
  # primary color used for login button in dark mode
32
+ osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=light_theme_colors)
33
  page_title = "Nanoparticles characterization"
34
  favicon_path = "osiumai_favicon.ico"
35
  logo_path = "osiumai_logo.jpg"