FullPageStatementDefaults

Contains default values used by FullPageStatement.

Properties

Link copied to clipboard

The default padding around the statement text (COUI coui_full_page_statement_padding_horizontal 24dp / _top 12dp / _bottom 14dp).

Link copied to clipboard

Available width from which PrimaryButtonWidthExpanded applies.

Link copied to clipboard

Available width from which PrimaryButtonWidthMedium applies.

Link copied to clipboard

Bottom margin of the primary button (COUI coui_full_page_statement_button_margin).

Link copied to clipboard

Top margin of the primary button (COUI coui_full_page_statement_button_margin_top).

Link copied to clipboard

Primary button width in windows narrower than MediumWidthThreshold (base bucket).

Link copied to clipboard

Primary button width in windows at least ExpandedWidthThreshold wide (values-w600dp).

Link copied to clipboard

Primary button width in windows at least MediumWidthThreshold wide (values-w300dp).

Link copied to clipboard

Length of the vertical fading edges (COUI coui_full_page_statement_scroll_fade_length).

Link copied to clipboard

Bottom margin of the exit text button (COUI coui_full_page_statement_exit_button_margin_bottom).

Link copied to clipboard

Bottom margin of the title (COUI coui_full_page_statement_content_margin).

Link copied to clipboard

Horizontal margin of the title (COUI coui_full_page_statement_text_button_padding_horizontal).

Link copied to clipboard

Top margin of the title (COUI coui_full_page_statement_text_button_padding).

Functions

Link copied to clipboard
fun fullPageStatementColors(titleColor: Color = COUITheme.colorScheme.onBackground, contentColor: Color = COUITheme.colorScheme.onSurfaceSecondary, secondaryButtonColor: Color = COUITheme.colorScheme.primary): FullPageStatementColors

The default FullPageStatementColors: title on couiColorPrimaryNeutral, statement body on couiColorSecondNeutral and exit text button on couiColorPrimaryTextOnPopup.

Link copied to clipboard
fun primaryButtonWidth(availableWidth: Dp): Dp

The COUI adaptive primary button width for the given available width, following the coui_full_page_statement_button_width resource buckets (base / w300dp / w600dp).