Skip to content

Releases: Kyant0/AndroidLiquidGlass

1.0.0-alpha05

21 Aug 02:04
Compare
Choose a tag to compare

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

1.0.0-alpha04

09 Aug 07:46
Compare
Choose a tag to compare

Shadow

  • Add GlassShadow class
  • Glasses now have a shadow by default. A shadow parameter has been added to GlassStyle

Highlight

  • Change default blend mode of highlights from Overlay to Plus
  • Fix highlights may be invisible in lazy layouts #4 (comment)

1.0.0-alpha03

29 Jul 12:18
Compare
Choose a tag to compare

⚠️ The APIs are completely refactored to have code better organized.

I feel sorry if you have adopted liquid glass in a large scale in your projects (maybe impossible). To make a cleaner APIs, I have to do so.

Changes in 1.0.0-alpha03 are not listed.

Fixed bug #3 #4 #6

1.0.0-alpha02

24 Jul 02:12
Compare
Choose a tag to compare
  • Optimize performance in case of LiquidGlassStyle frequently changes
  • Refactor GlassBorder APIs:
    • Rename Light to Highlight
    • Replace color parameter with intensity, which indicates the maximum opacity for the white hightlight
  • Borders from any CornerBasedShape are correctly rendered, including customed ones
  • Highlights are more saturated

1.0.0-alpha01

18 Jul 02:33
Compare
Choose a tag to compare

Initial alpha release