vsj0702 commited on
Commit
e23907d
Β·
verified Β·
1 Parent(s): 3d8b0bc

Updating theme icon

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -26,8 +26,11 @@ with lang_col:
26
  )
27
 
28
  with theme_col:
29
- theme_choice = st.radio("Theme", options=["β˜€οΈ", "πŸŒ™"], horizontal=True, label_visibility="collapsed")
30
- st.session_state.dark_mode = (theme_choice == "πŸŒ™")
 
 
 
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()