Hello 👋 How can we help?

Change the color scheme of your chat widget

You can use one of our predefined themes or configure your chat appearance by yourself!
Written by Andrew
Updated 2 weeks ago

To change how a chat screen looks like, you can use one of the three methods. They will return the instance of HCSTheme, which you can configure in any way you want.

HelpCrunch.h
+ (HCSTheme *)currentTheme;
+ (HCSTheme *)darkTheme;
+ (HCSTheme *)defaultTheme;

Default theme:

Dark theme:

After you make all necessary changes you want, use + (void)bindTheme:(HCSTheme *)theme; to apply your custom theme to the SDK. For instance:

ObjC:

HCSTheme *theme = [HelpCrunch defaultTheme];
theme.messageDateColor = [UIColor redColor];
[HelpCrunch bindTheme:theme];

Swift:

let theme = HelpCrunch.defaultTheme()!
theme.messageDateColor = UIColor.red
HelpCrunch.bindTheme(theme)

Did this answer your question?