Customize UI Appearance
If you are using the default interface from TapTalk.io UI implementation type, you can customize the appearance of the chat UI. To do this, open your application's colors.xml or styles.xml file and override the values present in TapTalk.io library's values.xml file.
Customize Default Color Theme
To customize the chat UI's color theme, open your colors.xml file and add override following values with your own colors:
<!--TapTalk Default Colors-->
<color name="tapColorPrimaryExtraLight">@color/yourExtraLightColor</color>
<color name="tapColorPrimaryLight">@color/yourLightColor</color>
<color name="tapColorPrimary">@color/yourPrimaryLightColor</color>
<color name="tapColorPrimaryDark">@color/yourDarkColor</color>
<color name="tapColorAccent">@color/yourAccentColor</color>Note: you can override the default color values partially, but it is recommended to change all of them accordingly to make sure the color theme within the chat UI matches
Customize General Colors
The following are the values used as general component colors, present in colors.xml
<!--Light text color on dark background-->
<color name="tapColorTextLight">@color/yourLightTextColor</color>
<!--Medium text color generally used on subtitles or placeholders-->
<color name="tapColorTextMedium">@color/yourMediumTextColor</color>
<!--Dark text color on light background-->
<color name="tapColorTextDark">@color/yourDarkTextColor</color>
<!--Identifies successful actions-->
<color name="tapColorSuccess">@color/yourSuccessTextColor</color>
<!--Identifies errors or destructive actions-->
<color name="tapColorError">@color/yourErrorTextColor</color>
<!--Primary colored icons used on light background-->
<color name="tapColorPrimaryIcon">@color/yourPrimaryIconColor</color>
<!--White icons used on colored background-->
<color name="tapColorWhiteIcon">@color/yourCustomLightIconColor</color>
<!--Default color for gray icons-->
<color name="tapColorGrayIcon">@color/yourGrayIconColor</color>
<!--Default icon color for successful actions-->
<color name="tapColorSuccessIcon">@color/yourSuccessIconColor</color>
<!--Default icon color for errors or destructive actions-->
<color name="tapColorDestructiveIcon">@color/yourDestructiveIconColor</color>Customize Component Colors
The following are the values used as specific component colors, present in colors.xml.
Default Components
Chat Bubble
Text Field
Button
Switch
Popup Dialog
Unread Badge
Chat Room Page
Media Preview
Search
Default Avatar Background Color
Customize Icon Colors
To customize specific icon colors, you can override the following values in your colors.xml file.
Default Icons
Navigation Bar Icons
Room List Page Icons
New Chat Page Icons
Chat / Group Profile Page Icons
Media / Image Detail Preview Icons
Bottom Sheet Icons
Chat Room Page Icons
Location Picker Icons
Scan Result
Customize Font Style
To use your application's font resource in the chat UI, override the following values in your application's styles.xml file.
You can also override the following styles to customize specific text styles to your liking, or you you may also override their respective color value in colors.xml if you wish to change only the color of the text.
Default Font Styles
Search Bar Font Styles
Popup Dialog
Bottom Sheet Font Styles
List Section Header Font Styles
Contact List Font Styles
Room List Page Font Styles
New Chat Page Font Styles
Chat / Group Profile Page Font Styles
Media Font Styles
New Contact Page Font Styles
Gallery Picker Page Font Styles
Chat Room Page Font Styles
Location Picker Font Styles
Send Media Preview Font Styles
Image Detail Preview Font Styles
Group Chat Font Styles
Video Player Font Styles
Last updated
Was this helpful?