BulatF commited on
Commit
df39da2
1 Parent(s): c7f5617

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -6
app.py CHANGED
@@ -1,14 +1,25 @@
1
  import streamlit as st
2
- # Set the configuration for the dark theme
3
  def set_theme():
 
 
 
 
 
 
 
 
 
4
  st.set_page_config(
5
- page_title='PVT Gas', # Title of your app
6
- layout='wide', # Can be "wide" or "centered"
 
 
 
 
 
7
  )
8
 
9
- # Use Streamlit's theming options to set the default to dark
10
- st.write('<style>body { color: white; background-color: #0E1117; }</style>', unsafe_allow_html=True)
11
-
12
  # Call the function to set the theme
13
  set_theme()
14
  ss = st.session_state
 
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