Conversation

You can customize the colors and properties of the  Conversation  window to match the look and feel of your application.

Conversation

Copied//Get baseTheme using ZohoSalesIQ.Theme.baseTheme
let customTheme = ZohoSalesIQ.Theme.baseTheme

//Customize properties in the customTheme instance as desired
customTheme.Conversation.backgroundColor = UIColor.white
customTheme.Conversation.ListItem.backgroundColor = UIColor.white
customTheme.Conversation.ListItem.titleTextColor = UIColor.black
customTheme.Conversation.ListItem.timeTextColor = UIColor.lightGray
customTheme.Conversation.ListItem.subtitleTextColor = UIColor.gray
customTheme.Conversation.ListItem.timerTextColor = UIColor.orange
customTheme.Conversation.ListItem.timerIconColor = UIColor.orange
customTheme.Conversation.ListItem.UnreadBadge.backgroundColor = UIColor.red
customTheme.Conversation.ListItem.UnreadBadge.textColor = UIColor.white
customTheme.Conversation.ListItem.UnreadBadge.borderColor = UIColor.white
customTheme.Conversation.ListItem.UnreadBadge.borderWidth = 1
customTheme.Conversation.ListItem.separatorColor = UIColor.lightGray
customTheme.Conversation.ListItem.openBadgeTextColor = UIColor.white
customTheme.Conversation.ListItem.openBadgeBorderColor = UIColor.white
customTheme.Conversation.ListItem.openBadgeBackgroundColor = UIColor.green

//Set the customized theme using ZohoSalesIQ.Theme.setTheme API
ZohoSalesIQ.Theme.setTheme(theme: customTheme)