Spaces:
Sleeping
Sleeping
Update app.py
#3
by
BulatF
- opened
app.py
CHANGED
@@ -1,5 +1,27 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
ss = st.session_state
|
4 |
|
5 |
GC_NAMES = ['Hydrogen sulphide',
|
|
|
1 |
import streamlit as st
|
2 |
+
# Set Streamlit configuration to use the dark theme
|
3 |
+
def set_theme():
|
4 |
+
# Create a custom dark theme using Streamlit's theming API
|
5 |
+
# Adjust the color values according to your preference
|
6 |
+
primaryColor = "#E694FF"
|
7 |
+
backgroundColor = "#00172B"
|
8 |
+
secondaryBackgroundColor = "#0083B8"
|
9 |
+
textColor = "#FFFFFF"
|
10 |
+
font = "sans serif"
|
11 |
|
12 |
+
# Apply the theme settings
|
13 |
+
st.set_page_config(
|
14 |
+
theme={
|
15 |
+
'primaryColor': primaryColor,
|
16 |
+
'backgroundColor': backgroundColor,
|
17 |
+
'secondaryBackgroundColor': secondaryBackgroundColor,
|
18 |
+
'textColor': textColor,
|
19 |
+
'font': font
|
20 |
+
}
|
21 |
+
)
|
22 |
+
|
23 |
+
# Call the function to set the theme
|
24 |
+
set_theme()
|
25 |
ss = st.session_state
|
26 |
|
27 |
GC_NAMES = ['Hydrogen sulphide',
|