// To force dark mode ThemeManager.setSessionOverride(ThemeMode.DARK)
// To force light mode ThemeManager.setSessionOverride(ThemeMode.LIGHT)
// To follow the system theme ThemeManager.setSessionOverride(ThemeMode.SYSTEM)
If you are using Jetpack Compose, wrap your Intercom Messenger UI in the IntercomTheme composable. The theme will automatically adapt based on the current theme mode:
val color = ThemeUtils.selectColorForTheme(context, "#FFFFFF", "#14161a")
Thank you, that is very helpful.
When using Intercom Android SDK 17.1.0 we aren’t able to import the ThemeManager and ThemeMode — as if the “ui” folder isn’t included in the SDK package?