Commit Graph
20 Commits
Author SHA1 Message Date
Kyant0 256331232b Refactor Backdrop API to be more friendly to use. Add a catalog demo. 2025-09-14 22:50:17 +08:00
Kyant0 2ce6910a99 Rename saturate with saturation 2025-09-13 17:28:28 +08:00
Kyant0 bbca9c23d4 New Backdrop API, deprecate liquid-glass module 2025-09-13 17:15:34 +08:00
Kyant0 3e66f84d9b Add new blur module 2025-09-13 11:14:56 +08:00
Kyant0 3eaf794064 Add new backdrop module 2025-09-13 10:23:13 +08:00
Kyant0 93227fb6a7 New BackdropDrawScope API to replace transformBlock and provide more flexible drawing.
To migrate, replace `scale(scaleX, scaleY, Offset.Zero)` with `scale(scaleX, scaleY, Offset.Zero) { this@liquidGlass.drawBackdrop() }`.

You can draw additional things on the glass with refraction effect.
2025-09-12 23:52:13 +08:00
Kyant0 7f0c4b49e6 More bouncy bottom bar in music demo 2025-09-12 23:08:49 +08:00
Kyant0 e2f5f16fec More bouncy bottom bar in music demo 2025-09-12 23:07:06 +08:00
Kyant0 9ffde7dc1e Remove LuminanceSampler APIs, don't cache too many things in modifier nodes 2025-09-08 14:07:17 +08:00
Kyant0 aed978a04a Add new simpleColorFilter(brightness, contrast, saturation) function, deprecate saturationColorFilter(saturation) function
Update default color filter to `contrast = 1.5f, saturation = 1.5f`
2025-08-13 12:38:53 +08:00
Kyant0 84456cbe04 Remove all 3rd-party libraries in glassmusic demo, it doesn't depend on any UI libraries any more. Fixed #12 2025-08-09 15:28:49 +08:00
Kyant0 721b48af40 Add GlassShadow, update default highlight to use Plus blend mode 2025-08-06 12:08:47 +08:00
Kyant0 a0595c0af2 Update dependencies 2025-08-02 10:11:20 +08:00
Kyant0 f2ac217b07 Update LuminanceSampler API 2025-07-29 20:05:48 +08:00
Kyant0 645a014c3b Remove experimental Kotlin API version declaration 2025-07-29 19:19:19 +08:00
Kyant0 2ffff6f519 Add compositingStrategy param for Modifier.liquidGlass
When using glass in a scrollable container #4, it's more efficient to use `Auto`. In most cases it's  more efficient to use `Offscreen`.
2025-07-28 14:10:56 +08:00
Kyant0 1e9f309467 Rebuild demos 2025-07-28 13:36:45 +08:00
Kyant0 6697e2c587 Use CacheDrawModifierNode, fix issue #4 2025-07-28 13:31:08 +08:00
Kyant0 79e2615959 Fix demo 2025-07-28 12:14:44 +08:00
Kyant0 c2203e1f04 Completely refactored APIs, added a new demo 2025-07-28 11:58:08 +08:00