InteractiveScrollbarDefaults


Contains the default values used by Modifier.interactiveScrollbar.

Summary

Public functions

InteractiveScrollbarColors

Creates an InteractiveScrollbarColors that represents the default colors used in an interactive scrollbar.

Cmn
InteractiveScrollbarColors
@Composable
colors(
    thumbColor: Color,
    hoveredThumbColor: Color,
    pressedThumbColor: Color,
    draggedThumbColor: Color,
    trackColor: Color
)

Creates an InteractiveScrollbarColors that represents the default colors used in an interactive scrollbar.

Cmn

Public properties

Dp

Default cross axis inset for the scrollbar track.

Cmn
Float

Alpha value applied to the scrollbar thumb when it is hovered.

Cmn
Dp

Default main axis inset for the scrollbar track.

Cmn
Float

Alpha value applied to the scrollbar thumb when it is pressed or dragged.

Cmn
Dp

Default thickness for an interactive scrollbar thumb.

Cmn
Int

Default delay before the scrollbar fades out in milliseconds.

Cmn
Int

Default duration of the fade animation in milliseconds.

Cmn
Float

Default maximum length of the scrollbar thumb as a fraction of the track length.

Cmn
Dp

Default minimum length of the scrollbar thumb.

Cmn
Float

Alpha value applied to the scrollbar thumb when it is idle.

Cmn

Public functions

colors

@Composable
fun colors(): InteractiveScrollbarColors

Creates an InteractiveScrollbarColors that represents the default colors used in an interactive scrollbar.

colors

@Composable
fun colors(
    thumbColor: Color = Color.Unspecified,
    hoveredThumbColor: Color = Color.Unspecified,
    pressedThumbColor: Color = Color.Unspecified,
    draggedThumbColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified
): InteractiveScrollbarColors

Creates an InteractiveScrollbarColors that represents the default colors used in an interactive scrollbar.

Parameters
thumbColor: Color = Color.Unspecified

the default color of the scrollbar thumb when idle.

hoveredThumbColor: Color = Color.Unspecified

the color of the scrollbar thumb when hovered.

pressedThumbColor: Color = Color.Unspecified

the color of the scrollbar thumb when pressed.

draggedThumbColor: Color = Color.Unspecified

the color of the scrollbar thumb when actively dragged.

trackColor: Color = Color.Unspecified

the color of the scrollbar track.

Public properties

CrossAxisTrackInset

val CrossAxisTrackInset: Dp

Default cross axis inset for the scrollbar track.

HoveredThumbOpacity

val HoveredThumbOpacity: Float

Alpha value applied to the scrollbar thumb when it is hovered.

MainAxisTrackInset

val MainAxisTrackInset: Dp

Default main axis inset for the scrollbar track.

PressedThumbOpacity

val PressedThumbOpacity: Float

Alpha value applied to the scrollbar thumb when it is pressed or dragged.

Thickness

val Thickness: Dp

Default thickness for an interactive scrollbar thumb.

ThumbFadeDelayMillis

val ThumbFadeDelayMillis: Int

Default delay before the scrollbar fades out in milliseconds.

ThumbFadeDurationMillis

val ThumbFadeDurationMillis: Int

Default duration of the fade animation in milliseconds.

ThumbMaxLengthFraction

val ThumbMaxLengthFraction: Float

Default maximum length of the scrollbar thumb as a fraction of the track length.

ThumbMinLength

val ThumbMinLength: Dp

Default minimum length of the scrollbar thumb.

ThumbOpacity

val ThumbOpacity: Float

Alpha value applied to the scrollbar thumb when it is idle.