THEOplayerTheme

fun THEOplayerTheme(colorScheme: ColorScheme = MaterialTheme.colorScheme, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, playerColors: PlayerColors = THEOplayerTheme.playerColors, playerAnimations: PlayerAnimations = THEOplayerTheme.playerAnimations, content: @Composable () -> Unit)

Provides theme colors, shapes and fonts to be used by the player.

Parameters

colorScheme

A complete definition of the Material Color theme for this hierarchy

shapes

A set of corner shapes to be used as this hierarchy's shape system

typography

A set of text styles to be used as this hierarchy's typography system

playerColors

Additional colors used by THEOplayer UI components

playerAnimations

Additional animation settings used by THEOplayer UI components

See also


fun THEOplayerTheme(useDarkTheme: Boolean = isSystemInDarkTheme(), shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, playerColors: PlayerColors = THEOplayerTheme.playerColors, playerAnimations: PlayerAnimations = THEOplayerTheme.playerAnimations, content: @Composable () -> Unit)

Provides theme colors, shapes and fonts to be used by the player, using the THEOplayer brand style.

Parameters

useDarkTheme

Whether to use light or dark colors. By default, uses the system's dark theme setting.

shapes

A set of corner shapes to be used as this hierarchy's shape system

typography

A set of text styles to be used as this hierarchy's typography system

playerColors

Additional colors used by THEOplayer UI components

playerAnimations

Additional animation settings used by THEOplayer UI components

See also