vsj0702 commited on
Commit
1ddef69
·
verified ·
1 Parent(s): 3934d18

Adding emoji in theme

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -11,10 +11,18 @@ 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("🎨 Theme", options=["Light", "Dark"], index=0 if st.session_state.theme == "light" else 1, horizontal=True)
15
- st.session_state.theme = "light" if theme_option == "Light" else "dark"
 
 
 
 
 
 
 
16
  apply_theme(st.session_state.theme)
17
 
 
18
  # App Header
19
  st.title("Pro Code Playground")
20
  st.markdown("Write, execute & export Python snippets, with built‑in AI assistance.")
 
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
+
26
  # App Header
27
  st.title("Pro Code Playground")
28
  st.markdown("Write, execute & export Python snippets, with built‑in AI assistance.")