StreamDimens

data class StreamDimens(val channelItemVerticalPadding: Dp, val channelItemHorizontalPadding: Dp, val channelAvatarSize: Dp, val selectedChannelMenuUserItemWidth: Dp, val selectedChannelMenuUserItemHorizontalPadding: Dp, val selectedChannelMenuUserItemAvatarSize: Dp, val attachmentsContentImageWidth: Dp, val attachmentsContentGiphyWidth: Dp, val attachmentsContentGiphyHeight: Dp, val attachmentsContentLinkWidth: Dp, val attachmentsContentFileWidth: Dp, val attachmentsContentFileUploadWidth: Dp, val attachmentsContentUnsupportedWidth: Dp, val threadSeparatorVerticalPadding: Dp, val threadSeparatorTextVerticalPadding: Dp, val messageOptionsItemHeight: Dp, val suggestionListMaxHeight: Dp, val suggestionListPadding: Dp, val suggestionListElevation: Dp, val mentionSuggestionItemHorizontalPadding: Dp, val mentionSuggestionItemVerticalPadding: Dp, val mentionSuggestionItemAvatarSize: Dp, val commandSuggestionItemHorizontalPadding: Dp, val commandSuggestionItemVerticalPadding: Dp, val commandSuggestionItemIconSize: Dp, val threadParticipantItemSize: Dp, val userReactionsMaxHeight: Dp, val userReactionItemWidth: Dp, val userReactionItemAvatarSize: Dp, val userReactionItemIconSize: Dp, val reactionOptionItemIconSize: Dp, val headerElevation: Dp, val messageItemMaxWidth: Dp, val quotedMessageTextVerticalPadding: Dp, val quotedMessageTextHorizontalPadding: Dp, val quotedMessageAttachmentPreviewSize: Dp, val quotedMessageAttachmentTopPadding: Dp, val quotedMessageAttachmentBottomPadding: Dp, val quotedMessageAttachmentStartPadding: Dp, val quotedMessageAttachmentEndPadding: Dp, val groupAvatarInitialsXOffset: Dp, val groupAvatarInitialsYOffset: Dp, val attachmentsContentImageMaxHeight: Dp, val attachmentsContentGiphyMaxWidth: Dp = attachmentsContentGiphyWidth, val attachmentsContentGiphyMaxHeight: Dp = attachmentsContentGiphyHeight, val attachmentsContentVideoMaxHeight: Dp, val attachmentsContentMediaGridSpacing: Dp, val attachmentsContentVideoWidth: Dp, val attachmentsContentGroupPreviewWidth: Dp, val attachmentsContentGroupPreviewHeight: Dp)

Contains all the dimens we provide for our components.

Parameters

channelItemVerticalPadding

The vertical content padding inside channel list item.

channelItemHorizontalPadding

The horizontal content padding inside channel list item.

channelAvatarSize

The size of channel avatar.

selectedChannelMenuUserItemWidth

The width of a member tile in the selected channel menu.

selectedChannelMenuUserItemHorizontalPadding

The padding inside a member tile in the selected channel menu.

selectedChannelMenuUserItemAvatarSize

The size of a member avatar in the selected channel menu.

attachmentsContentImageWidth

The width of image attachments in the message list.

attachmentsContentGiphyWidth

The with of Giphy attachments in the message list.

attachmentsContentGiphyHeight

The height of Giphy attachments in the message list.

attachmentsContentLinkWidth

The with of link attachments in the message list.

attachmentsContentFileWidth

The width of file attachments in the message list.

attachmentsContentFileUploadWidth

The width of uploading file attachments in the message list.

attachmentsContentUnsupportedWidth

The width of unsupported attachments in the message list.

threadSeparatorVerticalPadding

The vertical content padding inside thread separator item.

threadSeparatorTextVerticalPadding

The vertical padding inside thread separator text.

messageOptionsItemHeight

The height of a message option item.

suggestionListMaxHeight

The maximum height of the suggestion list popup.

suggestionListPadding

The outer padding of the suggestion list popup.

suggestionListElevation

THe elevation of the suggestion list popup.

mentionSuggestionItemHorizontalPadding

The horizontal content padding inside mention list item.

mentionSuggestionItemVerticalPadding

The vertical content padding inside mention list item.

mentionSuggestionItemAvatarSize

The size of a channel avatar in the suggestion list popup.

commandSuggestionItemHorizontalPadding

The horizontal content padding inside command list item.

commandSuggestionItemVerticalPadding

The vertical content padding inside command list item.

commandSuggestionItemIconSize

The size of a command icon in the suggestion list popup.

threadParticipantItemSize

The size of thread participant avatar items.

userReactionsMaxHeight

The max height of the message reactions section when we click on message reactions.

userReactionItemWidth

