diff --git a/app.py b/app.py index 9cfa3af2..7248caaa 100644 --- a/app.py +++ b/app.py @@ -36,17 +36,17 @@ def _theme_tokens(theme_mode: str) -> dict[str, str]: if theme_mode == "dark": return { "ink": "#E5EEF8", - "muted": "#B8C6D8", - "border": "#38506B", - "panel": "rgba(17,24,39,0.84)", - "panel_strong": "#121A2C", + "muted": "#9CA3AF", + "border": "#4B4B52", + "panel": "rgba(47,47,52,0.84)", + "panel_strong": "#2A2A2F", "accent": "#1597A8", "accent_strong": "#0F6E86", "gold": "#F59E0B", - "bg_top": "#0A1422", - "bg_bottom": "#132235", - "sidebar_top": "#020817", - "sidebar_bottom": "#0D1727", + "bg_top": "#36363B", + "bg_bottom": "#36363B", + "sidebar_top": "rgba(28,26,26,0.92)", + "sidebar_bottom": "rgba(28,26,26,0.85)", "sidebar_text": "#E2E8F0", "sidebar_muted": "#9FB0C7", "metric_bg": "linear-gradient(180deg, rgba(21,30,48,0.92) 0%, rgba(17,24,39,0.88) 100%)", @@ -59,8 +59,8 @@ def _theme_tokens(theme_mode: str) -> dict[str, str]: "status_text": "#D5E1F0", "disabled_bg": "#314359", "disabled_ink": "#D6E0EB", - "input_bg": "rgba(18,29,46,0.92)", - "input_border": "#4A607B", + "input_bg": "rgba(54,54,59,0.95)", + "input_border": "#4B4B52", "hero_start": "rgba(16,24,38,0.97)", "hero_overlay": "rgba(245,158,11,0.14)", "hero_end": "rgba(35,31,34,0.92)", @@ -184,6 +184,11 @@ def _theme_tokens(theme_mode: str) -> dict[str, str]: st.markdown( """ + """, + unsafe_allow_html=True, +) + +# --- FORCE DROPDOWN STYLING OVERRIDE --- +# Use hardcoded colors based on current theme +theme_for_dropdowns = "dark" if theme_mode == "dark" else "light" +dropdown_bg = "rgba(54,54,59,0.95)" if theme_for_dropdowns == "dark" else "#FAFBFC" +dropdown_panel = "rgba(47,47,52,0.84)" if theme_for_dropdowns == "dark" else "#FFFFFF" +dropdown_ink = "#E5EEF8" if theme_for_dropdowns == "dark" else "#0F172A" + +st.markdown( + f""" + + """, + unsafe_allow_html=True, +) + def _theme_option_label(mode: str) -> str: return {