Spaces:
Runtime error
Runtime error
chat message in light theme has the same background and text color
#1
by
AndreRibeiro
- opened
chat message in light theme has the same background and text color
this is my solution to that:
theme = gr.Theme.from_hub("freddyaboulton/[email protected]")
theme.set(
color_accent_soft="#818eb6", # ChatBot.svelte / .message-row.panel.user-row
It took me some time to figure out the classes, and I don't like how I implemented it, but I found no other way. I'm having the same problem with items in Dropdown(), but I couldn't find how to fix it yet.
just for completeness, here's my other tweaks, but I think the others are just cosmetic:
theme.set(
color_accent_soft="#818eb6", # ChatBot.svelte / .message-row.panel.user-row
background_fill_secondary="#6272a4", # ChatBot.svelte / .message-row.panel.bot-row
button_primary_text_color="*button_secondary_text_color",
button_primary_background_fill="*button_secondary_background_fill")