DefaultDecoration

fun CanvasMenu.Companion.DefaultDecoration(_: Nothing = nothing, scope: CanvasMenu.Scope, shape: Shape = MaterialTheme.shapes.extraLarge, contentColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, shadowElevation: Dp = 1.dp, rotateHandleSize: Dp = 48.dp, verticalPadding: Dp = 24.dp, horizontalPadding: Dp = 16.dp, __: Nothing = nothing, content: @Composable () -> Unit)

The default decoration of the canvas menu. Calculates the position and rotation of the selected design block and finds the coordinates where the canvas menu should be placed. Finally, canvas menu is placed in a surface which parameters can be configured.

Parameters

shape

the shape of the surface.

contentColor

the content color of the surface.

shadowElevation

the shadow elevation of the surface.

rotateHandleSize

the reserved size of the rotate handle.

verticalPadding

the vertical padding between the surface and selected design block.

horizontalPadding

the horizontal padding between the surface and horizontal borders of the canvas.

content

the content of the canvas menu.


fun Dock.Companion.DefaultDecoration(_: Nothing = nothing, background: Color = MaterialTheme.colorScheme.surface1.copy(alpha = 0.95f), paddingValues: PaddingValues = PaddingValues(vertical = 10.dp), __: Nothing = nothing, content: @Composable () -> Unit)

Default decoration of the dock. Sets a background color and applies paddings to the dock by adding a containing box.

Parameters

background

the background of the containing box.

paddingValues

the padding values of the containing box.

content

the content of the dock.


fun InspectorBar.Companion.DefaultDecoration(_: Nothing = nothing, scope: InspectorBar.Scope, background: Color = MaterialTheme.colorScheme.surface, paddingValues: PaddingValues = PaddingValues(start = 16.dp, top = 10.dp, bottom = 10.dp), __: Nothing = nothing, content: @Composable () -> Unit)

Default decoration of the inspector bar. Sets a background color, applies paddings and adds a close button to the inspector bar by adding a containing box.

Parameters

background

the background of the containing box.

paddingValues

the padding values of the containing box.

content

the content of the inspector bar.


fun NavigationBar.Companion.DefaultDecoration(_: Nothing = nothing, background: Color = MaterialTheme.colorScheme.surface.copy(alpha = 0.95F), paddingValues: PaddingValues = PaddingValues(horizontal = 4.dp), __: Nothing = nothing, content: @Composable () -> Unit)

Default decoration of the navigation bar. Sets a background color and applies paddings to the navigation bar by adding a containing box.

Parameters

background

the background of the containing box.

paddingValues

the padding values of the containing box.

content

the content of the navigation bar.


fun Timeline.Companion.DefaultDecoration(_: Nothing = nothing, background: Color = MaterialTheme.colorScheme.surface1, paddingValues: PaddingValues = PaddingValues(0.dp), __: Nothing = nothing, content: @Composable () -> Unit)

The default decoration of the timeline.

Sets a background color and applies paddings to the timeline by adding a containing box.

Parameters

background

the background of the containing box.

paddingValues

the padding values of the containing box.

content

the content of the timeline.