Skip to content

Commit 7a25d20

Browse files
Update Verso.py
1 parent fc2d670 commit 7a25d20

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

Verso.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,6 @@
77
import difflib
88
import streamlit.components.v1 as components
99

10-
# --- 🛰️ GOOGLE ANALYTICS INTEGRATION ---
11-
def inject_ga():
12-
ga_id = "G-030XWBG97P"
13-
ga_code = f"""
14-
<script async src="https://www.googletagmanager.com/gtag/js?id={ga_id}"></script>
15-
<script>
16-
window.dataLayer = window.dataLayer || [];
17-
function gtag(){{dataLayer.push(arguments);}}
18-
gtag('js', new Date());
19-
gtag('config', '{ga_id}', {{ 'debug_mode': true }});
20-
</script>
21-
"""
22-
components.html(ga_code, height=0)
23-
2410
# --- 🛠️ ACADEMIC ENGINE SETUP ---
2511
@st.cache_resource
2612
def setup_system():
@@ -309,22 +295,36 @@ def trigger_master_reset():
309295
# --- MODULE: SETTINGS ---
310296
elif choice == "⚙️ Settings":
311297
st.title("Verso Control Center")
312-
if st.button("🚨 MASTER RESET", type="primary"): trigger_master_reset()
298+
if st.button("🚨 MASTER RESET", type="primary", use_container_width=True): trigger_master_reset()
299+
300+
st.divider()
301+
313302
v_id = st.session_state.reset_counter
314303
c1, c2, c3 = st.columns(3)
304+
315305
with c1:
316-
st.write("### 📚 Academic & Audio")
306+
st.subheader("📚 Academic & Audio")
317307
st.selectbox("Alarm Tone", list(ALARM_TONES.keys()), key="selected_alarm_tone")
318308
st.slider("Font Scale", 0.8, 2.0, st.session_state.set_font, key="set_font")
309+
st.toggle("AI Audio Feedback", value=True)
310+
st.toggle("Auto-Skip Mastered Cards", value=False)
311+
st.button("🔊 Test Current Alarm", use_container_width=True)
312+
319313
with c2:
320-
st.write("### 🎨 UI Appearance")
314+
st.subheader("🎨 UI Appearance")
321315
st.color_picker("Accent Color", st.session_state.set_color, key="set_color")
322316
st.color_picker("Card Background", st.session_state.set_bg, key="set_bg")
317+
st.radio("UI Theme Mode", ["Standard", "High Contrast", "OLED Dark"], horizontal=True)
318+
st.checkbox("Show Study Balloons", value=True)
319+
st.checkbox("Enable Navigation Tooltips", value=True)
320+
323321
with c3:
324-
st.write("### 🔐 System Info")
322+
st.subheader("🔐 System Info")
325323
st.info(f"Build: 14.6.5 (vID: {v_id})")
326-
st.write("Current Settings:")
324+
st.write("Current Configuration Ledger:")
327325
st.code(f"Font: {st.session_state.set_font}x\nAccent: {st.session_state.set_color}\nBG: {st.session_state.set_bg}")
326+
st.button("📂 Export Study Session Data", use_container_width=True)
327+
st.button("☁️ Sync with GitHub Repository", use_container_width=True)
328328

329329
# --- HOME ---
330330
elif choice == "🏠 Home":

0 commit comments

Comments
 (0)