vsj0702 commited on
Commit
7e8bdd4
Β·
verified Β·
1 Parent(s): 1ddef69

Fixing bug

Browse files
Files changed (1) hide show
  1. app.py +2 -9
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
- theme_option = st.radio(
15
- "🎨 Theme",
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