Theme

class Theme

A class for customizing the visual appearance (theming) of the Spree AI SDK's UI components.

It provides two constructors for compatibility with both Jetpack Compose and the traditional Android View system.

Constructors

Link copied to clipboard
constructor(primaryColor: Color = Color.Unspecified, fontFamily: FontFamily? = null)

Creates a theme using Jetpack Compose types.

constructor(@ColorInt primaryColor: Int? = null, typeface: Typeface? = null)

Creates a theme using traditional Android View types.

Properties

Link copied to clipboard

The font family for use with Jetpack Compose text elements.

Link copied to clipboard

The primary color defined as a Jetpack Compose Color.

Link copied to clipboard

The primary color as an ARGB integer, for use with the traditional Android View system. Getting this value will convert the Compose primaryColor to an Int. Setting this value will create a Compose Color and update primaryColor.

Link copied to clipboard

The typeface for use with the traditional Android View system.