StreamColors

data class StreamColors(val textHighEmphasis: Color, val textHighEmphasisInverse: Color, val textLowEmphasis: Color, val disabled: Color, val borders: Color, val inputBackground: Color, val appBackground: Color, val barsBackground: Color, val linkBackground: Color, val overlay: Color, val overlayDark: Color, val primaryAccent: Color, val errorAccent: Color, val infoAccent: Color, val highlight: Color, val ownMessagesBackground: Color, val otherMessagesBackground: Color, val deletedMessagesBackground: Color, val giphyMessageBackground: Color, val threadSeparatorGradientStart: Color, val threadSeparatorGradientEnd: Color, val ownMessageText: Color = textHighEmphasis, val otherMessageText: Color = textHighEmphasis, val imageBackgroundMessageList: Color, val imageBackgroundMediaGalleryPicker: Color, val videoBackgroundMessageList: Color, val videoBackgroundMediaGalleryPicker: Color, val showMoreOverlay: Color, val showMoreCountText: Color, val ownMessageQuotedBackground: Color = otherMessagesBackground, val otherMessageQuotedBackground: Color = ownMessagesBackground, val ownMessageQuotedText: Color = textHighEmphasis, val otherMessageQuotedText: Color = textHighEmphasis)

Contains all the colors in our palette. Each color is used for various things an can be changed to customize the app design style.

Parameters

textHighEmphasis

Used for main text and active icon status.

textHighEmphasisInverse

Used for contrasting backgrounds or elements against the main text and active icon status, providing better visibility and readability.

textLowEmphasis

Used for secondary text, default icon state, deleted messages text and datestamp background.

disabled

Used for disabled icons and empty states.

borders

Used for borders, the background of self messages, selected items, pressed state, button dividers.

inputBackground

Used for the input background, deleted messages, section headings.

appBackground

Used for the default app background and channel list item background.

barsBackground

Used for button text, top and bottom bar background and other user messages.

linkBackground

Used for the message link card background.

overlay

Used for general overlays and background when opening modals.

overlayDark

Used for the date separator background color.

primaryAccent

Used for selected icon state, call to actions, white buttons text and links.

errorAccent

Used for error text labels, notification badges and disruptive action text and icons.

infoAccent

Used for the online status.

highlight

Used for message highlights.

ownMessagesBackground

Used as a background color for the messages sent by the current user.

otherMessagesBackground

Used as a background color for the messages sent by other users.

deletedMessagesBackground

Used as a background for deleted messages.

giphyMessageBackground

Used as a background for the ephemeral giphy messages.

threadSeparatorGradientStart

Used as a start color for vertical gradient background in a thread separator.

threadSeparatorGradientEnd

Used as an end color for vertical gradient background in a thread separator.

ownMessageText

Used for message text color for the current user. textHighEmphasis by default.

otherMessageText

Used for message text color for other users. textHighEmphasis by default.

imageBackgroundMessageList

Used to set the background colour of videos inside the message list. Most visible in placeholders before the video previews are loaded.

imageBackgroundMediaGalleryPicker

Used to set the background colour of videos inside the media gallery picker in the media gallery preview screen. Most visible in placeholders before the videos previews are loaded.

showMoreOverlay

The color of the overlay displaying how many more media attachments the message contains, given it contains more than can be displayed in the message list media attachment preview.

showMoreCountText

The color of the text displaying how many more media attachments the message contains, given it contains more than can be displayed in the message list media attachment preview.

ownMessageQuotedBackground

Changes the background color of the quoted message contained in a reply sent by the current user.

otherMessageQuotedBackground

Changes the background color of the quoted message contained in a reply sent by other users.

ownMessageQuotedText

Changes the text color of the quoted message contained in a reply sent by the current user. textHighEmphasis by default.

otherMessageQuotedText

Changes the text color of the quoted message contained in a reply sent by other users. textHighEmphasis by default.

Constructors

Link copied to clipboard
constructor(textHighEmphasis: Color, textHighEmphasisInverse: Color, textLowEmphasis: Color, disabled: Color, borders: Color, inputBackground: Color, appBackground: Color, barsBackground: Color, linkBackground: Color, overlay: Color, overlayDark: Color, primaryAccent: Color, errorAccent: Color, infoAccent: Color, highlight: Color, ownMessagesBackground: Color, otherMessagesBackground: Color, deletedMessagesBackground: Color, giphyMessageBackground: Color, threadSeparatorGradientStart: Color, threadSeparatorGradientEnd: Color, ownMessageText: Color = textHighEmphasis, otherMessageText: Color = textHighEmphasis, imageBackgroundMessageList: Color, imageBackgroundMediaGalleryPicker: Color, videoBackgroundMessageList: Color, videoBackgroundMediaGalleryPicker: Color, showMoreOverlay: Color, showMoreCountText: Color, ownMessageQuotedBackground: Color = otherMessagesBackground, otherMessageQuotedBackground: Color = ownMessagesBackground, ownMessageQuotedText: Color = textHighEmphasis, otherMessageQuotedText: Color = textHighEmphasis)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard