ThumbnailBarTheme

data class ThumbnailBarTheme(@ColorInt val backgroundColor: Int = 0xFFFFFFFF.toInt(), @ColorInt val borderColor: Int = 0xFFCCCCCC.toInt(), @ColorInt val thumbnailBorderColor: Int = 0xFF000000.toInt(), @ColorInt val thumbnailSelectedBorderColor: Int = 0xFF0066FF.toInt(), @IntRange(from = 1) val thumbnailWidth: Int = 20, @IntRange(from = 1) val thumbnailHeight: Int = 28, val usePageAspectRatio: Boolean = true, @IntRange(from = 0) val thumbnailPaddingPx: Int = 8, @IntRange(from = 0) val contentPaddingPx: Int = 16, @IntRange(from = 0) val borderSizePx: Int = 1, @IntRange(from = 0) val thumbnailBorderWidth: Int = 1, @IntRange(from = 0) val thumbnailSelectionBorderWidth: Int = 2, @IntRange(from = 0) val thumbnailMarginPx: Int = 0, val selectionBorderCornerRadiusPx: Float = 15.0f, @IntRange(from = 0) val viewPaddingPx: Int = 0, val thumbnailWidthDp: Float = 0.0f, val thumbnailHeightDp: Float = 0.0f, val selectionBorderWidthDp: Float = 0.0f, val thumbnailMarginDp: Float = 0.0f, val viewPaddingDp: Float = 0.0f, val thumbnailBorderWidthDp: Float = 0.0f, val selectionBorderCornerRadiusDp: Float = 0.0f, val floatingCornerRadiusDp: Float = 8.0f, val thumbnailCornerRadiusDp: Float = 2.0f)

Theme configuration for the thumbnail bar. Contains all visual customization properties.

Constructors

Link copied to clipboard
constructor(@ColorInt backgroundColor: Int = 0xFFFFFFFF.toInt(), @ColorInt borderColor: Int = 0xFFCCCCCC.toInt(), @ColorInt thumbnailBorderColor: Int = 0xFF000000.toInt(), @ColorInt thumbnailSelectedBorderColor: Int = 0xFF0066FF.toInt(), @IntRange(from = 1) thumbnailWidth: Int = 20, @IntRange(from = 1) thumbnailHeight: Int = 28, usePageAspectRatio: Boolean = true, @IntRange(from = 0) thumbnailPaddingPx: Int = 8, @IntRange(from = 0) contentPaddingPx: Int = 16, @IntRange(from = 0) borderSizePx: Int = 1, @IntRange(from = 0) thumbnailBorderWidth: Int = 1, @IntRange(from = 0) thumbnailSelectionBorderWidth: Int = 2, @IntRange(from = 0) thumbnailMarginPx: Int = 0, selectionBorderCornerRadiusPx: Float = 15.0f, @IntRange(from = 0) viewPaddingPx: Int = 0, thumbnailWidthDp: Float = 0.0f, thumbnailHeightDp: Float = 0.0f, selectionBorderWidthDp: Float = 0.0f, thumbnailMarginDp: Float = 0.0f, viewPaddingDp: Float = 0.0f, thumbnailBorderWidthDp: Float = 0.0f, selectionBorderCornerRadiusDp: Float = 0.0f, floatingCornerRadiusDp: Float = 8.0f, thumbnailCornerRadiusDp: Float = 2.0f)

Properties

Link copied to clipboard

Background color of the thumbnail bar.

Link copied to clipboard

Border color of the thumbnail bar container (used for the pinned mode top separator).

Link copied to clipboard

Border size in pixels (for pinned mode top separator)

Link copied to clipboard

Content padding in pixels

Link copied to clipboard

Corner radius for the floating thumbnail bar container in dp.

Link copied to clipboard

Corner radius for the selection border in dp.

Link copied to clipboard

Corner radius for the selection border in pixels (scrollable mode)

Link copied to clipboard

Selected thumbnail border width in dp (doubled). Used directly by Compose layout.

Link copied to clipboard

Border color drawn around each individual thumbnail.

Link copied to clipboard

Regular thumbnail border width in pixels

Link copied to clipboard

Regular thumbnail border width in dp.

Link copied to clipboard

Corner radius for individual (non-selected) thumbnail items in dp.

Link copied to clipboard

Height of each thumbnail in pixels.

Link copied to clipboard

Thumbnail height in dp. Used directly by Compose layout.

Link copied to clipboard

Margin around each thumbnail in dp. Used directly by Compose layout.

Link copied to clipboard

Margin around each thumbnail in pixels (scrollable mode)

Link copied to clipboard

Padding around each thumbnail in pixels (spacing between thumbnails)

Link copied to clipboard

Border color drawn around the currently selected thumbnail.

Link copied to clipboard

Selected thumbnail border width in pixels

Link copied to clipboard

Default width of each thumbnail in pixels. Ignored when usePageAspectRatio is true.

Link copied to clipboard

Thumbnail width in dp. Used directly by Compose layout.

Link copied to clipboard

Whether to use actual page aspect ratio for thumbnails

Link copied to clipboard

Edge padding for the scrollable thumbnail bar in dp.

Link copied to clipboard

Edge padding for the scrollable thumbnail bar in pixels