Spaces:
Sleeping
Sleeping
Fixing bug
Browse files
app.py
CHANGED
|
@@ -11,15 +11,8 @@ st.set_page_config(page_title="Pro Code Playground", page_icon="π»", layout="w
|
|
| 11 |
init_session_state()
|
| 12 |
|
| 13 |
# Theme Toggle
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
options=["π", "π"],
|
| 17 |
-
index=0 if st.session_state.theme == "light" else 1,
|
| 18 |
-
horizontal=True,
|
| 19 |
-
label_visibility="collapsed" # Hides label to keep UI clean
|
| 20 |
-
)
|
| 21 |
-
|
| 22 |
-
st.session_state.theme = "light" if theme_option == "π" else "dark"
|
| 23 |
apply_theme(st.session_state.theme)
|
| 24 |
|
| 25 |
|
|
|
|
| 11 |
init_session_state()
|
| 12 |
|
| 13 |
# Theme Toggle
|
| 14 |
+
theme_choice = st.radio("π¨ Theme", options=["βοΈ", "π"], horizontal=True, label_visibility="collapsed")
|
| 15 |
+
st.session_state.dark_mode = (theme_choice == "π")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
apply_theme(st.session_state.theme)
|
| 17 |
|
| 18 |
|