Commit Graph
67 Commits
Author SHA1 Message Date
Kyant0 54e6021697 Add layerBlock for drawBackdrop modifier. Add two demos in catalog 2025-09-18 21:04:57 +08:00
Kyant0 f10e8951e8 buildToolsVersion = "36.1.0" 2025-09-18 14:01:19 +08:00
Kyant0 3e7f246dca Update code for old APIs to make it work 2025-09-16 15:44:52 +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 090374a06d New Backdrop API to replace LiquidGlassProviderState 2025-09-13 00:43:24 +08:00
Kyant0 118fee0b0a 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:53:22 +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 9202d30a43 Use delegating node 2025-09-12 22:35:47 +08:00
Kyant0 6305d83046 Mask out the shadow under the glass, the shadow won't affect transparent content. 2025-09-12 22:31:21 +08:00
Kyant0 c3c023dfcc Fix a small performance regression 2025-09-12 21:03:08 +08:00
Kyant0 11f1575e67 Fix dispersion doesn't take effect in block modifier variant, extract common code 2025-09-12 14:41:47 +08:00
Kyant0 e9b69a6206 Don't cache highlight shader 2025-09-12 14:26:18 +08:00
Kyant0 2815d8d7ed Update highlight APIs 2025-09-12 14:21:11 +08:00
Kyant0 d07e755fd6 Update default highlight color and default material color filter 2025-09-12 14:07:34 +08:00
Kyant0 78d4393908 Update highlight shader algorithm 2025-09-12 13:51:46 +08:00
Kyant0 80562325cf Rename decay to falloff in GlassHighlight.Dynamic, update docs 2025-09-12 13:05:35 +08:00
Kyant0 6504aabeef Add dispersion effect 2025-09-12 10:52:37 +08:00
Kyant0 054f8a9cb5 Update docs 2025-09-08 19:37:56 +08:00
Kyant0 7263d5d875 Use Float.dp instead of Int.dp 2025-09-08 14:27:16 +08:00
Kyant0 8bb42cdd47 Add simple modifier elements without observer to improve performance 2025-09-08 14:25:03 +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 0f63f35f55 Fix highlight update 2025-09-02 18:08:16 +08:00
Kyant0 28f28b9811 Fix default depth effect value 2025-09-02 17:53:44 +08:00
Kyant0 5c0514fe5b Add transformBlock param to liquidGlass modifiers 2025-08-21 09:51:51 +08:00
Kyant0 6bab19e863 Fix highlights can't be updated 2025-08-16 00:01:21 +08:00
Kyant0 866cf16436 Update shadow API to use drop shadow 2025-08-14 00:59:08 +08:00
Kyant0 90e7e2b525 Update unmodified brightness to 0f 2025-08-13 17:38:26 +08:00
Kyant0 aa4dbdf592 Fix DefaultColorFilter 2025-08-13 13:09:01 +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 bccee2895c Delete Compat.kt 2025-08-12 16:48:45 +08:00
Kyant0 f9aa572d6d Update default depth effect to 0f to match iOS 26 beta 6 2025-08-12 13:59:31 +08:00
Kyant0 935693f852 Fix update of GlassShadow 2025-08-06 12:16:19 +08:00
Kyant0 721b48af40 Add GlassShadow, update default highlight to use Plus blend mode 2025-08-06 12:08:47 +08:00
Kyant0 2de499019b Reset GlassHighlightNode cache on detach, fixed #4 2025-08-04 18:32:21 +08:00
Kyant0 f2ac217b07 Update LuminanceSampler API 2025-07-29 20:05:48 +08:00
Kyant0 f9688b348d Rename eccentricFactor to depthEffect 2025-07-29 19:38:03 +08:00
Kyant0 645a014c3b Remove experimental Kotlin API version declaration 2025-07-29 19:19:19 +08:00
Kyant0 530bed05f8 Fix stability for LuminanceSampler 2025-07-28 14:36:34 +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 6697e2c587 Use CacheDrawModifierNode, fix issue #4 2025-07-28 13:31:08 +08:00
Kyant0 c2203e1f04 Completely refactored APIs, added a new demo 2025-07-28 11:58:08 +08:00
Kyant0 3df7722ecb Add Modifier.liquidGlass with LiquidGlassStyle block 2025-07-26 14:51:50 +08:00
Kyant0 e4140bd341 Update border API 2025-07-25 11:28:37 +08:00
Kyant0 f6cdde3950 Rebuild demo and library 2025-07-24 10:04:34 +08:00
Kyant0 c695c09683 Remove indentations for shaders 2025-07-24 09:45:48 +08:00
Kyant0 2dd252b936 Fix shaders 2025-07-24 09:19:32 +08:00
Kyant0 ea324f6d72 Update border API 2025-07-24 09:17:25 +08:00
Kyant0 1d305c0b76 Update border 2025-07-23 22:27:16 +08:00