CustomTheme
public struct CustomTheme : Theme
A custom theme for the Kindly Chat UI. Only non-nil colors override the default or API theme.
Pass an instance to KindlySDK/setCustomTheme(_:) to apply.
-
Declaration
Swift
public var background: UIColor? -
Declaration
Swift
public var botMessageBackground: UIColor? -
Declaration
Swift
public var botMessageText: UIColor? -
Declaration
Swift
public var buttonBackground: UIColor? -
Declaration
Swift
public var buttonOutline: UIColor? -
Declaration
Swift
public var buttonText: UIColor? -
Declaration
Swift
public var chatLogElements: UIColor? -
Declaration
Swift
public var navBarBackground: UIColor? -
Declaration
Swift
public var navBarText: UIColor? -
Declaration
Swift
public var inputBackground: UIColor? -
Declaration
Swift
public var inputText: UIColor? -
Declaration
Swift
public var userMessageBackground: UIColor? -
Declaration
Swift
public var userMessageText: UIColor?
-
Declaration
Swift
public var buttonSelectedBackground: UIColor? -
Declaration
Swift
public var defaultShadow: UIColor? -
Declaration
Swift
public var inputCursor: UIColor? -
Declaration
Swift
public var maintenanceHeaderBackground: UIColor? -
init(background:botMessageBackground: botMessageText: buttonBackground: buttonOutline: buttonText: chatLogElements: navBarBackground: navBarText: inputBackground: inputText: userMessageBackground: userMessageText: buttonSelectedBackground: defaultShadow: inputCursor: maintenanceHeaderBackground: ) Undocumented
Declaration
Swift
public init( // API-defined colors background: UIColor? = nil, botMessageBackground: UIColor? = nil, botMessageText: UIColor? = nil, buttonBackground: UIColor? = nil, buttonOutline: UIColor? = nil, buttonText: UIColor? = nil, chatLogElements: UIColor? = nil, navBarBackground: UIColor? = nil, navBarText: UIColor? = nil, inputBackground: UIColor? = nil, inputText: UIColor? = nil, userMessageBackground: UIColor? = nil, userMessageText: UIColor? = nil, // Manually defined colors buttonSelectedBackground: UIColor? = nil, defaultShadow: UIColor? = nil, inputCursor: UIColor? = nil, maintenanceHeaderBackground: UIColor? = nil )
View on GitHub