Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions TalkHeal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import streamlit as st

from auth.auth_utils import init_db
from components.login_page import show_login_page
from core.utils import save_conversations, load_conversations,set_authenticated_user
Expand All @@ -7,6 +8,26 @@

st.set_page_config(page_title="TalkHeal", page_icon="πŸ’¬", layout="wide")

# --- Dark Mode Styles ---
if st.session_state.get('dark_mode', False):
st.markdown("""
<style>
body, .main, .stApp, .css-1d391kg { background-color: #1E1E1E; color: #FFFFFF; }
.stButton>button { background-color: #444444; color: white; }
.stTextInput>div>input, .stSelectbox>div>div>div { background-color: #333333; color: white; }
.stMarkdown, .stExpander { color: #FFFFFF; }
</style>
""", unsafe_allow_html=True)
else:
st.markdown("""
<style>
body, .main, .stApp, .css-1d391kg { background-color: #FFFFFF; color: #000000; }
.stButton>button { background-color: #DDDDDD; color: black; }
.stTextInput>div>input, .stSelectbox>div>div>div { background-color: #FFFFFF; color: black; }
.stMarkdown, .stExpander { color: #000000; }
</style>
""", unsafe_allow_html=True)

# --- DB Initialization ---
if "db_initialized" not in st.session_state:
init_db()
Expand Down