whitphx HF staff commited on
Commit
823bacf
1 Parent(s): c6ae81c

Fix preview

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -137,9 +137,9 @@ streamlit run app.py \\
137
  """)
138
 
139
 
140
- apply_theme = st.checkbox("Apply theme to this page")
 
141
 
142
- if apply_theme:
143
  def reconcile_theme_config():
144
  keys = ['primaryColor', 'backgroundColor', 'secondaryBackgroundColor', 'textColor']
145
  has_changed = False
@@ -152,8 +152,6 @@ if apply_theme:
152
 
153
  reconcile_theme_config()
154
 
155
-
156
-
157
- fragments.sample_components("body")
158
- with st.sidebar:
159
- fragments.sample_components("sidebar")
 
137
  """)
138
 
139
 
140
+ if st.checkbox("Apply theme to this page"):
141
+ st.info("Select 'Custom Theme' in the settings dialog to see the effect")
142
 
 
143
  def reconcile_theme_config():
144
  keys = ['primaryColor', 'backgroundColor', 'secondaryBackgroundColor', 'textColor']
145
  has_changed = False
 
152
 
153
  reconcile_theme_config()
154
 
155
+ fragments.sample_components("body")
156
+ with st.sidebar:
157
+ fragments.sample_components("sidebar")