InteractiveScrollbarColors


Represents the colors used by an interactive scrollbar in different interaction states.

Summary

Public constructors

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

Public functions

InteractiveScrollbarColors
copy(
    thumbColor: Color,
    hoveredThumbColor: Color,
    pressedThumbColor: Color,
    draggedThumbColor: Color,
    trackColor: Color
)

Returns a copy of this InteractiveScrollbarColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

the color of the scrollbar thumb when actively dragged.

Cmn
Color

the color of the scrollbar thumb when hovered.

Cmn
Color

the color of the scrollbar thumb when pressed.

Cmn
Color

the default color of the scrollbar thumb when idle.

Cmn
Color

the color of the scrollbar track.

Cmn

Public constructors

InteractiveScrollbarColors

InteractiveScrollbarColors(
    thumbColor: Color,
    hoveredThumbColor: Color,
    pressedThumbColor: Color,
    draggedThumbColor: Color,
    trackColor: Color
)
Parameters
thumbColor: Color

the default color of the scrollbar thumb when idle.

hoveredThumbColor: Color

the color of the scrollbar thumb when hovered.

pressedThumbColor: Color

the color of the scrollbar thumb when pressed.

draggedThumbColor: Color

the color of the scrollbar thumb when actively dragged.

trackColor: Color

the color of the scrollbar track.

Public functions

copy

fun copy(
    thumbColor: Color = this.thumbColor,
    hoveredThumbColor: Color = this.hoveredThumbColor,
    pressedThumbColor: Color = this.pressedThumbColor,
    draggedThumbColor: Color = this.draggedThumbColor,
    trackColor: Color = this.trackColor
): InteractiveScrollbarColors

Returns a copy of this InteractiveScrollbarColors, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

draggedThumbColor

val draggedThumbColor: Color

the color of the scrollbar thumb when actively dragged.

hoveredThumbColor

val hoveredThumbColor: Color

the color of the scrollbar thumb when hovered.

pressedThumbColor

val pressedThumbColor: Color

the color of the scrollbar thumb when pressed.

thumbColor

val thumbColor: Color

the default color of the scrollbar thumb when idle.

trackColor

val trackColor: Color

the color of the scrollbar track.