set Custom Theme
Sets a custom theme for the chat UI.
Parameters
theme
The custom theme to be applied.
fun setCustomTheme(background: Color? = null, botMessageBackground: Color? = null, botMessageText: Color? = null, buttonBackground: Color? = null, buttonOutline: Color? = null, buttonText: Color? = null, chatLogElements: Color? = null, headerBackground: Color? = null, headerText: Color? = null, inputBackground: Color? = null, inputText: Color? = null, userMessageBackground: Color? = null, userMessageText: Color? = null, maintenanceHeaderBackground: Color? = null)
Sets a custom theme using individual color parameters. Only specified colors (non-null) will override the default theme.
Parameters
background
Background color of the chat interface.
bot Message Background
Background color for bot message bubbles.
bot Message Text
Text color for bot messages.
button Background
Background color for buttons.
button Outline
Outline color for buttons.
button Text
Text color for buttons.
chat Log Elements
Color for chat log elements like timestamps.
header Background
Background color for the header.
header Text
Text color for the header.
input Background
Background color for the input field.
input Text
Text color for the input field.
user Message Background
Background color for user message bubbles.
user Message Text
Text color for user messages.