Glass
- Add
transformBlock parameter to liquidGlass modifiers
Note: To scale the glass, use
Modifier
.scale(scaleX, scaleY)
.liquidGlass(
// ...
transformBlock = { scale(1f / scaleX, 1f / scaleY, Offset.Zero) }
)
- Make
shadow parameter nullable in GlassStyle
Inner refraction
- Change default
depthEffect to 0
Note:
|
small container |
large container |
| Recommended depth effect |
0 |
1 |
| Examples |
bottom bar |
dialog |
Material
- Add new function
simpleColorFilter(brightness, contrast, saturation) and deprecate saturationColorFilter(saturation)
- Change default color filter from
saturation = 1.5f to contrast = 1.5f, saturation = 1.5f
Highlight
- Fix hightlights can't be updated. You can set an animated angle value to
Highlight.Dynamic by using sensors or animations.
Shadow
- Use
DropShadow to have better visual effect