SwipeToRevealActionColors

Class

Android
@ExperimentalWearMaterialApi
public class SwipeToRevealActionColors
constructor(
    public val primaryActionBackgroundColor: Color,
    public val primaryActionContentColor: Color,
    public val secondaryActionBackgroundColor: Color,
    public val secondaryActionContentColor: Color,
    public val undoActionBackgroundColor: Color,
    public val undoActionContentColor: Color,
)

A class representing the colors applied in SwipeToReveal actions. See SwipeToRevealDefaults.actionColors.

Parameters

primaryActionBackgroundColorColor of the shape (background) of primary action
primaryActionContentColorColor of icon or text used in the primary action
secondaryActionBackgroundColorColor of the secondary action shape (background)
secondaryActionContentColorColor of the icon or text used in the secondary action
undoActionBackgroundColorColor of the undo action shape (background)
undoActionContentColorColor of the icon or text used in the undo action