Spaces:
Sleeping
Sleeping
Updating theme icon
Browse files
app.py
CHANGED
|
@@ -26,8 +26,11 @@ with lang_col:
|
|
| 26 |
)
|
| 27 |
|
| 28 |
with theme_col:
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# ββ Theme Colors βββββββββββββββββββββββββββββ
|
| 33 |
colors, ace_theme = apply_theme()
|
|
|
|
| 26 |
)
|
| 27 |
|
| 28 |
with theme_col:
|
| 29 |
+
is_dark = st.session_state.dark_mode
|
| 30 |
+
toggle = st.button("π Dark Mode" if not is_dark else "βοΈ Light Mode")
|
| 31 |
+
if toggle:
|
| 32 |
+
st.session_state.dark_mode = not st.session_state.dark_mode
|
| 33 |
+
st.rerun()
|
| 34 |
|
| 35 |
# ββ Theme Colors βββββββββββββββββββββββββββββ
|
| 36 |
colors, ace_theme = apply_theme()
|