-
@Immutable() public final class StreamColorsContains all the colors in our palette. Each color is used for various things an can be changed to customize the app design style.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamColors.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ColortextHighEmphasisprivate final ColortextHighEmphasisInverseprivate final ColortextLowEmphasisprivate final Colordisabledprivate final Colorbordersprivate final ColorinputBackgroundprivate final ColorappBackgroundprivate final ColorbarsBackgroundprivate final ColorlinkBackgroundprivate final Coloroverlayprivate final ColoroverlayDarkprivate final ColorprimaryAccentprivate final ColorerrorAccentprivate final ColorinfoAccentprivate final Colorhighlightprivate final ColorownMessagesBackgroundprivate final ColorotherMessagesBackgroundprivate final ColordeletedMessagesBackgroundprivate final ColorgiphyMessageBackgroundprivate final ColorthreadSeparatorGradientStartprivate final ColorthreadSeparatorGradientEndprivate final ColormediaShimmerBaseprivate final ColormediaShimmerHighlightsprivate final ColorownMessageTextprivate final ColorotherMessageTextprivate final ColorimageBackgroundMessageListprivate final ColorimageBackgroundMediaGalleryPickerprivate final ColorvideoBackgroundMessageListprivate final ColorvideoBackgroundMediaGalleryPickerprivate final ColorshowMoreOverlayprivate final ColorshowMoreCountTextprivate final ColorownMessageQuotedBackgroundprivate final ColorotherMessageQuotedBackgroundprivate final ColorownMessageQuotedTextprivate final ColorotherMessageQuotedText
-
Constructor Summary
Constructors Constructor Description StreamColors(Color 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 mediaShimmerBase, Color mediaShimmerHighlights, Color ownMessageText, Color otherMessageText, Color imageBackgroundMessageList, Color imageBackgroundMediaGalleryPicker, Color videoBackgroundMessageList, Color videoBackgroundMediaGalleryPicker, Color showMoreOverlay, Color showMoreCountText, Color ownMessageQuotedBackground, Color otherMessageQuotedBackground, Color ownMessageQuotedText, Color otherMessageQuotedText)
-
Method Summary
-
-
Constructor Detail
-
StreamColors
StreamColors(Color 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 mediaShimmerBase, Color mediaShimmerHighlights, Color ownMessageText, Color otherMessageText, Color imageBackgroundMessageList, Color imageBackgroundMediaGalleryPicker, Color videoBackgroundMessageList, Color videoBackgroundMediaGalleryPicker, Color showMoreOverlay, Color showMoreCountText, Color ownMessageQuotedBackground, Color otherMessageQuotedBackground, Color ownMessageQuotedText, Color otherMessageQuotedText)
- 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.otherMessageText- Used for message text color for other users.imageBackgroundMessageList- Used to set the background colour of images inside the message list.imageBackgroundMediaGalleryPicker- Used to set the background colour of images inside the media gallery picker in the media gallery preview screen.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.otherMessageQuotedText- Changes the text color of the quoted message contained in a reply sent by other users.
-
-
Method Detail
-
getTextHighEmphasis
final Color getTextHighEmphasis()
-
getTextHighEmphasisInverse
final Color getTextHighEmphasisInverse()
-
getTextLowEmphasis
final Color getTextLowEmphasis()
-
getDisabled
final Color getDisabled()
-
getBorders
final Color getBorders()
-
getInputBackground
final Color getInputBackground()
-
getAppBackground
final Color getAppBackground()
-
getBarsBackground
final Color getBarsBackground()
-
getLinkBackground
final Color getLinkBackground()
-
getOverlay
final Color getOverlay()
-
getOverlayDark
final Color getOverlayDark()
-
getPrimaryAccent
final Color getPrimaryAccent()
-
getErrorAccent
final Color getErrorAccent()
-
getInfoAccent
final Color getInfoAccent()
-
getHighlight
final Color getHighlight()
-
getOwnMessagesBackground
final Color getOwnMessagesBackground()
-
getOtherMessagesBackground
final Color getOtherMessagesBackground()
-
getDeletedMessagesBackground
final Color getDeletedMessagesBackground()
-
getGiphyMessageBackground
final Color getGiphyMessageBackground()
-
getThreadSeparatorGradientStart
final Color getThreadSeparatorGradientStart()
-
getThreadSeparatorGradientEnd
final Color getThreadSeparatorGradientEnd()
-
getMediaShimmerBase
final Color getMediaShimmerBase()
-
getMediaShimmerHighlights
final Color getMediaShimmerHighlights()
-
getOwnMessageText
final Color getOwnMessageText()
-
getOtherMessageText
final Color getOtherMessageText()
-
getImageBackgroundMessageList
final Color getImageBackgroundMessageList()
-
getImageBackgroundMediaGalleryPicker
final Color getImageBackgroundMediaGalleryPicker()
-
getVideoBackgroundMessageList
final Color getVideoBackgroundMessageList()
-
getVideoBackgroundMediaGalleryPicker
final Color getVideoBackgroundMediaGalleryPicker()
-
getShowMoreOverlay
final Color getShowMoreOverlay()
-
getShowMoreCountText
final Color getShowMoreCountText()
-
getOwnMessageQuotedBackground
final Color getOwnMessageQuotedBackground()
-
getOtherMessageQuotedBackground
final Color getOtherMessageQuotedBackground()
-
getOwnMessageQuotedText
final Color getOwnMessageQuotedText()
-
getOtherMessageQuotedText
final Color getOtherMessageQuotedText()
-
-
-
-