opacity

open fun opacity(value: WeightedValueProperty)

This function sets the opacity property for all media devices.

Example call:

opacity { normal } // prefer the predefined values from the theme (by [dev.fritz2.styling.theme.Theme.opacities])
// opacity { "0.1" }

Parameters

value

provide a value of type WeightedValueProperty that defines the opacity, recommended to use predefined values via dev.fritz2.styling.theme.Theme.opacities

open fun opacity(sm: WeightedValueProperty? = null, md: WeightedValueProperty? = null, lg: WeightedValueProperty? = null, xl: WeightedValueProperty? = null)

This function sets the opacity property for each media device independently.

Example call:

opacity(
sm = { normal }
lg = { "0.8" }
)

Parameters

lg

extension function parameter with a WeightedValueProperty type return value for large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.opacities

md

extension function parameter with a WeightedValueProperty type return value for medium sized media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.opacities

sm

extension function parameter with a WeightedValueProperty type return value for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.opacities

xl

extension function parameter with a WeightedValueProperty type return value for extra large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.opacities