Releases: Kyant0/AndroidLiquidGlass
Releases Β· Kyant0/AndroidLiquidGlass
1.0.0-alpha05
Glass
- Add
transformBlock
parameter toliquidGlass
modifiers
Note: To scale the glass, use
Modifier
.scale(scaleX, scaleY)
.liquidGlass(
// ...
transformBlock = { scale(1f / scaleX, 1f / scaleY, Offset.Zero) }
)
- Make
shadow
parameter nullable inGlassStyle
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 deprecatesaturationColorFilter(saturation)
- Change default color filter from
saturation = 1.5f
tocontrast = 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
1.0.0-alpha04
Shadow
- Add
GlassShadow
class - Glasses now have a shadow by default. A
shadow
parameter has been added toGlassStyle
Highlight
- Change default blend mode of highlights from
Overlay
toPlus
- Fix highlights may be invisible in lazy layouts #4 (comment)
1.0.0-alpha03
1.0.0-alpha02
- Optimize performance in case of
LiquidGlassStyle
frequently changes - Refactor
GlassBorder
APIs:- Rename
Light
toHighlight
- Replace
color
parameter withintensity
, which indicates the maximum opacity for the white hightlight
- Rename
- Borders from any
CornerBasedShape
are correctly rendered, including customed ones - Highlights are more saturated
1.0.0-alpha01
Initial alpha release