|
7 | 7 | import difflib |
8 | 8 | import streamlit.components.v1 as components |
9 | 9 |
|
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 | | - |
24 | 10 | # --- 🛠️ ACADEMIC ENGINE SETUP --- |
25 | 11 | @st.cache_resource |
26 | 12 | def setup_system(): |
@@ -309,22 +295,36 @@ def trigger_master_reset(): |
309 | 295 | # --- MODULE: SETTINGS --- |
310 | 296 | elif choice == "⚙️ Settings": |
311 | 297 | 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 | + |
313 | 302 | v_id = st.session_state.reset_counter |
314 | 303 | c1, c2, c3 = st.columns(3) |
| 304 | + |
315 | 305 | with c1: |
316 | | - st.write("### 📚 Academic & Audio") |
| 306 | + st.subheader("📚 Academic & Audio") |
317 | 307 | st.selectbox("Alarm Tone", list(ALARM_TONES.keys()), key="selected_alarm_tone") |
318 | 308 | 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 | + |
319 | 313 | with c2: |
320 | | - st.write("### 🎨 UI Appearance") |
| 314 | + st.subheader("🎨 UI Appearance") |
321 | 315 | st.color_picker("Accent Color", st.session_state.set_color, key="set_color") |
322 | 316 | 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 | + |
323 | 321 | with c3: |
324 | | - st.write("### 🔐 System Info") |
| 322 | + st.subheader("🔐 System Info") |
325 | 323 | st.info(f"Build: 14.6.5 (vID: {v_id})") |
326 | | - st.write("Current Settings:") |
| 324 | + st.write("Current Configuration Ledger:") |
327 | 325 | 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) |
328 | 328 |
|
329 | 329 | # --- HOME --- |
330 | 330 | elif choice == "🏠 Home": |
|
0 commit comments