ThumbnailBarColors

class ThumbnailBarColors(val backgroundColor: Color = Color.Unspecified, val borderColor: Color = Color.Unspecified, val thumbnailBorderColor: Color = Color.Unspecified, val selectedThumbnailBorderColor: Color = Color.Unspecified, val scrollableThumbnailBorderColor: Color = Color.Unspecified, val scrollableSelectedThumbnailBorderColor: Color = Color.Unspecified)

Color scheme for the thumbnail bar, PdfThumbnailBar. Its public color setters, such as PdfThumbnailBar.setBackgroundColor(), take precedence once they are called.

A color left Color.Unspecified takes its Material 3 role from the scheme's UiColorScheme.material when the scheme is resolved.

Constructors

Link copied to clipboard
constructor(backgroundColor: Color = Color.Unspecified, borderColor: Color = Color.Unspecified, thumbnailBorderColor: Color = Color.Unspecified, selectedThumbnailBorderColor: Color = Color.Unspecified, scrollableThumbnailBorderColor: Color = Color.Unspecified, scrollableSelectedThumbnailBorderColor: Color = Color.Unspecified)

Properties

Link copied to clipboard

Background of the floating and pinned bar; surfaceContainer by default. The scrollable bar doesn't use it: it is transparent unless PdfThumbnailBar.setBackgroundColor() gives it a background.

Link copied to clipboard

Separator along the top of the pinned bar; outlineVariant by default.

Link copied to clipboard

Border around the current page's thumbnail in the scrollable bar. Defaults to selectedThumbnailBorderColor.

Link copied to clipboard

Border around each thumbnail in the scrollable bar. Defaults to thumbnailBorderColor.

Link copied to clipboard

Border around the current page's thumbnail in the floating and pinned bar; primary by default.

Link copied to clipboard

Border around each thumbnail in the floating and pinned bar; outline by default.

Functions

Link copied to clipboard
fun copy(backgroundColor: Color = this.backgroundColor, borderColor: Color = this.borderColor, thumbnailBorderColor: Color = this.thumbnailBorderColor, selectedThumbnailBorderColor: Color = this.selectedThumbnailBorderColor, scrollableThumbnailBorderColor: Color = this.scrollableThumbnailBorderColor, scrollableSelectedThumbnailBorderColor: Color = this.scrollableSelectedThumbnailBorderColor): ThumbnailBarColors

Returns a copy with the given colors replaced.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two ThumbnailBarColors are equal when all their colors are.

Link copied to clipboard
open override fun hashCode(): Int

A hash of all the colors, consistent with equals.

Link copied to clipboard
open override fun toString(): String

Every color, by property name.