ContentColorScope

Known direct subclasses
TextStyleStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


An interface that introduces the contentColor property to a Style receiver scope.

See also
StyleScope

Summary

Public functions

Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn

Public functions

contentBrush

fun contentBrush(value: Brush): Unit

Sets the preferred brush for rendering content, primarily affecting text. This allows for gradient text or other brush-based text effects. This property is inherited by child text components if not overridden. This affects drawing only and is often a component of a TextStyle.

This property is inherited.

Parameters
value: Brush

The brush for the content, typically text.

contentColor

fun contentColor(value: Color): Unit

Sets the preferred content color, primarily affecting text color. This property is inherited by child text components if not overridden. This affects drawing only and is often a component of a TextStyle.

This property is inherited.

Parameters
value: Color

The color for the content, typically text.