Icon

constructor(painter: Painter, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, tinted: Boolean = true, onClick: () -> Unit)

Creates an instance of OudsTopAppBarAction.Icon.

Parameters

painter

Painter of the icon.

contentDescription

The content description associated with this OudsTopAppBarAction.Icon.

badge

Optional badge displayed on the icon.

tinted

Controls whether the icon should be tinted with the theme color. Defaults to true. When set to false, the icon is displayed with its original colors (e.g., for multi-color icons). Note that untinted icons must ensure sufficient contrast with the background for accessibility reasons.

onClick

Callback invoked when the icon is clicked.


constructor(imageVector: ImageVector, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, tinted: Boolean = true, onClick: () -> Unit)

Creates an instance of OudsTopAppBarAction.Icon.

Parameters

imageVector

Image vector of the icon.

contentDescription

The content description associated with this OudsTopAppBarAction.Icon.

badge

Optional badge displayed on the icon.

tinted

Controls whether the icon should be tinted with the theme color. Defaults to true. When set to false, the icon is displayed with its original colors (e.g., for multi-color icons). Note that untinted icons must ensure sufficient contrast with the background for accessibility reasons.

onClick

Callback invoked when the icon is clicked.


constructor(bitmap: ImageBitmap, contentDescription: String, badge: OudsTopAppBarActionBadge? = null, tinted: Boolean = true, onClick: () -> Unit)

Creates an instance of OudsTopAppBarAction.Icon.

Parameters

bitmap

Image bitmap of the icon.

contentDescription

The content description associated with this OudsTopAppBarAction.Icon.

badge

Optional badge displayed on the icon.

tinted

Controls whether the icon should be tinted with the theme color. Defaults to true. When set to false, the icon is displayed with its original colors (e.g., for multi-color icons). Note that untinted icons must ensure sufficient contrast with the background for accessibility reasons.

onClick

Callback invoked when the icon is clicked.