The width of user reaction item.

userReactionItemAvatarSize

The size of a user avatar in the user reaction item.

userReactionItemIconSize

The size of a reaction icon in the user reaction item.

reactionOptionItemIconSize

The size of a reaction option icon in the reaction options menu.

headerElevation

The elevation of the headers, such as the ones appearing on the Channel or Message screens.

messageItemMaxWidth

The max width of message items inside message list.

quotedMessageTextVerticalPadding

The vertical padding of text inside quoted message.

quotedMessageTextHorizontalPadding

The horizontal padding of text inside quoted message.

quotedMessageAttachmentPreviewSize

The size of the quoted message attachment preview.

quotedMessageAttachmentTopPadding

The top padding of the quoted message attachment preview.

quotedMessageAttachmentBottomPadding

The bottom padding of the quoted message attachment preview.

quotedMessageAttachmentStartPadding

The start padding of the quoted message attachment preview.

quotedMessageAttachmentEndPadding

The end padding of the quoted message attachment preview.

groupAvatarInitialsXOffset

The x offset of the user initials inside avatar when there are more than two users.

groupAvatarInitialsYOffset

The y offset of the user initials inside avatar when there are more than two users.

attachmentsContentImageMaxHeight

The maximum height an image attachment will expand to while automatically re-sizing itself in order to obey its aspect ratio. re-sizing itself in order to obey its aspect ratio.

attachmentsContentGiphyMaxWidth

The maximum width a Giphy attachment will expand to while automatically re-sizing itself in order to follow its aspect ratio.

attachmentsContentGiphyMaxHeight

The maximum height a Giphy attachment will expand to while automatically re-sizing itself in order to follow its aspect ratio. re-sizing itself in order to obey its aspect ratio.

attachmentsContentVideoMaxHeight

The maximum height video attachment will expand to while automatically re-sizing itself in order to obey its aspect ratio.

attachmentsContentMediaGridSpacing

The spacing between media preview tiles in the message list.

attachmentsContentVideoWidth

The width of media attachment previews in the message list.

attachmentsContentGroupPreviewWidth

The width of the container displaying media previews tiled in a group in the message list.

attachmentsContentGroupPreviewHeight

The height of the container displaying media previews tiled in a group in the message list.

Constructors

Link copied to clipboard
constructor(channelItemVerticalPadding: Dp, channelItemHorizontalPadding: Dp, channelAvatarSize: Dp, selectedChannelMenuUserItemWidth: Dp, selectedChannelMenuUserItemHorizontalPadding: Dp, selectedChannelMenuUserItemAvatarSize: Dp, attachmentsContentImageWidth: Dp, attachmentsContentGiphyWidth: Dp, attachmentsContentGiphyHeight: Dp, attachmentsContentLinkWidth: Dp, attachmentsContentFileWidth: Dp, attachmentsContentFileUploadWidth: Dp, attachmentsContentUnsupportedWidth: Dp, threadSeparatorVerticalPadding: Dp, threadSeparatorTextVerticalPadding: Dp, messageOptionsItemHeight: Dp, suggestionListMaxHeight: Dp, suggestionListPadding: Dp, suggestionListElevation: Dp, mentionSuggestionItemHorizontalPadding: Dp, mentionSuggestionItemVerticalPadding: Dp, mentionSuggestionItemAvatarSize: Dp, commandSuggestionItemHorizontalPadding: Dp, commandSuggestionItemVerticalPadding: Dp, commandSuggestionItemIconSize: Dp, threadParticipantItemSize: Dp, userReactionsMaxHeight: Dp, userReactionItemWidth: Dp, userReactionItemAvatarSize: Dp, userReactionItemIconSize: Dp, reactionOptionItemIconSize: Dp, headerElevation: Dp, messageItemMaxWidth: Dp, quotedMessageTextVerticalPadding: Dp, quotedMessageTextHorizontalPadding: Dp, quotedMessageAttachmentPreviewSize: Dp, quotedMessageAttachmentTopPadding: Dp, quotedMessageAttachmentBottomPadding: Dp, quotedMessageAttachmentStartPadding: Dp, quotedMessageAttachmentEndPadding: Dp, groupAvatarInitialsXOffset: Dp, groupAvatarInitialsYOffset: Dp, attachmentsContentImageMaxHeight: Dp, attachmentsContentGiphyMaxWidth: Dp = attachmentsContentGiphyWidth, attachmentsContentGiphyMaxHeight: Dp = attachmentsContentGiphyHeight, attachmentsContentVideoMaxHeight: Dp, attachmentsContentMediaGridSpacing: Dp, attachmentsContentVideoWidth: Dp, attachmentsContentGroupPreviewWidth: Dp, attachmentsContentGroupPreviewHeight: Dp)

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