setCustomTheme

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.

botMessageBackground

Background color for bot message bubbles.

botMessageText

Text color for bot messages.

buttonBackground

Background color for buttons.

buttonOutline

Outline color for buttons.

buttonText

Text color for buttons.

chatLogElements

Color for chat log elements like timestamps.

headerBackground

Background color for the header.

headerText

Text color for the header.

inputBackground

Background color for the input field.

inputText

Text color for the input field.

userMessageBackground

Background color for user message bubbles.

userMessageText

Text color for user messages.