TopTipsDefaults

Contains default values used by TopTips.

Properties

Link copied to clipboard

The start/end padding of the banner content (COUI coui_toptips_view_btn_margin).

Link copied to clipboard

The corner radius of the banner (COUI couiRoundCornerM: coui_round_corner_m 12dp).

Link copied to clipboard

The size of the start icon and the close button (COUI coui_toptips_view_icon_btn_size).

Link copied to clipboard

The spacing between the start icon and the message (COUI coui_toptips_view_title_start_margin).

Link copied to clipboard

The minimum height of the message (COUI coui_toptips_view_title_min_height).

Link copied to clipboard

The top/bottom padding of the message (COUI coui_toptips_view_title_top_margin).

Functions

Link copied to clipboard

The default text style of the action button (14sp, sans-serif-medium in coui_default_toptips.xml).

Link copied to clipboard

The default text style of the message (COUI coui_toptips_view_default_text_size: 14sp).

Link copied to clipboard
fun topTipsColors(containerColor: Color = if (COUITheme.colorScheme.background.luminance() < 0.5f) ContainerColorDark else ContainerColorLight, contentColor: Color = COUITheme.colorScheme.onSurfaceSecondary, actionColor: Color = COUITheme.colorScheme.primary, closeButtonColor: Color = if (COUITheme.colorScheme.background.luminance() < 0.5f) CloseButtonColorDark else CloseButtonColorLight, closeIconColor: Color = Color.White): TopTipsColors

The default TopTipsColors, mapping COUIDefaultTopTips: container = couiColorContainer4 (#0A000000 light / #14FFFFFF dark), message = couiColorSecondNeutral, action label = couiColorPrimaryText and the close button circle = couiColorControls (#29000000 light / #40FFFFFF dark) with a white cross.